Head to https://www.originprotocol.com/developers to learn more about what we're building and how to get involved.
Our DApp is currently running on the Ethereum mainnet and showcases what can be achieved with origin-js.
Using origin-js in your project
As a node package
npm install origin --save
yarn add origin
origin.js is available in the Releases section. A hosted version can be directly included in your html as:
npm build will generate this file and save it to
Command Line (All Tests)
Our full test suite can be run with:
npm run test
Note: you should not have the server running at this time, as these tests start their own local blockchain instance.
To run tests and automatically re-run when files change:
npm run test:jsw
If you have Python 3 installed, you may see this error when installing dependencies:
gyp ERR! stack Error: Python executable "/Users/aiham/.pyenv/shims/python" is v3.6.4, which is not supported by gyp.
Resolve this by configuring npm to use Python 2 (where python2.7 is a binary accessible from your $PATH):
npm config set python python2.7
Origin is an 100% open-source and community-driven project and we welcome contributions of all sorts. There are many ways to help, from reporting issues, contributing code, and helping us improve our community.