By : bguiz Published On Friday, January 15, 2016, 07:51 In JavaScript
User account management and payments in NodeJs made easy.
Making an app or website, with users and credit card payments? When doing that, not only do you have to code the main thing that your app or site does, but you also have to code user account management and and credit card payment processing logic as well. To say that can be tedious is an understatement, and it will take a lot of steam out of what you really want to focus on.
... Well not any more!
The good news is that OKAccounts provides a starter NodeJs server with all those APIs already built in. Which frees you up to focus your coding efforts on the core functions of your app or site!
What happened to EzAccounts?
EzAccounts used a legacy version on NodeJs (v0.10.x),
was written in ES5 Javascript,
and used the Express library.
OKAccounts is its successor, and a complete rewrite.
It uses the current LTS version of NodeJs (v4.x.x),
and is written is ES6 Javascript.
It also uses the KoaJs instead of Express.
This new combination has allowed the code to be rewritten such that it is easier to read and understand, and therefore easier to maintain and support. More importantly, this makes it easier for you to develop your own APIs for your site!
The server is available under Envato’s standard licensing terms:
Do review the full details of the licences from the pages linked above.
The tests for this module are a separate project, and available under GPL-3.0. These are distributed separately.
Support is provided under Envato’s standard support terms. Six months of support is included with the purchase, with an option to purchase additional support periods. Support requests can be raised through Envato after purchase.
Please let me know if you have any issues or requests
in the Comments section for this item.
If you have a new test case in mind, or feel like one of the tests could be improved, please submit a pull request to, or create an issue ticket at, okaccounts-tests.
Brendan Graetz
v1.4.0 Performance improvement
v1.3.0 Bug fix
v1.2.0 Update Stripe API version:
v1/2016-03-07
Account -> Account Settings -> API Keys -> API Versionv1.1.0 Bug fix
v1.0.0 Complete rewrite:
yield as the main async mechanism,
previously was a mix of callbacks and promise chainsSpecial thanks to @medoix for providing much suggestions and bug reports; which have led to several important improvements.