JavaScript JSON-RPC 2.0 server with no runtime dependencies

npm install tiny-jsonrpc
11 downloads in the last day
59 downloads in the last week
347 downloads in the last month


JavaScript JSON-RPC 2.0 server with no runtime dependencies.


Tiny JSON-RPC is available from npm.

$ npm install tiny-jsonrpc


Running the tests

Tiny JSON-RPC includes a suite of unit tests, driven by Mocha. To run the tests in node:

$ make test

To run the tests in the browser:

$ make test-browser

Then load http://localhost:8080 in your browser.

The following make parameters are supported (defaults are in parentheses):

  • TEST_REPORTER the Mocha reporter to use (dot)
  • TEST_PORT the port to run the browser test web server on (8080)
  • TEST_TIMEOUT threshold in ms to timeout a test (4000)
  • TEST_SLOW threshold in ms to say a test is slow (2000)
  • TEST_ARGS Additional arguments to pass through to Mocha
  • TEST_DEBUG Print debug logging to the console (false)


Tiny JSON-RPC is made available under the MIT License.

npm loves you