Lowdb
LokiJS
Our great sponsors
Lowdb | LokiJS | |
---|---|---|
27 | 2 | |
20,843 | 6,679 | |
- | - | |
7.1 | 0.0 | |
2 months ago | 10 months ago | |
JavaScript | JavaScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Lowdb
-
Database recommendations for small website
https://github.com/typicode/lowdb is a cool option.
- How to show CRUD projects on Github?
-
go-store: Lightweight embedded database in pure Go inspired by Lowdb
I just finished the first stable version of go-store, a lightweight embeeded database written in pure Go. It was heavily inspired by lowdb. The motivation was that I needed something simple to store information for another project and that I wanted to try out Go's generics.
-
Best Simple Javascript database to replace local storage?
https://jsondb.io/ or https://github.com/typicode/lowdb
-
Intercept and inspect http requests with reqon
By default, requests are stored locally in a JSON file with the help of LowDB.
- NodeJs temporal database (like an audit log or git)
-
Creating a NoSQL database from scratch
For 1: Don't.* For 2: You're looking for a cache. I've published an OS npm module. Looking at the code might help: https://github.com/tq-bit/qache/blob/master/src/Cache.ts For 3: Maybe the code of lowdb can point you in the right direction: https://github.com/typicode/lowdb/tree/main/src
-
I could use design advice
Another thing you might consider is literally using the filesystem as a database. There are plenty of vanillla ways to simply read/write to JSON or you could even use a JSON based db github.com/typicode/lowdb again you don't need to think about it as a db your just handling JS objects.
-
Part 3: Creating an embeddable chat widget
I did want something performant so that I would (hopefully) not run into issues when there are around 100-ish clients connected at the same time. I looked at low-db for a while but did not like that it would JSON.stringify my whole database on every change, which could become a problem when it becomes to big.
- Module for writing files to CommonJS format
LokiJS
-
I've created a lightning fast in-memory database for the frontend - fully type-safe, of course
(This compares a simple JS Map() to LokiJS to BlinkDB. You can find more benchmarks in the repository.)
-
Part 3: Creating an embeddable chat widget
So instead I went with lokijs even though I find the documentation of it quite horrible, I have used it before and it works without issues and has lots of features. And I thought it would also be good to show how I use it so others don't have to figure that our on their own 😇
What are some alternatives?
NeDB - The JavaScript Database, for Node.js, nw.js, electron and the browser
localForage - 💾 Offline storage, improved. Wraps IndexedDB, WebSQL, or localStorage using a simple but powerful API.
json-server - Get a full fake REST API with zero coding in less than 30 seconds (seriously)
WatermelonDB - 🍉 Reactive & asynchronous database for powerful React and React Native apps ⚡️
Keyv - Simple key-value storage with support for multiple backends
database-js - Common Database Interface for Node
sql.js - A javascript library to run SQLite on the web.
hjson-js - Hjson for JavaScript
PouchDB - :koala: - PouchDB is a pocket-sized database.
Mongo Seeding - 🌱 The ultimate solution for populating your MongoDB database.
secStore.js - Encryption enabled browser storage