Launch Audit

Sample report (excerpt)

A real, unedited Launch Audit of ClientNest, a sample invoicing SaaS I generated with Lovable in November 2026 (TanStack Start + Lovable Cloud/Supabase + Stripe). It is my own test app, not a client's: client reports stay confidential.

Download the full report (PDF, 10 findings)

1. Summary for the founder

Launch Readiness Score: 81/100

ClientNest is in good shape on the basics. Every database table has Row Level Security, users only see their own clients and invoices, admins can't be self-appointed, and the Stripe webhook checks that events really come from Stripe. Nobody can read or change another user's data today.

The risks are in the business logic around money. Any signed-up user can call the AI reminder feature as often as they like, and every call is paid from your AI budget. A customer whose card fails keeps the Pro plan, because the app only downgrades someone when Stripe deletes the subscription outright. Both take an afternoon to fix.

The automated scan first scored the app 0/100 because of six "critical" alerts. I read the code behind each one, and all six were false alarms.

SeverityCount
Critical0
High0
Medium3
Low7

[MEDIUM] D-1 · AI reminder has no per-user limit or spend cap

What: The draftReminder server function calls the AI model every time it is invoked. Any signed-in user can invoke it, with no rate limit or daily quota.

Why it matters: Every call is paid from your AI credits. One user, or a script running on a free account, can call it thousands of times and drain the budget for everyone.

Where: src/lib/app.functions.ts:63, src/lib/ai.server.ts:10

Fix:

  1. Add an ai_usage table (user_id, day, count).
  2. Refuse the call once the user is over the limit, for example 20 a day on Free and 200 on Pro.
  3. Set a monthly AI spend alert.

Effort: 2–3 h

[MEDIUM] D-2 · Failed payments don't downgrade the account

What: The webhook upgrades a user on checkout.session.completed and downgrades only on customer.subscription.deleted. It ignores customer.subscription.updated and invoice.payment_failed.

Why it matters: When a Pro customer's card fails, Stripe retries for days or weeks before deleting the subscription. During all that time the customer keeps unlimited clients without paying, and your database still says pro.

Where: src/routes/api/public/stripe-webhook.ts:24 and :38

Fix: Handle customer.subscription.updated. Keep plan = 'pro' only while the status is active or trialing, otherwise set free. Enable the two extra events in Stripe.

Effort: 1–2 h

4. What is fine

  • Row Level Security on every table, with a policy per operation tied to the logged-in user.
  • The paid plan lives in a table that only the server-side webhook can write, so it can't be faked from the browser.
  • Admin roles can't be self-assigned, and the admin list is checked on the server.
  • The webhook signature check is correct: HMAC over the raw body, constant-time compare, 5-minute window.
  • The service-role key, the Stripe secret key and all AI calls stay on the server.

Also checked and dismissed: six scanner alerts claiming the webhook is unverified, a dangerouslySetInnerHTML in a stock shadcn/ui chart component, and a committed .env that only holds public values (kept as a Low).

5. Recommended plan

Now: the AI quota and failed-payment handling (3–5 h). Before launch: block double checkouts, close the free-plan race, de-duplicate webhook events, add error tracking (3–4 h).

Fix Pack: $1,500 fixed, 3 working days, delivered as reviewed pull requests with tests and a re-scored report.

Get this for your app