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.



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.
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 | |
|---|---|---|---|
| Requests | 3M/mo | 1M/mo | Lambda: 1M/mo |
| Database | D1: 5 GB, 5M reads/day | Neon: 0.5 GB | RDS: 20 GB (12-mo trial) |
| KV Storage | 1 GB, 100K reads/day | Upstash: 256 MB, 16K cmd/day | DynamoDB: 25 GB |
| Object Storage | R2: 10 GB | Blob: 1 GB | S3: 5 GB |
| Egress | $0 | $0 (up to 100 GB) | $0 (up to 100 GB) |
Hey, I'm Paweł 👋

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.
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.
Join the newsletter and get 20% off at launch
Be the first to know when the course drops.
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.