1.0.0 • Published 4 years ago
rippledb v1.0.0
Rippledb ·
Rippledb is an embeddable key-value database engine in pure TypeScript, based on LSM-Tree, Inspired by LevelDB.
- Pure TypeScript: Rippledb is totally written in TypeScript, and runs on different platforms after being compiled to JavaScript.
- Lightweight: Rippledb has only 7k+ source code, and smaller than 1MB after compiled.Rippledb use zero third party modules.
- Embeddable: Rippledb can be embedded in node.js application (or other JavaScript Runtime Environments) very easily.
Installation
Install with npm:
npm install rippledb
Install with Yarn:
yarn add rippledb
Documentation
You can find the React documentation on the website.
Check out the Get Started page for a quick overview.
Examples
import path from 'path'
import { Database } from 'rippledb'
async function main(){
const db = new Database(path.resolve(__dirname, './db'))
await db.put('foo', 'bar')
console.log(
new TextDecoder().decode(await db.get('foo'))
) // 'bar'
}
main()
Roadmap
- Release 1.0 (2020-7-7)
- Support Deno (2020-9-1)
Benchmark
environment : GitHub Action
key : 16 bytes
value : 100 bytes
total : 10000
runners : 10
fillrandom : 823.87 ms total; 82.39 us/op
License
1.0.0
4 years ago
1.0.0-rc.11
4 years ago
1.0.0-rc.10
4 years ago
1.0.0-rc.9
4 years ago
1.0.0-rc.7
4 years ago
1.0.0-rc.8
4 years ago
1.0.0-rc.5
4 years ago
1.0.0-rc.6
4 years ago
1.0.0-rc.4
4 years ago
0.3.1
4 years ago
0.3.0
4 years ago
0.2.4
4 years ago