Skip to content
a javascript DSL for building async web apps
Pull request Compare This branch is 63 commits behind jed:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

(fab) - a modular async web framework

(fab) is a lightweight toolkit that makes it easy to build asynchronous web apps. It takes advantage of the flexibility and functional nature of javascript to create a concise "DSL", without pre-compilation or magic scope hackery.

Here's an example of a "hello world" app:

fab = require( "../" );

require( "http" ).createServer( fab

  ( /^\/hello/ )

    ( fab.tmpl, "Hello, <%= this[ 0 ] %>!" )

    ( /^\/(\w+)$/ )
      ( fab.capture )
      ( [ "world" ] )

  ( 404 )

).listen( 0xFAB );

See more examples, learn how to make your own apps, or see the apps that (fab) provides for you.

Something went wrong with that request. Please try again.