Early bird + Black Friday · 73% off

Get ZeroDirs for $179 $49

Claim $49 deal
Astro 7 · Cloudflare Workers · AGENTS.md

The SEO-first & AI-agent readydirectory boilerplate with$0/mo hosting bill

  • 0 KB client JS on content pages
  • AGENTS.md + agent skills
  • $0/mo on Cloudflare Free
  • Unlimited directories
Live Demo

73% off Early bird + Black Friday · $179 $49 · 7 of 10 seats left

01 · Codebase & AI Agents

An AI-ready codebase that scales

Built on AGENTS.md, CLAUDE.md, and task-specific Agent Skills, so Claude Code, Codex and Gemini can customize fields, themes, and routes without breaking core plumbing.

  • Test-guarded AGENTS.md map
  • Ready-made .agents/skills/ recipes
  • Single site.config.ts surface
  • Unit, workerd & Playwright suites

Under the hood · What it uses

Astro 7TypeScript 5.9AGENTS.md.agents/skills/site.config.tsVitest + workerdPlaywright
zerodirs/
AGENTS.md + skills
AGENTS.mdArchitectural map, invariants & test-guarded paths
CLAUDE.md@AGENTS.md single source of truth
.agents/skills/
├─ add-listing-field├─ new-theme├─ import-listings├─ new-pseo-template├─ configure-accounts└─ go-live
site.config.tsValidated config: brand, tiers, fields, SEO, theme
src/db/schema.tsDrizzle SQLite tables for Cloudflare D1
src/server/Auth, Stripe webhooks, dashboard, outbox, cron
02 · SEO & Programmatic Pages

Programmatic SEO that ranks on day one

Content pages compile to pure static HTML with 0 KB of client JavaScript. Automated category × tag landing pages, internal link checks, and OG images are generated at build time.

  • 0 KB client JS on content pages
  • Category × tag pSEO generator
  • Orphan-page build gate (strictLinks ≥ 2)
  • Build-time OG images & JSON-LD

Under the hood · What it uses

Astro Static OutputSatori + @resvg/resvg-jsschema-dts (JSON-LD)@astrojs/sitemap@astrojs/rsssrc/features/pseo/src/features/og/
pnpm build · seo-report0 KB client JS
Generated routesstatic HTML
/tools/<slug>/ · listing detail + JSON-LD
/categories/<slug>/ · paginated index
/best/<tag>-in-<category>/ · pSEO + intro MD
Satori + resvg-js
OG images 1200×630
content-hash cached
Internal link gate
strictLinks: true
0 orphans shipped
03 · Authentication & Owner Dashboard

Authentication & owner dashboard you can ship

Don't let an agent invent login security. Ship email + password, Google OAuth, password reset links, and a submitter /dashboard/ with click analytics and bookmarks.

  • Email + password & Google OAuth 2.0
  • Modal sign-in dialog (/login/dialog/)
  • Owner /dashboard/ with 30-day clicks
  • Saved listing bookmarks & settings

Under the hood · What it uses

Web Crypto PBKDF2-HMAC-SHA-256Google OAuth 2.0HttpOnly Session CookiesAstro Middlewaresrc/server/auth/src/server/dashboard.ts
/dashboard/ · Owner Portal
PBKDF2-SHA256 + Google OAuth 2.0
HttpOnly Session
Acme Dental StudioApproved
30d clicks: 142Upgrade to Featured
/login/dialog/ · Modal Partialbookmarks + submit
GContinue with Google
Email + PasswordToken Reset Link
04 · Payments & Monetization

Charge listing owners without webhook bugs

Billing is where AI-generated code quietly fails. Paid submission tiers, featured placements, and an idempotent Stripe webhook that survives replays are wired out of the box.

  • Free, paid & featured submission tiers
  • Hosted Stripe Checkout sessions
  • Replay-safe idempotent webhook
  • One-click upgrade from /dashboard/

Under the hood · What it uses

Stripe SDK (Fetch Client)Stripe CheckoutWebhook HMAC VerificationSigned Status Tokenssrc/server/payments/D1 payments table
src/server/payments/Idempotent Webhook
FREE
$0
Review queue
FAST TRACK
Paid
Priority publish
FEATURED
Pinned
Top card + badge
POST /api/stripe/webhook/
✓ Stripe-Signature HMAC verified
✓ event_id deduped in D1 payments table
✓ listing.payment_status = 'paid' + receipt queued
05 · Data, Storage & Content Layer

A typed Cloudflare D1 & R2 backend

