Skip to content

Introduction ​

Zorix is a lightweight, type-safe IndexedDB library for modern web applications. It makes working with local browser databases easy, fast, and straightforward.

Why Zorix? ​

Raw IndexedDB is very powerful, but writing raw IndexedDB code with complex event handlers and callbacks can quickly get confusing. Zorix makes things simple by giving you:

  • TypeScript-First: Full auto-completion and type checking while writing your schemas and queries.
  • Super Fast Performance: Inserts thousands of records quickly in a single transaction and fetches data using native browser speed.
  • Simple Schemas: Define your table structure once, and Zorix automatically handles validation for you.
  • Easy Event Listeners: Listen for data inserts, updates, and deletes to keep your UI updated automatically.
  • Always Fresh Data: Reads fresh data directly from IndexedDB every time, so you never have to worry about stale cache issues.

Simple Comparison ​

FeatureRaw IndexedDBStandard LibrariesZorix DB
API StyleComplex CallbacksBasic PromisesClean Async/Await & Simple Events
Schema & TypesManual CheckingPartial TypesFull TypeScript Auto-Completion
Bulk SavingSlow / ManualSequential PromisesSuper Fast Single Transaction
Data FetchingItem-by-item CursorsCursor LoopsDirect Native Browser Speed

Next, check out Installation.

Released under the MIT License.