fab

a modular async web framework for node.js

  • Owner: jed/fab
  • Platform:
  • License::
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

(fab) - a streaming javascript framework

NOTE: (fab) is no longer under development.

(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:

module.exports = function( exports, imports ) {
  return imports( function( run, node$listen, route, html ) {
    with ( html ) return run
    
    ()
      ( node$listen, 0xFAB )
      
      ( HTML )
        ( BODY, { id: "show" } )
          ( "Hello, " )
          
          ( EM )
            ( route, /^\/(\w+)$/ )
              ( route.capture, 0 )
            ( /* else */ )
              ( "world!" )
          () //EM
          
          ( "!" )
        () //BODY
      () //HTML
    ();
  })
}

Getting started

To install (fab), use npm:

npm install fab

Then, from the (fab) directory in your node folder, launch the demo.js example:

fab demo.js

Look in the source of the demo to see how the app was built.

Main metrics

Overview
Name With Ownerjed/fab
Primary LanguageJavaScript
Program languageJavaScript (Language Count: 1)
Platform
License:
所有者活动
Created At2009-12-01 08:27:59
Pushed At2013-12-04 13:50:07
Last Commit At2013-12-04 08:50:07
Release Count2
Last Release Namev0.4.0 (Posted on )
First Release Namev0.3.0 (Posted on )
用户参与
Stargazers Count733
Watchers Count10
Fork Count23
Commits Count165
Has Issues Enabled
Issues Count0
Issue Open Count0
Pull Requests Count3
Pull Requests Open Count1
Pull Requests Close Count3
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private