A stable engineering foundation
Requirements, context, constraints, feedback, testing, and deployment are made repeatable
OPCStack is a Cloudflare-native AI SaaS template for One Person Companies. It includes authentication, payments, credits, D1 sharding, R2, KV, Queues, Cron, AI tasks, deployment automation, and a test suite
Build Faster
Requirements, context, constraints, feedback, testing, and deployment are made repeatable
Stop rebuilding login, payments, storage, queues, and deployment for every project
Signup, beta codes, credits, referral rewards, payments, subscriptions, notifications, feedback, and Admin API are already wired
Production ready
Better Auth sessions, email login, Google, GitHub and LinuxDO OAuth, beta-code gating and protected admin access
Subscriptions, payment webhooks, integer credit units, ledgers, grants, deductions and affiliate referrals
A global META_DB resolves every user to regional D1 Shards with primary writes and read replicas
R2 paths separate public, private and temporary objects with explicit ownership and lifecycle rules
Queues, cron jobs and AI task state keep long-running work outside the request path
Typed API contracts, generated migrations, local resources, tests and Cloudflare deployment automation
Why Cloudflare
R2 egress is free, and KV, Queues, and D1 have no egress fees either
Quick Start
Give the Agent the Quick Start link and your app name
The Agent installs create-opcstack-app for its platform
The Skill clones, configures, and starts the project
Create an OPCStack app named <APP_NAME> by following:
https://raw.githubusercontent.com/glidea/opcstack/main/QUICK_START.md Quick start FAQ
It is a template, not a framework. After cloning you own the full source, modules collaborate through explicit interfaces, you can change or delete any part, no framework conventions to follow and no vendor lock-in
Yes. Modules collaborate through interfaces, removing payment or AI does not affect auth or storage, you just skip writing the base flow instead of redesigning sign-up, payment and storage from zero
Yes. AI is an optional module, remove it and auth, payment, credits, storage, queues and the deploy skeleton stay complete
The free tier is enough to run an MVP, Workers Paid Plan is pay-as-you-go from $5/mo. In a public case a Vercel bill of $800+/mo dropped to under $20 on Cloudflare at the same traffic, and R2 egress is free
The repo keeps an upstream remote, follow SYNC_TEMPLATE.md to selectively merge upstream updates, it is not a one-time copy that cuts you off from the template
No impact. A small project runs on a single active shard by default, add shards when you scale, new users auto-assigned and existing users never migrate, sharding is a fallback for later, not a burden
Just Node and pnpm. Give the Quick Start link to an Agent once to install create-opcstack-app, then use the Skill directly for future projects