@matrixai/db

DB

Usage no npm install needed!

<script type="module">
  import matrixaiDb from 'https://cdn.skypack.dev/@matrixai/db';
</script>

README

js-db

pipeline status

DB is library managing key value state for MatrixAI's JavaScript/TypeScript applications.

Installation

npm install --save @matrixai/db

Development

Run nix-shell, and once you're inside, you can use:

# install (or reinstall packages from package.json)
npm install
# build the dist
npm run build
# run the repl (this allows you to import from ./src)
npm run ts-node
# run the tests
npm run test
# lint the source code
npm run lint
# automatically fix the source
npm run lintfix

Benchmarks

npm run bench

View benchmarks here: https://github.com/MatrixAI/js-db/blob/master/benches/results/WorkerManager.chart.html with https://raw.githack.com/

Docs Generation

npm run docs

See the docs at: https://matrixai.github.io/js-db/

Publishing

# npm login
npm version patch # major/minor/patch
npm run build
npm publish --access public
git push
git push --tags