hero

nanoSQL 2

Universal database layer for the client, server & mobile devices. It's like Lego for databases.

Get Started →

Runs Everywhere

Works in IE9+, NodeJS, Electron, NativeScript, React Native and everywhere else javascript does.

Powered By Typescript

Built from the ground up with Typescript to make API discovery and usage a brease.

Dynamic Queries

Graph, Join, Filter, Select and Order your data in dozens of ways.

Install

Browser

Simply copy one of the script links below and drop it into your page head.

<!-- ES6 Only (Faster & Smaller) -->
<script src="https://cdn.jsdelivr.net/npm/@nano-sql/core@2.3.4/dist/nano-sql.min.js" integrity="sha256-rP17OIsCkONYao3UcOBb/TV615sTOgIiuT+BHhSyNgs=" crossorigin="anonymous"></script>
<!-- ES5 (Internet Explorer/Old Browser Support) -->
<!-- Promise must be polyfilled as well -->
<script src="https://cdn.jsdelivr.net/npm/@nano-sql/core@2.3.4/dist/nano-sql.min.es5.js" integrity="sha256-eAaFuIGNTeouRINuSva3YyLwnzkDdcjeA/IcU/cB/Fo=" crossorigin="anonymous"></script>

NodeJS / Webpack / Browserify / etc

Run this in your project directory:

npm i @nano-sql/core --save

Then use in your project:

// typescript & babel
import { nSQL } from "@nano-sql/core";

// commonjs / node syntax
const nSQL = require("@nano-sql/core").nSQL;

Usage

Use With An Array Of Objects

Use As A Database / Datastore

Save Your Data Anywhere

NanoSQL supports a wide range of ways to save your data in the browser, on the phone, and on the server.
  1. Included In The Box

    • Memory (Browser/NodeJS/Electron)
    • Snap DB (NodeJS/Electron)
    • Indexed DB (Browser)
    • WebSQL (Browser)
    • Local Storage (Browser)
  2. RocksDB (NodeJS/Electron)

  3. LevelDB (NodeJS/Electron)

  4. SQLite (NodeJS/Electron)

  5. SQLite (Cordova)

  6. SQLite (NativeScript)

  7. React Native

  8. Redis

  9. MySQL

  10. Amazon Dynamo DB

  11. MongoDB

  12. ScyllaDB

Get Help

Older Versions

You can get nanoSQL 1.X versions here.