@cnippet-helm/next
v0.4.0
Published
Next.js integration — Server Components, Server Actions, routing
Downloads
589
Readme
@cnippet-helm/next
Next.js App Router integration for Admin Kit — Server Components, Server Actions, and catch-all routing. This is the main package your Next.js app imports from.
Install
pnpm add @cnippet-helm/next @cnippet-helm/core @cnippet-helm/uiPeer dependencies: next >=15, react >=19
What's inside
| Export | Purpose |
|---|---|
| AdminPage | Catch-all Server Component — routes to list / detail / create / edit views |
| AdminLayout | Layout Server Component — renders AdminShell with nav and auth context |
| ListView | Server Component for paginated, filtered resource list |
| CreateView | Server Component for new-record form |
| EditView | Server Component for edit-record form |
| DetailView | Server Component for read-only record detail |
| createRecord | Server Action — validates, creates, audits |
| updateRecord | Server Action — validates, updates, audits |
| deleteRecord | Server Action — permission checks, deletes, audits |
| bulkAction | Server Action — runs bulk operations with per-record permission checks |
| uploadFile | Server Action — delegates to configured StorageAdapter |
| searchRelatedRecords | Server Action — powers relation field comboboxes |
| buildNavGroups | Server-side nav builder with permission filtering |
Scaffold (recommended)
npx @cnippet-helm/cli initThis creates the route files automatically:
src/app/admin/[[...admin]]/page.tsx
src/app/admin/layout.tsx
src/lib/admin.config.tsSee the Admin Kit docs for full usage.
