@flowpanel/kit
v0.1.0
Published
Config-first admin panel framework for Next.js 15
Readme
flowpanel
One typed config → full admin panel for your Next.js app. Drizzle or Prisma. Realtime. Queues. Eject when you outgrow it.
Install
pnpm add @flowpanel/kit
pnpm flowpanel init
pnpm flowpanel devVisit http://localhost:3000/admin. Done.
What you get
- Type-safe end-to-end.
ctx.dbtyped everywhere via onedeclare moduleaugmentation. - Three customization tiers. L1 props (90%) → L2
theme.componentsoverrides (10 slots) → L3flowpanel ejectfor full ownership. - Batteries included. CRUD lists, drawers, dashboards, BullMQ queues, realtime SSE, soft-delete, audit, scope, rate-limit.
- Two ORMs first-class. Drizzle (Postgres / MySQL / SQLite) and Prisma —
@flowpanel/kit/drizzleand@flowpanel/kit/prisma. - Auth helpers.
withClerk,withNextAuth,withLuciafrom@flowpanel/kit/auth.
12-line config
// flowpanel.config.ts
import { defineAdmin, resource } from "@flowpanel/kit";
import { drizzleAdapter } from "@flowpanel/kit/drizzle";
import { withClerk } from "@flowpanel/kit/auth";
import { db } from "@/db/client";
import * as schema from "@/db/schema";
declare module "@flowpanel/core" {
interface FlowpanelTypes { db: typeof db }
}
export default defineAdmin({
adapter: drizzleAdapter({ db, schema }),
auth: withClerk({ requireRole: "admin" }),
resources: [resource(schema.users, { columns: ["email", "role"] })],
});CLI
flowpanel init Scaffold the admin (config + routes + migrations)
flowpanel dev Start Next.js (and bull-board if REDIS_URL is set)
flowpanel new Add a resource to flowpanel.config.ts
flowpanel migrate Apply audit + tracking SQL migrations
flowpanel doctor Health check (--fix to auto-write missing routes)
flowpanel eject Take ownership of a resource / dashboard / layoutSubpaths
flowpanel core builders (defineAdmin, resource, dashboard, ...)
flowpanel/next Next.js App Router integration
flowpanel/react React UI primitives (used internally and exposed)
flowpanel/drizzle Drizzle adapter
flowpanel/prisma Prisma adapter
flowpanel/bullmq BullMQ queue adapter
flowpanel/charts Charts (lazy-loaded)
flowpanel/client Client-only hooks
flowpanel/auth withClerk, withNextAuth, withLucia
flowpanel/server Server-only utilitiesDocumentation
License
MIT — see LICENSE.
