BlinkDB is an in-memory JavaScript database optimized for large-scale data on the client side. Current stable version is 0.14.0, released with a monthly cadence. It provides indexed queries, filtering, sorting, and pagination, serving as a high-performance alternative to Redux or MobX for SPAs. Key differentiator: database-like querying with an API inspired by Prisma, supporting both relational and non-relational data. Not yet production-ready (pre-1.0.0). Ships TypeScript types.
npm install blinkdbVerified import paths — ran on the pinned version, not inferred.
Creates a table, inserts records, queries with filter, sort, and limit using BlinkDB.
Use createTable<T>(db, name)() with double parentheses or pass options as second argument.
Replace update with upsert to update or insert a record.
Use import type { Table } from 'blinkdb' for type-only imports.Always await query results or use .then().
Use many instead of query.
Use import { createTable } from 'blinkdb' (named import).Run 'npm install blinkdb' and ensure project is configured for ESM (use --type module in package.json or .mjs extension).
Use import { BlinkDB } from 'blinkdb'.Ensure table is created with an index on the 'name' field: createTable<User>(db, 'users')({ primary: 'id', indexes: ['name'] })No dependency data recorded yet.