Node v4 and above is required.
npm install -g jsgrest
From the command line
jsgrest postgres://postgres:foobar@localhost:5432/my_db \--port 3000 \--schema public \--pure
jsgrest exposes a factory function that returns an Express app, which you
can then use in your own server code.
- Maximum API compatibility with PostgREST
- Reasonable performance
- An implementation I can hack on (not being a Haskell coder, I can't do this with PostgREST)
jsgrest recently passed a test suite based largely on PostgREST's own, with some
omissions due to the reduced feature set I'm targeting right now. Following this milestone, I have
my eyes set on achieving full compatibility with PostgREST - help is welcome 😄.
The issue list is a good place
to see what's missing at the moment. Notably,
jsgrest introduces the concept of "pure" mode,
which disables features that require schema inspection/caching, but non-pure mode is not currently
implemented (#1, #5, #7).
Tests for "non-pure" and other missing functionality exist but are flagged with
TODO and not run in the main test
Please feel free to reach out in any way you like. Issue reports, requests, random thoughts and PRs are most welcome.
...at least I didn't call it PostgrESt.