Listings live in Cloudflare D1 (SQLite) and logos in R2 object storage — read at build time for static HTML and queried at runtime by the Worker within the $0/mo free tier.

  • Typed Drizzle ORM schema & migrations
  • Build-time Astro Content Layer loader
  • R2 logo & media storage (/media/<key>/)
  • One-command CSV bulk import & seeding

Under the hood · What it uses

Cloudflare D1 (SQLite)Drizzle ORM + drizzle-kitCloudflare R2Astro Content Layersrc/db/schema.tssrc/loaders/
src/db/schema.ts · Cloudflare D1 + R2Drizzle ORM
listingsD1
paymentsD1
clicksD1
usersD1
sessionsD1
bookmarksD1
email_outboxD1
audit_logD1
# Seed & bulk import into local or remote D1 + R2
$ pnpm listings:import clinics.csv --remote
$ pnpm db:migrate:remote
06 · Zero-JS Admin & Deploy Hooks

Zero-JS admin queue & automatic rebuilds

Review pending submissions at /admin/, edit custom fields, feature listings, and approve with one click — firing a Cloudflare deploy hook that rebuilds the static site.

  • Admin access via proven admin.emails
  • Approve, reject, edit & feature actions
  • Automated Cloudflare Deploy Hook rebuild
  • Live configuration & secret health report

Under the hood · What it uses

Astro Actions (Zero-JS Forms)Cloudflare Deploy Hookssecrets.ts configGaps()src/actions/admin.tssrc/pages/admin/
/admin/ · Zero-JS Queue
Authenticated via verified admin.emails
Deploy Hook Ready
Royal Oak DentalPENDING · PAID
Approve & RebuildEdit FieldsReject
secrets.ts · configGaps() health check
DB + MEDIA bindingsOK
Deploy hook rebuildAuto on approve
07 · Transactional Mail & Outbox

Transactional emails that never silently vanish

Every submission confirmation, approval notice, rejection reason, and admin digest goes through a persistent D1 outbox that retries automatically on an hourly Worker cron.

  • Cloudflare Email Sending or Resend
  • Persistent D1 retry outbox table
  • Hourly cron job for outbox & expiry
  • One-click resend from /admin/

Under the hood · What it uses

Cloudflare Email SendingResend REST APICloudflare Cron TriggersD1 email_outboxsrc/server/email/src/server/jobs.ts
D1 email_outbox · Cron 0 * * * *CF Email / Resend
submitted.ts
Confirmation + signed status link
SENT
approved.ts
Live listing URL notification
SENT
rejected.ts
Moderation feedback notice
SENT
password-reset.ts
20m single-use reset token
SENT
admin-digest.ts
Daily pending queue reminder
CRON
08 · Search, Themes & Performance

Instant search & themes that don't look like AI slop

Start from 3 cohesive design presets, dark mode, a ⌘K command palette, and a build-time Pagefind full-text index that filters by category, tag, and custom fields at zero server cost.

  • ⌘K Command Palette & Pagefind index
  • 3 visual presets (default, warm, mono)
  • Custom card & detail fields in config
  • 100/100 Lighthouse performance gate

Under the hood · What it uses

Tailwind CSS v4Pagefind 1.5Preact 10astro-icon (Lucide)@lhci/cli (Lighthouse CI)src/components/
Search tools, categories, tags…⌘K
Pagefind static index0 server queries
Lighthouse CI audit100 / 100 Perf
3 built-in themes + light/dark mode
default
warm
mono

Built with the best

A battle-tested stack with a $0/month bill

  • Astro
  • Cloudflare
  • Stripe
  • Tailwind CSS
1file
configures the whole sitesite.config.ts holds brand, routes, categories, custom fields, tiers, SEO, pSEO and theme
0KB
JavaScript on content pagespure static HTML on CDN — no client framework, no hydration bundle
$0/mo
Cloudflare hosting billunmetered static assets plus 100,000 free Worker requests/day for dynamic routes
0
orphan listings shippedstrictLinks fails the build if any listing has fewer than two inbound internal links

Features

Everything a directory needs to rank and earn

Built-in authentication, an admin review queue, Stripe payments, programmatic SEO, a blog and AI-agent workflows — without monthly infrastructure fees.

SEO-First Static HTML

Content pages ship zero client-side JavaScript. Chunked sitemaps, canonicals, robots.txt, JSON-LD and Satori OG images are wired to one config.

Programmatic SEO Engine

Automatically generates long-tail category and tag landing pages with editable Markdown intros and a build gate that refuses orphan pages.

