Build your startup on solid foundations

Open source, Cloudflare-native web app starter for the AI era

Get the basics done right. Avoid AI slop.

Auth, payments, permissions, email, database, CI/CD - wired together and tested so you can write product code on day one.

Develop with AI Agents
Consistent patterns and bundled agent skills that automate common tasks. Includes an AGENTS.md agents actually read.
Authenticate Users
OTP-based auth via email. No passwords, no third-party services. Session management and bot protection with Cloudflare Turnstile.
Accept Payments
Sell products and subscriptions with Polar.sh. Automatic role assignment, webhook handling, and global tax compliance included.
Manage Permissions
Simple RBAC with database roles and config-based permissions. Access granted or revoked automatically on payment events.
Send Emails
Resend integration with React Email and TailwindCSS templates. Pre-built templates for auth and access management included.
Deploy Globally
Cloudflare deploys to 300+ cities with zero cold starts. Global CDN, generous free tier, and pay-as-you-scale pricing.
Store & Query Data
Drizzle ORM with Cloudflare D1. Type-safe queries, automatic migrations, and separate databases for production and preview.
Test & Deploy
Vitest, Playwright, and Storybook pre-configured. Push to deploy with automatic testing via GitHub Actions CI/CD.
Use pre-built UI components
27 components built with Radix UI and TailwindCSS. Accessible, customizable, Storybook-documented, dark mode included.
PageZERO marketing landing page in the browserAuthentication login screenStorybook component documentation

A modern stack, deliberately chosen

A production-ready stack wired together so you don't have to - every dependency is chosen for performance, DX, and long-term stability.

Cloudflare-native

Run your app for pennies

PageZERO runs on Cloudflare, so your infrastructure starts free, scales from $5/month at a fraction of the cost, with no egress fees.

🟠 Cloudflare▲ Vercel☁️ AWS
Requests3M/mo1M/moLambda: 1M/mo
DatabaseD1: 5 GB, 5M reads/dayNeon: 0.5 GBRDS: 20 GB (12-mo trial)
KV Storage1 GB, 100K reads/dayUpstash: 256 MB, 16K cmd/dayDynamoDB: 25 GB
Object StorageR2: 10 GBBlob: 1 GBS3: 5 GB
Egress$0$0 (up to 100 GB)$0 (up to 100 GB)

Hey, I'm Paweł 👋

Paweł's profile

I've been a software engineer for 18+ years, currently working as a Senior Software Engineer at Canva. Every time I started a side project, I'd burn weeks wiring up auth, payments, emails, permissions, and deployment before I could write a single line of actual product code. So I built PageZERO, a foundation I'm proud of, engineered to last so I can get to testing ideas fast without cutting corners.

I chose to make PageZERO fully open source because I believe transparency is the strongest foundation you can build on. When every layer of your stack is open and community-driven, you get stability, security, and longevity that no proprietary shortcut can match.

That foundation matters even more in the age of AI. AI has made coding faster than ever, but it still struggles with architectural decisions and can quietly introduce security vulnerabilities. A well-structured, open codebase gives you the confidence to move fast with AI without sacrificing code quality or security.

Coming soon

From zero to a profitable web product

The video course that takes you from first commit to paying customers - using AI agents, Cloudflare, and PageZERO.

Code with AI agents
Scaffold features in minutes with Cursor and AI agents, using the prompts, guardrails, and review habits that keep quality high.
Master Cloudflare
See how to build full-stack apps on the Cloudflare platform, then use the tooling and dashboard to deploy and scale without guessing.
Build on PageZERO
Learn to take full advantage of PageZERO, then build features on a foundation that's already tested, typed, and wired together.
Get to paying customers
Finish the course with a working app, a payments flow, and a path to your first paying customer. No toy demos.

Join the newsletter and get 20% off at launch

Be the first to know when the course drops.

Join the newsletter

Frequently asked questions

  • Is PageZERO free?
    Yes. PageZERO is fully open source under the MIT license. You can use it for personal projects, client work, or commercial products without any restrictions or fees.
  • Is PageZERO a framework or a boilerplate?
    Neither - it's a full starter codebase you own outright, going well beyond a boilerplate. Run the init command, get a full project, modify or remove anything. There's no runtime dependency on PageZERO, no contract to break, no upgrade treadmill. You own every line.
  • What do I need to get started?
    Bun (package manager) and a free Cloudflare account. Run 'bunx pagezero@latest init', follow the setup prompts, and you'll have a fully working app on localhost in seconds.
  • What does 'for the AI era' mean?
    The codebase has predictable module structure, consistent patterns, and strict TypeScript. AI agents read the AGENTS.md file and immediately understand the architecture, conventions, and how to add features correctly. Included agent skills let you scaffold components, run checks, create PRs, and perform other tasks with a single prompt.
  • Do I need to use all the included features?
    No. Each feature (auth, payments, email, permissions) lives in its own module under the apps/ directory. You can remove any module you don't need or add new ones following the same pattern. The codebase is designed to be a starting point, not a rigid framework.
  • How does authentication work?
    Built-in passwordless OTP (One-Time Password) authentication via email. No passwords to store, no third-party auth services. Users enter their email, receive a 6-digit code, and are authenticated. Sessions use httpOnly secure cookies. Bot protection via Cloudflare Turnstile is included and optional to enable.
  • How do payments work with Polar.sh?
    Polar.sh handles one-time payments and subscriptions, including checkout flows, webhook handling, invoicing, and global tax compliance. When a customer completes payment, their role is automatically granted via the permissions system. On refund or subscription cancellation, the role is automatically revoked.
  • Can I customize the UI components?
    Absolutely. All 27 components live in your project and are built with Radix UI and TailwindCSS. You can edit styles, swap variants, or replace them entirely. Each component comes with Storybook stories for isolated development and visual testing. Dark mode is included out of the box.
  • Can I use a different database?
    While optimized for Cloudflare D1 (which gives you separate databases for production and preview environments, plus visual browsing with Drizzle Studio), Drizzle ORM supports PostgreSQL, MySQL, and SQLite. You can swap adapters by updating the Drizzle configuration.
  • How much does it cost to host?
    Cloudflare Workers has a generous free tier that covers most side projects. When you outgrow it, the paid plan starts at $5/month with unlimited bandwidth and zero egress fees - a fraction of what traditional hosting costs at scale.

Stay in the loop

Practical tips on building with AI agents, Cloudflare, and PageZERO. Updates on new PageZERO features. Plus 20% off the course at launch.