ForerunnerDB Client-Side DB

NoSQL Runs in Browser and Node.js

Open-Source: https://github.com/coolbloke1324/ForerunnerDB/

If you love MongoDB's query language and wish you had the same type of database in the browser, this is for you.

ForerunnerDB is easy to pick up and use and will help you decouple your data from your JS code, query it and even automatically update the DOM when the data changes.

Include ForerunnerDB in HTML

<script src="ForerunnerDB.js" type="text/javascript"></script>  

Inserting Data

var db = new ForerunnerDB(),  
    users = db.collection('users');

users.insert({  
    _id: '1454ief39t4nht',
    name: 'Jimbo',
    age: 36
});

users.insert({  
    _id: '1gni843bg4839b',
    name: 'Ned',
    age: 33
});

Query The Data

// Get all users who's age is greater than 33
var oldUsers = users.find({  
    age: {
        $gt: 33
    }
});

The output from this is:

[{
    _id: '1454ief39t4nht',
    name: 'Jimbo',
    age: 36
}]

A more detailed explanation of all of ForerunnerDB's features is available on the GitHub repo's readme: https://github.com/coolbloke1324/ForerunnerDB/

What Is ForerunnerDB?

ForerunnerDB (a.k.a. Forerunner or FDB) is a database system that operates as an object store. It is a NoSQL database that is queried in a very similar way to MongoDB. Forerunner's main advantages are:

  • Can run in a browser as a client-side database for web-apps or server-side in Node.js
  • Has a very low footprint (44KB uncompressed, 12KB minified, 3KB minified + gzipped)
  • Has data-binding module for automatically updating the DOM when underlying data changes

You can get ForerunnerDB now from the open-source repository on GitHub: https://github.com/coolbloke1324/ForerunnerDB/

ForerunnerDB is created and maintained by Irrelon Software Limited.