Monoce
Modern, fast, simple KV storage.
Installing
Using npm (or yarn):
$ npm install monoce
Example
⚠️ Warning! - Currently, you can create database only this web site: https://www.monoce.com (later you can use self-hosted the Monoce)
Use for TypeScript:
import { MonoceInstance } from 'monoce'
Use for JavaScript:
const { MonoceInstance } = require('monoce')
❗ Worked copy-past example:
const monoce = new MonoceInstance({ database: 'monoce', token: '43d51bef-c1eb-43db-b961-58f4ad9a105e' })
const requestInitialization = async () => {
const setRequest = await monoce.set({
document: 'monoce',
payload: {
AnyJSONPayload: 'AnyJSONValue'
}
})
console.log(setRequest)
const getRequest = await monoce.get({
document: 'monoce'
})
console.log(getRequest)
const updateRequest = await monoce.update({
document: 'monoce',
payload: {
AnyOtherJSONPayload: 'AnyOtherJSONValue'
}
})
console.log(updateRequest)
const deleteRequest = await monoce.delete({
document: 'monoce'
})
console.log(deleteRequest)
}
requestInitialization()