@flowpanel/next
v0.1.0
Published
Next.js 15 integration for FlowPanel — App Router pages, route handlers, server actions, drawers, and SSE
Readme
@flowpanel/next
Next.js 15 App Router integration for FlowPanel.
Most users import from
flowpanel/next(umbrella subpath).
Mount
Two route files own the entire admin surface:
// app/admin/[[...slug]]/page.tsx
import { Flowpanel } from "flowpanel/next";
import config from "@/flowpanel.config";
export default Flowpanel(config);// app/api/flowpanel/[...route]/route.ts
import { handlers } from "flowpanel/next";
import config from "@/flowpanel.config";
export const { GET, POST } = handlers(config);
export const runtime = "nodejs";// app/api/flowpanel/stream/route.ts
import { stream } from "flowpanel/next";
import config from "@/flowpanel.config";
export const GET = stream(config);
export const runtime = "nodejs";
export const dynamic = "force-dynamic";flowpanel init writes all three.
What's wired
- RSC catch-all dispatching dashboards, resource list/detail/edit/create, queue iframe pages.
- Server Actions for create / update / delete with
revalidatePath+publishResource. - SSE stream with 15s heartbeat + abort handling.
- Drawer GET (
/api/flowpanel/drawer/<r>/<id>) and drawer-action POST (/api/flowpanel/drawer/<r>/<id>/actions/<key>) — both dispatched byhandlers(). - Auth + scope + rate-limit checks per request, audit emission on mutations.
Documentation
License
MIT
