A generic database interface supporting SQLite, PostgreSQL, and IndexedDB with a unified query API. Version 0.0.21 is the current release; the library is in early development with active changes. It provides a schema-based document store with complex where clauses (AND/OR, comparison operators), ordering, and relational includes. Unlike ORMs like Sequelize or TypeORM, it offers a minimal, cross-platform abstraction that works both in Node.js and the browser via IndexedDB. Ships TypeScript types.
npm install anondbNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates an in-memory SQLite database with a User schema, inserts a document, and retrieves it.
Use 'anondb/node' for Node connectors, 'anondb/web' for IndexedDB, and 'anondb' for types only.
Ensure every schema includes a primaryKey field with a unique default, e.g., using nanoid.
Use { field: { nin: ['value1', 'value2'] } } with exact case matches.Update anondb to >=0.0.15 (npm install anondb@latest) and use correct import paths.
Import SQLiteConnector from 'anondb/node'.
Call SQLiteConnector.create(schema) or IndexedDBConnector.create(schema) to get the DB object.
No dependency data recorded yet.