Built for AI Coding Agents

Ships with a test-guarded AGENTS.md and task-specific agent skills so Claude Code, Codex and Gemini extend your site cleanly.

$0/mo Cloudflare Hosting

Runs on Cloudflare Workers Static Assets, D1 SQLite and R2 storage. Static page views are unmetered with no server or VPS bill.

Multiple Revenue Streams

Monetize from day one with paid submission tiers, featured listing spots, sponsor/house ad slots and outbound click analytics.

Idempotent Stripe Checkout

Hosted Stripe Checkout, replay-safe webhook verification, signed status links and one-click tier upgrades from the owner dashboard.

Submitter Accounts & Dashboard

Email + password and Google OAuth sign-in, plus a /dashboard/ with 30-day click analytics, saved bookmarks and submission status.

Zero-JS Admin & Auto-Rebuild

Review queue at /admin/ to edit any listing, approve or reject with queued transactional emails and trigger an automatic site rebuild.

One-File Config & 3 Datasets

Swap niches in site.config.ts with 3 built-in themes (default, warm, mono) and 3 seed datasets: AI tools, indie tools and local businesses.

SEO-First Performance

Zero JavaScript shipped.
Every byte counts for rank.

Competing directory templates run on hydrated React/Next.js bundles that download hundreds of kilobytes before painting a page. ZeroDirs compiles every listing, category and pSEO page to plain static HTML.

  • Instant first-round-trip HTML on Cloudflare's edge CDN
  • Static full-text Pagefind search built at deploy time
  • Automated internal links, canonical URLs, JSON-LD and OG images
This page25 KB
document14
font.woff211
javascriptnone

measured · brotli

Typical SPA403 KB
document22
framework.js132
main.js96
page.js71
vendor.js58
hydrate.js24

illustrative

AI-Powered

Codebase + AI = Launch your directory in an afternoon

ZeroDirs includes a unit-tested AGENTS.md and task-focused skills so your coding agent knows every file, convention and build rule.

Claude CodeCodexGeminiCursorWindsurf

A codebase your coding agent actually understands.

Most boilerplates break when an AI coding agent guesses file paths or rewrites auth by hand. Every convention here is documented in one map and guarded by tests.

Test-guarded AGENTS.md & CLAUDE.md Ready-made skills in .agents/skills/ Yours to modify — unlimited projects Lifetime updates via git pull
your-directory/
  • src/config/One file changes your brand, categories, tiers, SEO and theme
  • src/lib/Routing, SEO text, JSON-LD, pagination — pure, tested
  • src/loaders/D1 at build time: the local database on your machine, the real one on the builder
  • src/templates/Home, listing, category, tag, pSEO, blog
  • src/components/The components you will actually edit
  • src/features/pSEO generator, internal links, OG images
  • src/server/Submissions, Stripe, admin auth, email, rebuild hooks
  • src/pages/admin/Review queue, featured, stats — server-rendered forms
  • integrations/Sitemap chunks, Pagefind index, file budget, SEO report
  • tests/unit, workerd and Playwright suites
  • seed/datasets/Three ready datasets: AI tools, indie tools, local business
  • AGENTS.mdThe map your coding agent reads first

Automated Workflow

Submissions turn into pages. Automatically.

No CMS to babysit, no manual commits to publish new listings. Approve in your admin queue and Cloudflare rebuilds the static site.

  1. 01

    Someone submits

    Paid or free, straight into your queue.

  2. 02

    You approve

    One click in the admin.

  3. 03

    It rebuilds

    Deploy hook fires automatically.

  4. 04

    It is live

    Static, on the CDN, ~2 minutes.

  • Submission form with validation, spam traps and rate limits6h
  • Stripe Checkout plus an idempotent webhook that survives replays6h
  • Admin queue, auth, approve/reject and featured expiry10h
  • Transactional emails, templates and a retry outbox4h
  • Programmatic SEO pages with thin-content guards8h
  • Internal-link engine and an orphan-page report5h
  • Build-time OG images with a content-hash cache5h
  • Chunked sitemaps, RSS, robots and canonical rules4h
  • Approve-to-live rebuild pipeline on Cloudflare5h
  • Static search that stays fast at 10k listings4h
Setup & plumbing you skip57h+

Estimates from building each piece · excludes design, content and debugging

What you get

A production directory foundation,
not just another landing template.

You spend a month building the parts nobody demos: the Stripe webhook that must not double-charge, the moderation queue that must not leak spam, the transactional emails that retry, and the internal linking Google expects.

