Prompt Details
Model
(claude-5-5-sonnet)
Token size
730
Example input
[APP_NICHE]: SaaS subscription analytics
[BRAND_NAME]: PulseMetrics
[PRIMARY_COLOR]: #6366F1
[KEY_MODULES]: Overview, Customers, Subscriptions, Invoices, Settings
Example output
STEP 1 - PLAN
File: index.html
- CSS: tokens (light/dark), layout, sidebar, navbar, cards, charts, table, modal, utilities
- HTML: <aside> sidebar, <header> navbar, <main> with KPI grid, charts row, table panel, modal
- JS: state, seedData, kpis, charts, table, modal, theme, events, utils
Data model (32 rows): subscriptions = { id, customer, email, plan: "Starter|Pro|Business", mrr: number, status: "Active|Trial|Past due|Canceled", country, startDate }
KPIs:
1. MRR = sum(mrr where status = Active)
2. Active Subscribers = count(status = Active)
3. Churn Rate = canceled this month / active at start of month
4. ARPU = MRR / Active Subscribers
STEP 2 - COMPLETE index.html (excerpt shown)
<!DOCTYPE html>
<html lang="en" data-theme="light">
<head>
<meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1">
<title>PulseMetrics Admin</title>
<style>
:root{--primary:#6366F1;--primary-soft:#EEF2FF;--bg:#F8FAFC;--surface:#FFFFFF;--text:#0F172A;--muted:#64748B;--border:#E2E8F0;--radius:14px;--shadow:0 4px 18px rgba(15,23,42,.06)}
[data-theme="dark"]{--bg:#0B1120;--surface:#111827;--text:#E5E7EB;--muted:#94A3B8;--border:#1F2937;--primary-soft:#1E1B4B}
.kpi-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
@media (max-width:900px){.kpi-grid{grid-template-columns:repeat(2,1fr)}.sidebar{transform:translateX(-100%)}}
</style>
</head>
<body>
<aside class="sidebar" aria-label="Main navigation">...</aside>
<header class="topbar">...search, bell (3), theme toggle, avatar menu...</header>
<main>
<section class="kpi-grid" id="kpis"></section>
<section class="charts"><div id="mrrChart"></div><div id="planChart"></div></section>
<section class="panel"><div class="table-toolbar">search, Plan filter, Status filter, + Add subscription</div><table id="subsTable"></table></section>
</main>
<script>
const state = { rows: load() || seedData(), page: 1, sort: {key:"startDate",dir:"desc"}, q:"", plan:"All", status:"All" };
function kpis(rows){
const active = rows.filter(r => r.status === "Active");
const mrr = active.reduce((s,r) => s + r.mrr, 0);
return [
{label:"MRR", value:"$"+mrr.toLocaleString(), change:+8.4},
{label:"Active Subscribers", value:active.length, change:+5.1},
{label:"Churn Rate", value:"2.3%", change:-0.6},
{label:"ARPU", value:"$"+(mrr/active.length).toFixed(0), change:+3.2}
];
}
function esc(s){ return String(s).replace(/[&<>"']/g, c => ({"&":"&","<":"<",">":">",'"':""","'":"'"}[c])); }
/* ...renderKpis, renderLineChart (SVG), renderDonut (SVG), renderTable, openModal, validate, save... */
</script>
</body></html>
STEP 3 - HOW TO CUSTOMIZE
- Data: edit seedData() or replace it with your own JSON array.
- Colors: change --primary in :root; dark mode adapts automatically.
- KPIs: edit the kpis() function.
- Modules: add a <li> in the sidebar and a matching render function.
By purchasing this prompt, you agree to our terms of service
CLAUDE-5-5-SONNET
Get a polished admin dashboard in one shot. This prompt builds a single self-contained HTML file that opens with a double-click: no server, no build step. Includes a collapsible sidebar, navbar with user menu, 4 KPI cards, interactive charts, a searchable CRUD data table and dark/light mode, styled in your brand color with realistic demo data. Perfect for SaaS founders, indie hackers, freelancers and agencies needing a fast admin panel or client demo.
...more
Added 51 minutes ago
