Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: fac3e697d1
Fetching contributors…

Cannot retrieve contributors at this time

51 lines (37 sloc) 2.685 kb


This web framework is based on Simon Willison's djangode, a node.js project inspired by django.

Apps contain a set of (regex) URL patterns that map HTTP requests to handler methods, called views. URL patterns and views are stored in separate files, which are imported when the app is executed. Apps can be organised into a set of modules, each with their own URL and view definitions. You can build quite complex apps by hooking a module's URL patterns one of the parent module's URL patterns (in the same way that django does).

Djangode currently implements a javascript conversion of the django template system, which has been modified slightly to work with more recent versions of node.js. The template system can be hooked into your views to provide a simpler way to render your content.

Examples are be stored in the apps directory, and will give you a starting point for building your applications. To run the examples you must have node.js installed. Navigate to the example directory in your terminal of choice, and run:

node app.js

Then visit in your web browser.

Fork the project, have a play around, and please contribute!

App Structure

 |- app.js
 |- urls.js
 |- views.js
 |- <module_directory>
 |   |
 |   |- urls.js
 |   |- views.js
 |- templates
     |- <base_template>.html
     |- <module_directory>
         |- <template>.html
         |- <template>.html

Templates don't have to be laid out this way, but the templating example uses this layout. Also, this structure doesn't show static content. This would be placed in a sub folder of the app directory. Look at either of the examples to see how they fit in.

In Development...

jimi is currently considering various node.js data modelling libraries, so please forward any suggestions to


This project wouldn't be possible without Simon Willison, who's enthusiasm for bleeding edge web technology regularly spawns cool projects such as djangode. The source code for jimi is heavily based on djangode, and will hopefully evolve along the lines that Simon intended it to. The django project also deserves heaps of credit. Jimi is an exploration of django's concepts in the world of server-side JavaScript, so thanks to the django community for doing the real heavy lifting.

Jump to Line
Something went wrong with that request. Please try again.