reactive-orm is a lightweight ORM library for reactive programming, designed to maximize the utility of reactive variables in frontend frameworks (e.g., Vue 3, React with signals). As of version 0.3.5-alpha.0, it is in early alpha stage with irregular releases. Unlike traditional ORMs, it focuses on binding database reactivity to UI state, reducing boilerplate. Key differentiators include automatic data synchronization and minimal configuration, though it lacks maturity and documentation.
npm install reactive-ormNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates defining a model, registering it, querying with reactively, and auto-updating.
Update to 0.3.x and use orm.register(Model) instead of Model.database.
Replace .find() with .first() in queries.
Ensure your project uses Vue 3 Composition API or React with signals library (e.g., @preact/signals); otherwise, reactivity is lost.
Define fields as plain string types; use hooks for defaults.
Run `npm install reactive-orm@0.3.5-alpha.0`
Upgrade to version 0.3.x and use `orm.register(Model)`. Check installed version with `npm ls reactive-orm`.
Check if `users` exists before assigning properties: `if (users) { users.name = 'John'; }`No dependency data recorded yet.