Express: Super-Fast JavaScript Sinatra

2009-11-19 00:00:00 +0000 by Alex R. Young

I thought this would be a good follow-on from yesterday's post about
Narwhal. Whilst Narwhal aims to provide a complete solution for server-side JavaScript
development, sometimes a simpler solution is required.

Express is a small library for building web apps with JavaScript, written with
node.js and V8. That means:

This is what an Express app looks like:

get('user/:name/:operation', function(){
  param('operation') + 'ing ' + param('name')

It looks like I might have stumbled onto Express before it's 100% ready
for the public, but it's definitely worth checking out. I'm having
trouble running examples with the current version of node.js, so I've
written to Express's author to ask for some help. I'll post a tutorial
if I get something going.

Node.js is fundamentally a good fit for the Sinatra approach to
simplified web apps, so I hope this project goes somewhere.