0 KB
Client JS
100k
Free req/day
3
Preset themes
3
Seed datasets

Pricing

Pay once, build unlimited directories

Once you get repository access, it is yours forever. Build as many directories as you want — for yourself or clients — with a $0/month hosting bill.

73% off Early bird + Black Friday · 7 of 10 seats left30-day money-back guarantee
Full source code licence

Everything you need to ship

Competing directory starters run $47 to $199 and put you on a stack that bills you every month. ZeroDirs costs $0/month to run on Cloudflare.

  • Unlimited directories & client projects
  • 0 KB client JS for fast Google indexing
  • AGENTS.md + skills for Claude Code, Codex & Gemini
  • Cloudflare Workers, D1 & R2 ($0/mo free plan)
  • 3 visual themes + 3 ready seed datasets
  • Unit, workerd & Playwright E2E test suites

Pay once · no subscription · git pull lifetime updates

Early bird + Black Friday73% off
$49$179

first 10 seats · one-time payment

7 left
  • Private GitHub repository access the minute you pay
  • Paid submissions, Stripe Checkout & admin queue
  • Programmatic SEO engine & automated internal links
  • Submitter accounts, dashboard & 30-day click stats
  • Every future release, pulled cleanly with git

Stripe · connect GitHub · invited on the spot

FAQ

Frequently asked questions

Anything else? Email hi@zerodirs.com or ask in our Discord.

Why not just ask an AI to build me a directory?

Try it — you will get a listing grid in an afternoon. What you will not get is the part that makes money: an idempotent Stripe webhook that survives replays, a review queue that cannot be bypassed, emails that retry, and a build that refuses to ship an orphaned page. ZeroDirs gives your coding agent that tested foundation via AGENTS.md and skills so it extends instead of inventing.

How well does ZeroDirs work with Claude Code, Codex and Gemini?

It was built for them from day one. The repository includes a test-guarded AGENTS.md architectural map, CLAUDE.md, and ready-made agent skills (.agents/skills/) for adding custom fields, changing themes, importing CSV datasets and deploying — so your agent knows exactly where every file and invariant lives.

Why Astro instead of Next.js like other directory boilerplates?

Because a directory is a content and SEO site, and content sites should not ship a framework to the browser. Every listing, category and pSEO page is plain HTML on Cloudflare's CDN with 0 KB of client JS, so pages rank faster and cost $0/month to host.

Is hosting really $0/month, or is that a temporary promo?

It is Cloudflare's free plan, not a trial. Static assets are unmetered; the dynamic parts — submission form, Stripe webhook, dashboard and admin — use a handful of Worker requests against a 100,000/day free allowance. You only pay Stripe's transaction fee on what you earn.

What exactly lands in my repository after purchase?

The full private repository: the Astro static site, the Cloudflare Worker behind submissions, auth and admin, unit/workerd/Playwright test suites, three seed datasets, and full documentation. Pay, connect your GitHub account on the next page, and receive the repository invitation immediately.

Can I build unlimited directories and client projects?

Yes. Pay once for unlimited projects and commercial client work, with lifetime updates pulled via git. Your custom config, content and public assets stay untouched when pulling releases. Reselling the boilerplate itself as a competing template is not permitted.

Who is building this

I'm Jay Chung. I kept building directory sites for myself and kept rebuilding the same three things every time: the submission form, the Stripe webhook that must not double-charge, and the review queue. The third time I copied that code across, I stopped copying and turned it into a product.

ZeroDirs is what I wanted to exist when I started — SEO-first, ready for AI agents, and $0/month to keep online.

Every release is public, commit by commit, on @zerodirs. Questions, before or after you buy, go in the Discord.

Community

Not ready?
Stay close.

The Discord is where release notes land first, where buyers show what they launched, and where a question about your own directory gets answered in the open — before or after you buy.

Prefer email? One message per release, nothing else.

No drip campaign. One email per release.

ZeroDirs

Discord · buyers, people deciding, and me

Releases
Every release note lands here first, with what changed and whether it is worth pulling.
Questions
Ask before you buy, or about the directory you are building. Answered in the open, so the next person finds it too.
Launches
What other buyers shipped on it, and how.
Join the Discord

SEO-first · AI-agent ready · $0/mo hosting bill

The SEO-first & AI-agent ready directory boilerplate with $0/mo hosting bill.

Skip weeks of Stripe webhooks, moderation queues and SEO plumbing. Start with a repository built for Google and your coding agent.

$49 one-time · 30-day money-back guarantee · Release notes on @zerodirs