@nubitio/react-admin
v0.5.15
Published
Batteries-included admin stack: core runtime, CRUD, Hydra adapter, and AdminShell.
Maintainers
Readme
@nubitio/react-admin
Batteries-included admin stack for API Platform / Hydra backends. Umbrella package that re-exports @nubitio/core, @nubitio/ui, @nubitio/admin, @nubitio/crud, and @nubitio/hydra from a single install.
Install
npm install @nubitio/react-adminPeer dependencies
"@tanstack/react-query": "^5",
"i18next": "^23",
"react": "^19",
"react-dom": "^19",
"react-i18next": "^14",
"react-router-dom": "^6"Icons are Phosphor CSS classes (ph ph-*) used
throughout the shell, grids and forms — install and import the webfont once:
npm install @phosphor-icons/web// main.tsx
import '@phosphor-icons/web/regular';Without it, menu and toolbar icons render as empty squares.
Quick start
import {
CoreProvider,
AdminShell,
SchemaProvider,
SmartCrudPage,
defineResource,
} from '@nubitio/react-admin';
import '@nubitio/react-admin/style.css';
const products = defineResource('/api/products', { title: 'Products' });
export function App() {
return (
<CoreProvider apiBaseUrl="https://api.example.com" locale="es" timezone="America/Lima">
<SchemaProvider>
<AdminShell title="My Admin" menuItems={menu}>
<SmartCrudPage resource={products} />
</AdminShell>
</SchemaProvider>
</CoreProvider>
);
}SmartCrudPage discovers the resource schema from your API Platform docs and renders a full CRUD page — datagrid with filters/sorting/pagination, create/edit forms (dialog, drawer, or page), validation, and RBAC — with zero hand-written field definitions. Use CrudPage with explicit field definitions when you want full manual control.
The stack
| Package | What it provides |
| --- | --- |
| @nubitio/core | HTTP client, event bus, i18n, Mercure SSE, date utilities |
| @nubitio/ui | Visual primitives and theme system |
| @nubitio/admin | Responsive admin shell (sidebar, header) |
| @nubitio/crud | Declarative CRUD engine: field DSL, forms, datagrids, RBAC |
| @nubitio/hydra | Schema discovery and data sources from Hydra/OpenAPI docs |
Each package is also published separately if you only need part of the stack.
License
MIT
