Socket
Book a DemoInstallSign in
Socket

nextjs-panel

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nextjs-panel

Schema-based admin panel generator for Next.js using Prisma and React components.

1.0.12
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

๐Ÿงฉ nextjs-panel

A CLI toolkit to rapidly scaffold dashboard UIs and RESTful APIs in your Next.js (App Router) projects using your Prisma database schema.

npm License Made for Next.js PRs Welcome

๐Ÿš€ Features

  • โšก Auto-generate forms, tables, and API routes from Prisma models
  • ๐Ÿ“ฆ Works out-of-the-box with Next.js App Router
  • ๐Ÿ› ๏ธ Supports RESTful API generation
  • ๐Ÿงฑ Schema-driven resource scaffolding
  • ๐Ÿงฉ Built-in support for add/edit UI forms

๐Ÿ“ฆ Installation

npm install nextjs-panel

๐Ÿ› ๏ธ Quick Start Guide

Follow the steps below to generate a complete dashboard in minutes:

1. Install the package

npm install nextjs-panel

2. Run setup

npx nextjs-panel setup

This sets up necessary files and folder structure for the admin panel.

3. Initialize Prisma

npx prisma init

4. Configure your database

Edit the generated prisma/schema.prisma file and set your database:

datasource db {
  provider = "postgresql" // or mysql, sqlite, etc.
  url      = env("DATABASE_URL")
}

Update your .env file with the correct DATABASE_URL.

5. Sync your database schema

# For existing database:
npx prisma db pull

# For new schema:
npx prisma db push

6. Generate Prisma Client

npx prisma generate

7. Create your first resource

npx nextjs-panel make:resource user

This will generate:

  • app/admin/users/page.tsx โ€“ Admin dashboard page
  • app/api/users/route.ts โ€“ REST API for CRUD
  • Dynamic forms & tables powered by Prisma

๐Ÿงช Example

Given a User model in prisma/schema.prisma:

model User {
  id    Int    @id @default(autoincrement())
  name  String
  email String @unique
}

Run:

npx nextjs-panel make:resource user

This will instantly scaffold everything you need to view, create, update, and delete users in your dashboard.

๐Ÿ“ Generated Folder Structure

app/
โ”œโ”€โ”€ admin/
โ”‚   โ””โ”€โ”€ users/
โ”‚       โ””โ”€โ”€ page.tsx        # Dashboard view
โ””โ”€โ”€ api/
    โ””โ”€โ”€ users/
        โ””โ”€โ”€ route.ts        # RESTful API

๐Ÿงฉ Roadmap

  • Field-level validation
  • Role-based access control
  • File/image upload fields
  • Relationship support
  • Dark mode theming
  • CLI config customization

๐Ÿ™Œ Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what youโ€™d like to change.

Development setup

git clone https://github.com/yourusername/nextjs-panel.git
cd nextjs-panel
npm install

๐Ÿ“„ License

MIT ยฉ Your Name

๐Ÿ’ฌ Feedback

If you have any feedback, ideas, or questions, feel free to open an issue or reach out!

Keywords

nextjs

FAQs

Package last updated on 17 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with โšก๏ธ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.