Lowdb
zap-db
Our great sponsors
Lowdb | zap-db | |
---|---|---|
27 | 4 | |
20,877 | 104 | |
- | 1.0% | |
6.4 | 0.0 | |
3 days ago | almost 2 years ago | |
JavaScript | TypeScript | |
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
zap-db
- zap-db: we made a JSON based database written in typescript and running on node, especially suited to slack/discord bots and works great as a replacement to json blobs :)
-
Releasing Zap-Db
An easy to use JSON database written with ease of setup and memory management of slack bots in mind.
https://github.com/sdslabs/zap-db
-
zap-db: we made a JSON based database, especially suited to slack/discord bots and works great as a replacement to json blobs :)
You should consider avoiding sync FS operations however, such as in https://github.com/sdslabs/zap-db/blob/master/src/lib/session.ts . This is because of how the event loop in Node.js works: using async operations allows Node.js to work on another request while it waits for the operating system to read the file; if you use sync operations, however, it blocks the entire event loop so only one request at a time can be processed.
What are some alternatives?
NeDB - The JavaScript Database, for Node.js, nw.js, electron and the browser
BotD - Bot detection library that runs in the browser. Detects automation tools and frameworks. No server required, runs 100% on the client. MIT license, no usage restrictions.
json-server - Get a full fake REST API with zero coding in less than 30 seconds (seriously)
loki-gm - Basic fun little project to make a GroupMe bot called Loki
Keyv - Simple key-value storage with support for multiple backends
database-js - Common Database Interface for Node
hjson-js - Hjson for JavaScript
Mongo Seeding - 🌱 The ultimate solution for populating your MongoDB database.
@databases - TypeScript clients for databases that prevent SQL Injection
pg-mem - An in memory postgres DB instance for your unit tests
LokiJS - javascript embeddable / in-memory database
DataStax Node.js Driver for Apache Cassandra - DataStax Node.js Driver for Apache Cassandra