Quick Start
Installation
Section titled “Installation”npm install flintdbBasic Usage
Section titled “Basic Usage”import { FlintDB } from 'flintdb';
// Open a databaseconst db = FlintDB.open('./mydata');
// Insert documentsdb.put('users', { name: 'Alice', age: 30, role: 'engineer' });db.put('users', { name: 'Bob', age: 25, role: 'designer' });db.put('users', { name: 'Carol', age: 35, role: 'engineer' });
// Query with filteringconst engineers = db.query({ collection: 'users', filter: { role: 'engineer' }, sort: { age: 'asc' }});// [{ name: 'Alice', age: 30, ... }, { name: 'Carol', age: 35, ... }]
// Aggregate dataconst stats = db.query({ collection: 'users', aggregate: { count: { count: true }, avgAge: { avg: 'age' } }});// [{ count: 3, avgAge: 30 }]What’s Next?
Section titled “What’s Next?”- Querying Data — learn the full query syntax
- Analytics — aggregations, window functions, and statistics
- API Reference — complete API documentation