https://github.com/losercodes/lazyydb
Introducing LazyDB, a lightweight, zero-setup JSON database with SQL-like queries, designed for rapid development. π
https://github.com/losercodes/lazyydb
js sql
Last synced: about 1 year ago
JSON representation
Introducing LazyDB, a lightweight, zero-setup JSON database with SQL-like queries, designed for rapid development. π
- Host: GitHub
- URL: https://github.com/losercodes/lazyydb
- Owner: losercodes
- License: other
- Created: 2025-03-15T01:12:58.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-15T01:24:45.000Z (about 1 year ago)
- Last Synced: 2025-03-19T07:16:24.156Z (about 1 year ago)
- Topics: js, sql
- Language: JavaScript
- Homepage:
- Size: 16.7 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Lazyydb
A lightweight, zero-setup JSON database with SQL-like queries, perfect for rapid development. LazyDB mimics SQLiteβs functionality but works directly with JSON files or in-memory, requiring no installation.
## Features
- **File-Based or In-Memory Storage**: Use `database.json` or run in-memory.
- **SQL-like Queries**: `db.select('users').where('age', '>', 20).join('orders', 'id', 'userId')`.
- **Advanced Features**: Joins, aggregations (`count`, `sum`, `avg`, `min`, `max`), full-text search.
- **Indexing**: B-tree for speed, inverted index for text search.
- **Zero-Config**: `new LazyDB()` for in-memory mode.
- **Event-Driven**: React to inserts, updates, and deletes.
- **CLI**: `npx lazydb "SELECT * FROM users WHERE age > 20"`.
- **REST API**: Integrate with Express.js.
- **Cross-Platform**: Works in Node.js, browsers, and Deno.
## Installation
```bash
npm install lazyydb