- Home
- Skills
- Frontend & Web Apps
- Pulse: Next.js 16 Admin Dashboard Builder
More screenshots
Works with the AI Agents you already use
Pulse: Next.js 16 Admin Dashboard Builder
by Osama ayub
Build a real admin dashboard in Next.js 16 on PostgreSQL: KPI cards vs the last period, revenue charts, and an orders table with search, filters, sorting, pagination, CSV export and double-click-safe actions.
$9
Pulse: Next.js 16 Admin Dashboard Builder
Example session with this skill installed
Add an orders page to my Next.js 16 store admin. I use PostgreSQL with Drizzle. I need search by customer name or email, a status filter (pending, paid, shipped, refunded), sort by date or total, 12 rows per page, CSV export of the current view, and a Mark shipped button.
- Read your context and instructions
- Compiled the pulse
- Generated the UI component
Summary
Added a server-rendered orders page. Search, filters, sorting, counting and paging all run in PostgreSQL, the view is kept in the URL, the CSV export uses the same filters, and Mark shipped is safe against double clicks.
Files changed
| File | What it does |
|---|---|
src/features/orders/params.ts | Zod schema for ?q=&status=&sort=&dir=&page=, falls back to defaults on bad input |
src/features/orders/queries.ts | Shared filters(), listOrders() (page + count in parallel), exportOrders() |
src/features/orders/actions.ts | markShipped Server Action with the status check inside the UPDATE and an audit log row |
src/features/orders/components/ship-button.tsx | useActionState button with pending and error states |
src/app/orders/page.tsx | Table, filters, sort links and pagination |
src/app/api/orders/export/route.ts | CSV download of the current view, max 10,000 rows |
Key code
function filters(q: OrdersQuery) {
const term = q.q ? likePattern(q.q) : null;
const where = and(
q.status ? eq(orders.status, q.status) : undefined,
term ? or(ilike(customers.name, term), ilike(customers.email, term)) : undefined,
);
const col = q.sort === "total" ? orders.totalCents : orders.createdAt;
return { where, orderBy: [q.dir === "asc" ? asc(col) : desc(col), desc(orders.id)] };
}
await tx.update(orders).set({ status: "shipped" })
.where(and(eq(orders.id, id), inArray(orders.status, ["paid"])));
Checks run
npm run typecheckandnpm run lintpass/orders?page=-5&sort=dropfalls back to page 1, newest first- Clicking Mark shipped twice quickly changes the order once and writes one audit row
- CSV export of
?status=paidmatches the table, and a customer named=SUM(A1)exports as text
Next steps
- Add the same pattern to Customers and Products
- Connect your payment provider before using Refund for real money
ship-button.tsx
TSX · React component
Example file from a real run - the skill writes it into your workspace.
Connects securely to your tools. The creator never sees your data.
About this skill
What this skill does
Pulse turns your agent into a senior full-stack engineer for one job: building admin dashboards that hold up with real data. It is based on Pulse, an open-source Next.js 16 dashboard I built.
Ask for an admin panel, a sales dashboard or an orders table, and your agent follows a tested 11-step workflow instead of improvising.
What your agent will build
- KPI cards with context: revenue, orders, average order and new customers, each compared with the previous period of equal length
- Revenue charts: day, week or month buckets with
date_trunc, empty buckets filled with zero, rendered with Recharts - Orders table done in SQL: search, status filters, sorting and pagination run in PostgreSQL, so the browser only gets one page
- Shareable views: filters live in the URL and are parsed safely with Zod (bad params fall back, never crash)
- Double-click-safe actions: Mark shipped and Refund Server Actions with the status check inside the UPDATE, plus an audit log row
- Safe CSV export: the same filters as the table, row cap, and cells spreadsheets cannot run as formulas
- Admin-only access: server-side checks on every page, route and action
Who it is for
Developers and agencies building ecommerce back offices, SaaS admin panels, internal tools and client dashboards with Next.js.
Stack
Next.js 16 App Router, React 19, TypeScript, Tailwind CSS 4, PostgreSQL with Drizzle ORM, Zod, Recharts, Auth.js. If your project uses another ORM or UI kit, the agent keeps yours and applies the same rules.
What's inside
SKILL.md: workflow, rules and definition of donereferences/: schema and connection, URL state, KPIs and charts, tables and export, Server Actions, each with working code
Open source
The Pulse source code is open source (MIT) on GitHub, and the full build is on my YouTube channel, @osamaayubdev.
This skill packages the workflow and patterns so your agent can apply them to your own project and data model.
Built for Next.js App Router projects; Pages Router and other frameworks need manual adaptation. Examples use PostgreSQL with Drizzle ORM; other ORMs work but the agent translates the queries. Refund and ship actions update order status only and do not call a payment provider. Not a UI component library: it builds dashboards inside your existing design.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 7 days ago
- Software
Node.js 20+PostgreSQL database
No database yet? Pulse runs on PGlite (Postgres in WebAssembly) for local demos, or any hosted Postgres such as Neon or Supabase.
Permissions
File Scopes
Read Files: inspects your package.json, database setup and routes before changing anything. Write Files: creates and edits the dashboard pages, queries and Server Actions in your project. Terminal: runs your typecheck, lint and tests to verify the work. Environment Variables: reads DATABASE_URL and auth settings; secrets are never exposed to the browser.
What's inside
Frequently Asked Questions
New in Frontend & Web Apps
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Frontend & Web Apps.