A Functional Router for Koa

If you’re not familiar with the Koa microframework, stop reading this and go check it out. It’s a library similar to Connect or Express, except it’s been built on top of generators and the yield keyword1 promises and plays nicely with the new async and await keywords as a result.

helpful-koa-routing is a library I built for having entirely functional, disconnected handlers. This approach allows you to have a folder of endpoints that can be specified in any order and can even be in charge of their own middleware stack, allowing for a more “micro-service”-esque approach of self-contained units of functionality.

You can check out the source code on Github and install it with npm.

NPM


  1. As of Koa 2.0, the generator pattern has been deprecated. ↩︎