Ship a paid AI product with
Diaomao
Pricing that upgrades itself. Credits that never leak. Docs that stay in sync. Stripe flows that just work. Diaomao is the full-stack chassis trusted by makers who refuse to waste another weekend on billing infrastructure.

Gallery of Diaomao Creations
Swipe through the built-in UI language: gradient CTAs, pill billing toggles, credit buckets, and docs hero visuals.






From zero to paid users in 3 stupidly simple steps
Everything is pre-wired. You just turn the knobs.
1. Connect your stack
Drop in Stripe, PostgreSQL, and Clerk keys. Your pricing page and credit system instantly become user-aware on day one.
2. Tune your config
Switch between monthly, yearly, and one-time credit packs with a single config flag. Upgrade paths, discounts, and CTAs auto-adapt to each user.
3. Launch your story
Beautiful docs, mega-menu navigation, and gradient-rich marketing pages — all driven by the same MDX files. Ship updates without touching CSS.
Everything you keep rebuilding Diaomao already solved
Stop gluing together half-baked solutions. This is the template that ends the weekend billing nightmares.
Money Price 2.0
Monthly / Yearly / One-time toggle that instantly reflects the user’s current plan. Discount badges, upgrade guards, and SSR defaults — all automatic.
Credit System
Buckets, expiration tags, and smart CTAs. Desktop = modals. Mobile = redirects. Zero confusion, maximum upsells.
Auth and Anonymous
Fingerprint on first visit → starter credits → seamless merge on sign-in. No flicker, no balance loss, no support tickets.
Docs & Navigation
Fumadocs + mega-menu header. One source of truth for marketing and documentation. Mobile pinning, dark mode, and accessibility included.
Tips for Getting the Best Results with Diaomao
Configure before coding
Pricing, credits, navigation, and CTAs are config-driven—tune parameters before touching code.
Keep billing options
Even if you default to onetime, leave monthly/yearly available to avoid dead ends.
Honor device behaviors
Mobile uses redirects/auth then closes; desktop can modal—follow the design guide.
Prefer SSR context
Use InitUserContext to prehydrate user state—no first-screen jitter, billing defaults match reality.
Follow the schema
Stick to Users/Subscriptions/Transactions/Credits; order_id + event.id keep webhooks idempotent.
Tell the story in docs
Use Fumadocs cards and banners to ship product narrative and releases without extra styling.
Got questions?
We’ve got answers.
The AI-era product chassis with Diaomao
Pricing, credits, docs, navigation, and Stripe orchestrated as one.
Diaomao compresses the slowest parts of shipping AI products into one template: Money Price runs subscription/onetime in parallel, Credit Overview governs buckets and CTA matrix, fingerprint-to-Clerk prevents funnel gaps, Stripe lifecycle and schema are pre-aligned, and Fumadocs + Header keep story and navigation consistent.
Pricing that adapts to user state
Billing pills switch monthly|yearly|onetime; SSR defaults to the user’s plan, and upgrade buttons honor enableSubscriptionUpgrade with Portal fallback.
Credits with clear buckets and CTA matrix
Buckets, expiry hints, and device-aware actions: desktop modals or auth-to-Portal, mobile redirects or custom handlers.
Anonymous-first onboarding
Fingerprint issues `fp_xxx`, grants starter credits, and writes records; after login the same context continues with balances and audit intact.
Stripe lifecycle baked in
Checkout|Portal, async confirmation, renewal, past-due, refund, end-of-period cancel, upgrade|downgrade—all guarded by order_id metadata and webhook idempotency.
Navigation and docs that scale
Header mega menu, pinned behaviors, and actionOrders keep Docs|pricing|auth buttons in place; Fumadocs cards and banners ship with no extra styling.
Schema-first reliability
Users, Subscriptions, Credits, Transactions, CreditAuditLog indexed for fingerprint lookup, order routing, and audit stability.
Plug in keys, tune config, fill copy—launch an AI-ready, revenue-ready, story-ready site in a week.
Start shipping your AI idea with Diaomao?
One template. Every hard part solved.
Stripe, credits, auth— all production-ready out of the box.