On Thu, Jan 10, 2013 at 4:27 PM, carlos8f <[email protected]> wrote:
> Hi, > > I'd like to announce the availability of middler, a project I started last > summer. > > https://github.com/carlos8f/node-middler > > Basically, you might think of it as a "mini express" which allows you to > easily attach a middleware stack to an http server, with a chainable > routing interface and parameter parsing. What makes it unique is that your > middleware stack can be turned into a "super" middleware handler, to add to > another middleware stack -- this is the "embeddable" concept. > Perhaps I'm misunderstanding, but this isn't unique. I can do the same thing with connect: var nested_chain = connect() .use(nested_1) .use(nested_2); var outer = connect() .use(outer_1) .use(nested_chain) .use(outer_2); outer.listen(port); In keeping with separation of concerns, I wanted middler to **not** come > with batteries included - it doesn't want to create a server for you, or > handle configuration, or provide you with a bunch of starter middleware. > This makes it a great choice for writing compact modules which simply use > middler's API and export a middleware handler. It also performs well as a > leaner express if you decide to build an app around it. And of course, it's > compatible with existing connect/express/flatiron middleware, especially > using the "expres" shim: https://github.com/cpsubrian/node-expres > I think I'm missing what really distinguishes middler from connect, since they look very much alike to me. Could you say some more about when it would benefit me to pick middler over connect? -- Martin Cooper > Other nice things: > > - used in production ~5 months, with great results > - tested on travis-ci > - very fast - benchmarks included > - no dependencies > - middleware stack can be manipulated at runtime > - supports weights, to control the order of handler execution > > Feedback welcome! > > Cheers, > Carlos > > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > You received this message because you are subscribed to the Google > Groups "nodejs" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/nodejs?hl=en?hl=en > -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
