Leverage the Sencha Touch Class System and more in your Node.js app

   Front End Development

For those of you who love Sencha Touch as much as we do, we are pleased to announce the immediate availability of Touch Node – a Node.js module that will enable you to leverage your knowledge on the back-end as well as the client.

Touch Node takes Sencha Touch (version 2.3.1 as of this writing) strips out all of its DOM-related functionality (Element, Component, Scroller, etc…) and leaves a headless and intact Class System, Loader, Utilities and more.

While working on a Node.js application we found a need for creating classes with inheritance. After looking through the available modules published on the npm registry, we found that there was nothing that fit our requirements. We realized that Sencha Touch solved our needs precisely. Many of the issues that Sencha solved on the client side in terms of code organization, inheritance, and dependency injection can be applied to the back-end.

Because of this, Touch Node allows you to have cleaner and more consistent code throughout the entire application. A big theme of Server Side JavaScript is using a common language across the entire stack. Here not only are you using the same language but you are also leveraging the same framework, design patterns and best practices.


Touch Node contains the following functionality:

  • Sencha Touch Class System
  • Dependency Loader (Ext.Loader)
  • Data Package (Model, Store, Proxy)
  • Utility Classes for dealing with common JavaScript objects
  • and more…

Installation & Usage

Installation The simplest way to get Touch Node into your Node.js app is through NPM:

npm install touch-node

Usage Inside your code, the module exports the Ext object

var Ext = require('touch-node');

For an example of the module in action, please see the examples directory in the module or in the GitHub repo

More Info

Here are some useful links and related readings:

If you want to see some best practices involved with using the Sencha Touch class system, we highly recommend you watch this webinar by Modus Create CTO Jay Garcia and Art Kay from Sencha on Enterprise JavaScript Application Best Practices. Also see Jay Garcia’s Custom Sencha Touch Components workshop from SenchaCon 2013.

This website uses cookies

These cookies are used to collect information about how you interact with our website and allow us to remember you. We use this information in order to improve and customize your browsing experience, and for analytics and metrics about our visitors both on this website and other media. To find out more about the cookies we use, see our Privacy Policy.

Please consent to the use of cookies before continuing to browse our site.

Like What You See?

Got any questions?