node package manager
Orgs are free. Discover, share, and reuse code in your team. Create a free org »



Shallot is a HTTP DSL based on coffeescript. It is very similar to zappa but tries to be more lightweight.


npm install shallot


Probably the shortest example possible

require('shallot') -> @get -> 'Hello World!'

No seriously

Shallot does not depend on express. It rather is up to you which kind of middlewares you want to use and what kind of rendering engine you require. It uses copperhead as router.

connect = require 'connect'
require('shallot') ->
    @use connect.static 'public'
    @get ->
        'Hello World!'
    @get '/:name'->
        "Hello #{@name}!"


More features may be added in the future. The main goal is to achieve the most powerful HTTP server functionality with minimal lines of code.