git clone to “a real human paid me $X” in about an hour, assuming
you have Stripe and Resend accounts ready.
Prerequisites
You’ve already done Installation —pnpm dev runs and you can
sign up at /register.
1. Set your brand
Opensrc/config/site.ts. Change:
2. Wire Stripe
src/config/site.ts set payment.provider = 'stripe' (it already is). The full
4-provider walkthrough is at Payments overview.
For local webhook testing, the Stripe CLI:
STRIPE_WEBHOOK_SECRET.
3. Wire Resend
src/mail/templates/. They’re React Email
components — preview them with pnpm dlx react-email dev if you want to tweak the design
visually.
4. Try the flow
- Sign up at
/register. The verification email lands in Resend’s logs. - Click the verify link.
- Visit
/pricing, hit “Get vibestrap for $49”, complete the Stripe Checkout. - Webhook fires → row inserted in
payment→ credits granted incredit_transaction→ license issued inlicense(visible at/settings/licenses).
[stripe], [mail], [license], etc.
5. Customize the product
- Hero copy →
messages/en.jsonandmessages/zh.json(Home.hero.*) - Pricing card →
siteConfig.product.* - Feature list →
messages/{en,zh}.json(Features.items.*) +src/components/features/items.ts - Theme colors →
src/app/globals.css(Tailwind v4@themedirective)
6. Deploy
When you’re ready to ship:7. Add the AI feature
If your product uses AI:- Pick a provider — set
AI_PROVIDER=openrouter(oropenai/anthropic) and the matching API key. - Use
useGeneration()in any client component for streaming chat, or callchat()from@/ai/managerin a server action for non-streaming. - The cost ledger and observability happen automatically — see AI overview.