Revenue stack
Checkout with five providers, subscriptions, one-time plans, refunds and a credit ledger. Orders are settled from a signed webhook, never from a return URL.


/admin/ordersA TanStack Start codebase with sign-in, payments, credits, AI and an admin console already connected. Pay once and clone the repository.
Users, orders and usage on one dashboard.


/adminThe repository tells an agent where code goes, which rules hold and how to prove a change is finished.
CLAUDE.mdProject rules for Claude CodeAGENTS.mdThe same rules for Codex, Cursor and other agentsskills/<name>/SKILL.mdOne playbook per recurring taskopenspec/changes/Proposal, design, spec and tasks for each changescripts/validate/*.tsOne executable check per capabilityEach skill states its inputs, invariants, workflow and verification, and names only commands, paths and routes that exist.
Every non-trivial change starts as an OpenSpec proposal with a design, testable requirements and a task list the agent ticks off.
Validators assert behaviour and wiring, not file existence. A change is finished when its own check and the full gate pass.
59validators behind one command
pnpm validate:allThe same code runs on Cloudflare Workers with D1, or as a Node server on Fly.io, Railway or any Docker host.
pnpm installpnpm installInstall the workspace dependencies.
SQLite, D1 and Postgres sit behind the same repository contracts, so business code never touches a SQL dialect.
Deployment overviewThe parts every SaaS needs and nobody wants to write twice, already connected to each other.
Email, Google and GitHub sign-in, with roles and permissions enforced on the server.
Stripe, Creem, PayPal, DodoPayments and WeChat Pay checkout, settled only from signed webhooks.
One-time and recurring plans, orders, refunds and a billing page for customers.
A ledger that reserves, settles and releases credits for usage-based pricing.
Users, orders, content and support, plus a settings page for every provider.
Providers, models and scenes for chat, image, audio and video, priced in credits.
Pages, posts and a changelog edited in the console and rendered on the public site.
Signup forms, waitlist invites and subscriber lists managed in the console.
Referral links, attributed orders and payout requests reviewed in the console.
Transactional templates in both languages and a delivery log.
Uploads to R2 or any S3-compatible bucket, with access checked on download.
English and Chinese routes, with every string in a typed dictionary.
Counted from the repository this site runs on
Four things that are usually four separate projects.
Checkout with five providers, subscriptions, one-time plans, refunds and a credit ledger. Orders are settled from a signed webhook, never from a return URL.


/admin/ordersCloudflare Workers with D1, or a Node server on Fly.io, Railway and Docker. Migrations are maintained for both SQL dialects.
Route each scene to a provider and model, set its price in credits and read the cost of every call. An optional agent workbench runs on top.


/admin/ai/providersRoles and permissions, audit log, rate limits, support tickets and a configuration page for each provider, so credentials stay out of the environment.


/admin/rolesPremium includes the base repository, Image Studio and Video Studio. Image Agent and Video Agent are sold separately with member pricing.

An AI image generation site: a prompt, a frame and a gallery, billed in credits.

An AI video generation site: a prompt, a frame, a length and a gallery of clips.

A chat-based image product: an agent plans the request, generates and publishes the pictures.

A chat-based video product: an agent turns a sentence into published clips.
Premium includes the base repository, Image Studio and Video Studio. Image Agent and Video Agent are sold separately with member pricing.
MIT-licensed SaaS starter you can run on your own infrastructure.
$0
Includes the Premium base, Image Studio and Video Studio repositories, plus member pricing on Agent templates.
$299one-time payment
Premium includes the base repository, Image Studio and Video Studio. Image Agent and Video Agent are sold separately with member pricing.
Hosting, payment processing, email and AI usage are billed by the providers you connect.
Pricing and delivery in fullPremium includes the base repository, Image Studio and Video Studio. Image Agent and Video Agent are sold separately with member pricing.
After paying, open Purchased templates in your account, enter your GitHub username and choose Activate. GitHub sends an invitation to the private repository. Accept it and clone. An invitation that expires can be sent again from the same page.
As many as you like. There is no fee per project, no seat count and no licence check at runtime.
Updates are commits in the repository you were invited to. Keep it as an upstream remote and merge when you want them.
Yes, until you activate. Activation gives you the full source code, so an order with an activated purchase cannot be refunded.
Premium includes the base repository, Image Studio and Video Studio. Image Agent and Video Agent are sold separately with member pricing.
Hosting, payment processing, email and AI usage are billed by the providers you connect. You enter their credentials in the admin console.
Send a message through the contact page. The documentation covers setup, each provider and every deploy target.
Current, typed and boring where it should be.
Captures from the admin console you receive.
Each API has its own request limit and window, changed in the console and enforced on the server. A default rule covers the rest.

/admin/rate-limits

/admin/cmsMarketing pages, blog posts and the changelog are edited in the console, in both languages, and rendered by the same app.
An affiliate programme and a waitlist are part of the base template, with their own admin pages.


/admin/affiliates

/admin/waitlistPremium includes the base repository, Image Studio and Video Studio. Image Agent and Video Agent are sold separately with member pricing.