A React ORM-like data management and UI orchestration library (v2.0.13) that provides an organized structure for state management, CRUD operations, form handling, and validation in React applications. It uses models, controllers, and providers to streamline data interaction, supports relationships between models, and integrates with zod for validation. Released as a stable package with TypeScript support, it requires @tanstack/react-query v4 and react 18. Differentiators include a declarative field configuration system, per-action schemas, and a React-Query underpinning for server state synchronization.
npm install avnt-react-ormNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates creating a Model and Controller with zod validation and field configuration.
Replace calls to `model.save()` with `controller.store(model)` and `model.destroy()` with `controller.remove(model)`.
Ensure all data fetching and mutations go through the QueryClient. Migrate from internal state hooks to useQuery/useMutation patterns.
Migrate `attributes` to `fields` in controller settings. See migration guide.
Explicitly set `create.schema` and `update.schema` if they differ from the default.
Use `import` syntax or dynamic import() in CommonJS files.
Run `npm install avnt-react-orm @tanstack/react-query react react-dom zod`
Use `import { ControllerBase } from 'avnt-react-orm'` (named import).Wrap your app with <QueryClientProvider client={queryClient}> from @tanstack/react-query.