The open source, online grant management system.

Usage no npm install needed!

<script type="module">
  import gandhi from '';


We are actively looking for contributors, and are willing to pay for quality pull requests! If you are at all interested, please send Mike an email!


wercker status

Gandhi is an open source, online grant management system. It is built with node, uses the impeccable rethinkdb as its primary data store and redis for cluster coordination and scheduling. While it's still alpha software, it is already being used with great success by a few groups.


Install Dependencies

  1. node
  2. rethinkdb
  3. redis


Gandhi can be run as a stand-alone app. Make sure RethinkDB and redis are running on your machine. Simply clone Gandhi and start it:

git clone
cd gandhi
npm install
npm start


Gandhi is available as an NPM package, and can be used in your existing express app. This is also the best way to run Gandhi if you plan on building custom modules or using community-supported ones.

Add Gandhi as a dependency to your app:

npm install --save gandhi

Import gandhi and add it to your app:

var app = require('express')();
var config = {
    // configure here




    // This is the he root path for the portal, without trailing slash. It
    // might be used to host your system at
    root: '',

    // These are the connection details for RethinkDB.
    db: {
        host: '',
        db: 'gandhi'

    // To make things run faster, we keep a pool of Rethinkdb connections
    // inside each process. You can tune the pool's settings here.
    pool: {
        max: 30,
        min: 1,
        timeout: 30000

    // These are the connection details for Redis.
    redis: {
        host: ''

    // When gandhi can't use an atomic operation to alter a document in
    // rethinkdb, we need to lock it so we don't try to process multiple
    // writes at the same time. You can tune the lock settings here.
    lock: {
        retry: 100,
        timeout: 30000

    // Authentication is made persistant by ust of Json Web Tokens. You
    // must provide a secret for cryptographically signing these tokens.
    // Make sure this stays secret, or an attacker could impersonate
    // system users.
    auth: {
        secret: ''

    // Gandhi used nodemailer to support almost any mail sending option
    // out there. You can configure it here. Learn more at:
    mail: {
        transport: {
            service: 'Mandrill',
            auth: {
                user: '',
                pass: '0eCce8d2FKfLrTxiFYOReg'
        defaults: {
            from: ''

    // Gandhi uses a module system to add new functionality. In fact,
    // many core components are actually written as modules. This must
    // be an array of paths to the various different modules you wish
    // to use.
    // In this example, we programatically build a list of modules from
    // the modules directlry.
    modules: fs.readdirSync(__dirname + '/lib/modules').map(function(dir){
        return __dirname + '/lib/modules/' + dir;

    // Where do you want to store uploaded files? Right now, this only
    // supports using the local filesystem or NFS, but in the future
    // it will support other options like S3 and CloudFiles
    files: {
        directory: __dirname + '/uploads'

    // On what port do you want gandhi to listen? In our opinion, it's
    // best to run apps behind something like NGINX, but there's nothing
    // stoppingy you from just running directly on port 80.
    port: 3000


Coming Soon!