## What is ZeroDirs?
Building a directory or curated aggregator is one of the most proven micro-SaaS business models today. However, most directory templates on the market are bloated: heavy Next.js runtimes, costly Supabase/Postgres databases, fragmented third-party services, and hosting bills that hit $20–$50/month before making your first dollar.
ZeroDirs was engineered from first principles to solve this: it is the SEO-first, AI-agent native directory boilerplate designed for a $0/month Cloudflare hosting bill.
It ships 0 KB client-side JavaScript on content pages for instant static-fast loading, provides automated Programmatic SEO (pSEO), and integrates production-ready Stripe monetization out of the box.
---
## Why ZeroDirs? (Built from First Principles)
### 1. True $0/month Infrastructure
ZeroDirs runs 100% on Cloudflare's modern serverless edge:
- Cloudflare Workers: Global edge runtime with sub-millisecond cold starts.
- Cloudflare D1: Serverless SQLite at the edge with automated backups.
- Cloudflare R2: Zero-egress fee object storage for user-submitted logos and screenshots.
- Built to handle hundreds of thousands of monthly visitors comfortably within Cloudflare's generous free tier.
### 2. Static-First & 100/100 Lighthouse SEO
Most modern web directories suffer from heavy client bundles and slow Cumulative Layout Shift (CLS). ZeroDirs renders content statically via Astro:
- Zero client JS on reading pages.
- Built-in JSON-LD structured data (`SoftwareApplication`, `FAQPage`, `BreadcrumbList`).
- Programmatic SEO (pSEO) engine for generating high-ranking category, comparison, and alternative pages.
- Automatic XML sitemaps, canonical tags, and dynamic Open Graph card generation.
### 3. Production Monetization & Admin Workflows
Everything you need to run a cash-flowing directory business is pre-wired:
- Stripe Checkout: One-time payments for standard and featured submissions with idempotent webhook verification.
- Admin Review Queue: Secure authentication, one-click approve/reject actions, and featured badge expiration.
- Transactional Emails: Automated receipt delivery, approval notifications, and a transactional retry outbox.
- Built-in Affiliate System: First-party referral tracking with customizable cookie windows and commission payouts.
### 4. AI-Agent Native (`AGENTS.md`)
ZeroDirs isn't just for human coders. It comes pre-packaged with curated instructions and recipes in `AGENTS.md`. Whether you work with Claude Code, Codex, or Gemini CLI, the agent knows exactly how to add listing attributes, scaffold custom themes, or create automated ingestion scripts without breaking core business logic.
---
## The Tech Stack
- Framework: Astro 5 (Static Site Generation + Server-rendered dynamic routes)
- Database: Cloudflare D1 (Serverless SQLite)
- Storage: Cloudflare R2
- Payments: Stripe API & Webhooks
- Styling: Tailwind CSS
- Deployment: Single-command deploy via Cloudflare Wrangler & GitHub Actions
---
## Explore & Try
- 🌐 Official Website: [zerodirs.com](https://zerodirs.com)
- 🚀 Interactive Demo: [demo.zerodirs.com](https://demo.zerodirs.com)
- 💻 Open Source Repository: [github.com/zerodirs](https://github.com/zerodirs)
- 📖 Documentation: [zerodirs.com/docs](https://zerodirs.com/docs/)
Built with