Next.js & shadcn/ui Admin DashboardCloudflare

Studio Admin

An admin dashboard of two dozen screens, on Workers Free.

shadcn-admin

Vercel's Next.js & shadcn/ui Admin Dashboard template — Studio Admin, its dashboards, auth screens, chat, mail, kanban, calendar, data tables and charts over mock data, with theme presets and layout controls — running on Cloudflare Workers + Static Assets through @opennextjs/cloudflare, and packaged as an Orun baseline: one command takes a new site from nothing to live on stage and prod, in its own repository, under its own name.

The template's code is the code. What the port adds is the Workers build, the monorepo wrapper, a test package, a health route and the deploy contract; what it swaps is Google-hosted fonts (for self-hosted ones), the hard-coded site origin (for an environment variable) and the template author's analytics tag (gone). What the baseline adds is everything needed to make a copy of it somebody else's — built the way cirrus-baseline is. See specs/epics/shadcn-admin for the design, the milestones and the as-built status.

Instantiating a site

git clone --depth 1 --branch <baseline-tag> https://github.com/sourceplane/shadcn-admin
cd shadcn-admin
orun new --blueprint repo-blueprint.yaml --out ~/sites/acme-admin --run-hooks --resume \
  --set reponame=acme-admin --set productname="Acme Admin" \
  --set githuborg=acme-inc --set subdomain=<workers-dev-subdomain>

Or, once the platform's registry lists it, from the Orun console (Baselines → shadcn-admin → Build). Two phases — 01-product (the repository created, then the whole site in one pull request, deployed to stage and prod and smoke-tested) and 03-docs (the live deployment recorded) — each landing one pull request in the new repository. BOOTSTRAP.md is the operator guide; docs/phases/ has a page per phase.

The new repository receives the site only — the app, its tests, its CI, its tooling, a README and an AGENTS.md of its own and its operating contract — renamed throughout to the site's name, repository and Cloudflare Worker. None of this repository's machinery ships.

What makes it a baselineWhere
The console card (inputs, secrets, programme)blueprint.yaml
The build document (modules, phases, hooks)repo-blueprint.yaml
This tree's identity, and the bootstrap's task contracts.baseline/
The rename enginetooling/rebrand/rebrand.mjs
The bootstrap's helpers (deferrals, redeploy marker, work-tree strip)tooling/bootstrap/
The deployment-record rendererhooks/render-deployment-docs.sh
The site's README, agent page and context pack.baseline/product/README.md, .baseline/product/AGENTS.md, ai/context/
The baseline's tests: contract, leak, offline bootstrap, end to endtesting/, .github/workflows/baseline.yml
Cutting a baseline-vN tag.github/workflows/tag.yml

What is here (the site)

SurfaceWhere
The site's name and source linkapps/web/src/config/site.ts (read by apps/web/src/config/app-config.ts)
The landing pageapps/web/src/app/(external)
The dashboards (default, CRM, finance, analytics, e-commerce, logistics, …), auth screens, chat, mailapps/web/src/app/(main)
Mock dataeach screen's _components/*data*, apps/web/src/data
Theme presets, fonts, layout preferencesapps/web/src/styles/presets, apps/web/src/lib/fonts/registry.ts, apps/web/src/lib/preferences
Sitemap, robots, healthapps/web/src/app/sitemap.ts, apps/web/src/app/robots.txt/route.ts, apps/web/src/app/api/health/route.ts
Workers build and deploy contractapps/web/next.config.mjs, open-next.config.ts, wrangler.jsonc, component.yaml
Teststests/web (vitest)

Getting started

pnpm install
pnpm typecheck
pnpm lint
pnpm test
pnpm build            # next build + opennextjs-cloudflare build → apps/web/.open-next
pnpm --filter @app/web dev        # http://localhost:3000
pnpm --filter @app/web preview    # wrangler dev over the built Worker

One optional build-time variable (apps/web/.env.example):

VariableWhat it does
NEXT_PUBLIC_SITE_URLThe site's public origin for the sitemap, robots, Open Graph and JSON-LD links. The Orun build sets it to the environment's SITE_URL (intent.yaml), else its Worker URL. Defaults to http://localhost:3000.

The data is the template's mock data, kept as it is: wire a screen to your own source in its _components. The sign-in and sign-up screens are the template's design screens: they sign nobody in.

How it maps to Vercel

VercelHere
Next.js hostingOne Cloudflare Worker (.open-next/worker.js) + Static Assets; the dashboards render per request (they read layout cookies), the static pages and assets come from the static-assets cache
Next.js build (Turbopack)next build --webpack: Turbopack's per-route server chunks put the Worker at 3.32 MiB gzipped, over Workers Free's 3 MiB; webpack's shared chunks make it 2.25 MiB
next/font/google (17 families, fetched at build)next/font/local over each family's variable font from its @fontsource-variable package (and geist), the same CSS variables
opengraph-image.png / twitter-image.png file conventionOne static public/opengraph-image.png, named in the metadata (the convention compiled two copies of the PNG into the Worker)
Static robots.txt naming the demo's domainrobots.txt/route.ts: upstream's rules, the environment's own sitemap URL
The star count revalidated hourly (next: { revalidate: 3600 })Fetched once by the build (cache: "force-cache"), for the site's own repository
Google Analytics (the template author's tag)Removed
Hard-coded demo originNEXT_PUBLIC_SITE_URL
Deploy on pushOrun deploys <repo>-web-{stage,prod} on merge to main (apps/web/component.yaml)
"Deploy with Vercel" (clone the template)orun new --blueprint repo-blueprint.yaml — a new repository, branded, deployed

CI

WorkflowWhat it runsShips to a site
ci.ymlthe Orun pipeline, and the only workflow a site carries: orun plan --changed, then one job per lane. A pull request runs the verify lanes (the site built and dry-deployed per environment; the tests' quick-check lane installs and checks the package, it does not run them), except the bootstrap's own landings (orun/BASE-*), where plan alone is the check; a merge deploys stage → prod. It plans nothing while intent.yaml names the placeholder workspace ws_CHANGE_ME, as this repository does. A manual run (Orunbase's Deploy button, or Run workflow on main) plans the environment and components it names under the push-to-main trigger, so they deploy as a merge deploys themyes
baseline.ymlthe baseline's own tiers: contract tests, the blueprint read by the pinned orun, the leak gate, the offline bootstrap, the site built, dry-deployed and servedno
tag.ymlcuts a baseline-vN tag (manual)no