Hacker News new | ask | show | jobs
Ask HN: What framework/libs are you using for building RESTish APIs in Node.js?
1 points by deluvas 4120 days ago
Hello HN,

I'm looking for a suitable framework for building medium-sized* Node.js APIs and I want to know what you are using or would recommend.

Ideally, it should:

* automatically build RESTful routes based on models (incl. relations), if not, make it easy for the developer to implement that

* use MVC concepts like controllers, filters and such

* support simple authorization/authentication (i.e. acl, bearer)

* be flexible/customizable (e.g. don't force me to use Whatever_Case on my database tables and such)

---

Currently, I'm using the following, hacked together: express.js, bookshelf.js/knex.js (models), passport.js and acl (auth). These are fine if your project is small, but when it grows, it gets messy.

So, what frameworks are you using?

---

*by medium-sized, I mean something like an invoice creating API

2 comments

Don't use it (I'm not exactly a developer) but I've heard good things about Hapi (http://hapijs.com/) may be worth checking out, I think it has most of the stuff you're looking for.
That's one of the frameworks I haven't tried yet. Will try it, thx.
loopback io