Probably smallest Node.js framework. Yet quite functional.


Keywords
framework, router, app, web, small
License
MIT
Install
npm install dripple@4.0.0-0

Documentation

Dripple.js

Dripple is a very small Node.js framework for creating HTTP server. It provides express-like commands of "get" and "post". Currently the project is at the beginning of its existence, which means its hardly useable. Because of Dripple's simplicity it is quite fast.

Currently working

  • Processing GET request with regexp in path
  • Handling 404
  • Support for extensions (see extensions)
  • Error handling

At current beta

See Betas

Examples

var dripple = require('dripple'),
    app = new dripple(),
    someExtension = require('/path/to/extension');
    otherExtension = require('other-extension');

app.extend(someExtension);
app.extend('/path', otherExtension)

app.get('/', function(req, res){
    res.writeHead(200);
    res.write("Hello World!");
    res.end();
})

app.get('/users/:username', function(req, res){
    res.writeHead(200);
    res.write("Hello, " + req.params.username + "!"); //username given in path
    res.end();
})

app.listen(3000);

License

MIT