1.0.2 • Published 10 years ago
jmap-proxy v1.0.2
JMAP Proxy Server
A wrapper around the official JMAP Proxy (https://proxy.jmap.io) that exposes a stubbed Authentication endpoint (well-known) and Event Source with CORS support.
Install
$ npm install jmap-proxyRunning
$ JMAP_PROXY_URL=https://proxy.jmap.io/jmap/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx npm startNote: substitute JMAP_PROXY_URL for the full URL provided by https://proxy.jmap.io.
You can then use http://localhost:5000 in your JMAP client.
Debugging
You can test the proxy by going to http://localhost:5000/test.
JMAP documentation
Can be found at http://jmap.io/spec.html.