Documentation

API

docs

Getting started

JOSH is installed very simply through yarn or npm:

npm i @joshdb/core
* OR *
yarn add @joshdb/core

Import

import { Josh } from "@joshdb/core"; 
/* OR */
const Josh = require("@joshdb/core");

Basic Usage

const db = new Josh({ name: "test" });

JOSH itself is written in typescript and builds to cjs and esm formats, so you can use it in any project.

We have removed the umd builds in order to support esm and any usage of Josh in browser will require a bundler such as webpack or rollup.

Provider Dependency

However, JOSH cannot function without a provider, which provides the communication layer between @joshdb/core and the database you're storing data in. Every provider may have its own specific pre-requisites and sub-dependency, so please take care to read the page for the provider you intend to use.

By default Josh will use the @joshdb/map provider, which stores data in memory. This is highly fast but not persistent

What's next?

See the Providers page and choose one!