Repository navigation
Replies: 1 comment
|
Frameworks like Django, Laravel, and Rails have shown the immense value of built-in admin dashboards. While Next.js core maintains a lean, unopinionated foundation and leaves full visual dashboards to the ecosystem, there are several highly robust solutions that fit this exact requirement: 1. Refine (refine.dev)Refine is a React-based framework designed specifically for building CRUD applications, admin panels, and dashboards. It has first-class Next.js support, works seamlessly with App Router, and provides auto-generation of CRUD interfaces from Prisma schemas, Supabase, or REST APIs.
2. Payload CMS v3Payload is a headless CMS that, in its v3 release, has been re-architected to run natively inside the Next.js App Router. It runs on the same server, shares database connections, uses Next.js Server Components/Server Actions, and embeds a fully-fledged admin panel automatically at your chosen subpath (e.g., 3. KeystoneJSKeystoneJS offers an excellent GraphQL-based admin UI that runs alongside Next.js applications, providing schema introspection and automated database migrations. Dynamic Generation via PrismaIf you prefer a lightweight, custom solution, you can build a dynamic dashboard by reading the metadata from your client-side model definitions or utilizing Prisma's generator API (e.g., parsing Prisma's generated DMMF metadata) to automatically build tables and forms. |
Uh oh!
There was an error while loading. Please reload this page.
Goals
Non-Goals
Background
Frameworks such as Django, Laravel Nova, and Rails ActiveAdmin provide powerful admin interfaces out of the box. Developers can quickly manage users, content, products, and application data without manually building CRUD dashboards.
In the Next.js ecosystem, developers typically create custom admin panels or integrate third-party solutions. While this provides flexibility, it also results in duplicated effort across projects.
Current alternatives include building custom dashboards, using CMS platforms, or adopting third-party admin frameworks. However, there is no standardized solution that feels native to the Next.js ecosystem.
Proposal
Instead of adding a full admin panel directly into the Next.js core framework, an official optional package, starter template, or plugin could be explored.
Potential features:
Compatibility with common ORMs such as Prisma
Example:
A Prisma schema:
model User {
id String @id
name String
email String
}
Could automatically generate:
/admin/users
/admin/users/create
/admin/users/edit/[id]
This would improve developer productivity while remaining optional and aligned with Next.js's modular philosophy.
I would be interested in contributing to the design, implementation, or discussion of this feature if there is community interest.
I have done a search for similar discussions.
All reactions