Code at commit 3f9c2ab (12 October 2026) and the live app
Report date
13 October 2026
Prodworthy: not yet → here's what it takes.
2 critical · 3 high14 days$3,510 after audit credit
01 Summary
It works and people pay for it. A few protections need to go in before it grows.
Two critical issues come first: right now anyone can read every coach's client list, and anyone can issue refunds from your Stripe account. There are no backups in an account you control, and no one is alerted when something breaks.
Everything else is the usual production layer for an app at this stage: staging, monitoring, a few code fixes.
Cleanup, not a rebuild. The code is a solid base: every fix is contained, and the structure stays. Everything below fits in a 14-day Launch Package.
Already in good shape
✓
Supabase Auth with email verification
✓
TypeScript strict, build passes
✓
Clean schema, sensible foreign keys
✓
Code already in GitHub
Findings
2 critical · 3 high
10 in total
Checklist
5 of 15
in place or partly done
Load test
40 req/s
local copy
AWS tier
Standard
about $91–117/mo
02 Severity
10 findings, ranked
Severity
Count
Findings
When
Effort
CRITICAL
2
F-01, F-02
Before anything else
7h
HIGH
3
F-03 – F-05
Before you market the app
9h
MEDIUM
4
F-06 – F-09
During the deployment
9h
LOW
1
F-10
When convenient
2h
Fix effort, included in the fixed quote
27h
The Launch Package also covers the AWS setup, automated deploys, the move to production and the handoff, including the findings marked Included. That work is not in these hours.
03 Findings
What we found, why it matters, how we fix it
F-01 CRITICAL Security Effort · 4h
Row Level Security is off on bookings, clients and payments
Supabase · public schema
Impact
The anon key ships in your frontend, as designed. With Row Level Security off, that key can read and change every row in these tables. Anyone can download every coach's client list.
Fix
Day 1: turn on Row Level Security with owner-scoped policies (coach_id = auth.uid()), tested with two accounts in CI. After the move to RDS, the API enforces the same rule.
F-02 CRITICAL Security Effort · 3h
The Stripe secret key is in the client bundle
src/lib/stripe.ts · VITE_STRIPE_SECRET_KEY
Impact
Anyone can read it in the browser's developer tools, then issue refunds, list your customers or create charges on your account.
Fix
Roll the key in Stripe today, before anything else. Move payment calls to the API. Keep the new key in AWS Secrets Manager.
F-03 HIGH Security Effort · 1h
The Stripe webhook doesn't verify signatures
supabase/functions/stripe-webhook
Impact
Anyone can send a fake checkout.session.completed event and unlock a paid plan for free.
Fix
Verify the Stripe-Signature header with the endpoint secret, and reject events older than five minutes.
F-04 HIGH Reliability Effort · 6h
No backups you control
Supabase Free plan
Impact
There's no point-in-time recovery and no backup in an account you control. One faulty migration would be permanent, with 41 paying customers on it.
Fix
Move app data to RDS Postgres with automated backups and 7-day point-in-time recovery. Supabase Auth stays, so users keep their logins. We run a restore drill before handoff.
A coach can save a script in their bio that runs in the browser of every client who opens it. Supabase keeps sessions in the browser's storage, so the script can act as that client.
Fix
Render bios as text, or sanitize them with DOMPurify, and validate input on save.
F-06 MEDIUM Security Effort · 3h
No rate limiting on the booking function
supabase/functions/create-booking
Impact
Supabase Auth already limits sign-ups and sign-ins, and booking needs a signed-in account. Nothing limits how often one account books, so a script on one account could fill a coach's calendar until it's blocked.
Fix
Per-account limits in the booking function, and the per-address rate limit in AWS WAF in front of production.
F-07 MEDIUM Reliability Effort · 4h
No error tracking or alerting
Whole app
Impact
Outages reach you through customers first. Failed payments and bookings leave no trace.
Fix
Sentry on the frontend and the API. CloudWatch alarms on server errors, downtime and database load, sent to your email.
F-08 MEDIUM Security Effort · 2h
14 dependencies with known vulnerabilities
package-lock.json · 2 high, 12 moderate
Impact
Public exploits exist for the two high-severity packages.
Fix
Upgrade, remove three unused packages, and turn on Dependabot with weekly pull requests.
F-09 MEDIUM Deployment Effort · Included
No staging: every change goes straight to production
Lovable → production
Impact
Every edit in the builder reaches paying customers untested.
Fix
Separate staging and production environments. CI deploys main to staging and the production branch to production.
F-10 LOW Performance Effort · 2h
N+1 queries on the coach dashboard
src/pages/Dashboard.tsx
Impact
The dashboard sends one query per booking. For a coach with 200 bookings it takes 2.8 s to load.
Fix
One joined query plus an index on (coach_id, starts_at).
04 Production readiness
5 of 15 already in place or partly done
The production layer we check on every app. Anything not in place yet links to its finding.
2 in place · 3 partly · 9 not yet · 1 not applicable
Security & correctness
Not yet Supabase Row Level Security, on and tested F-01
Not yet Secrets out of the repo, into AWS Secrets Manager F-02
✓ In place Auth checked: sessions, resets, roles Supabase Auth with email verification and working resets.
Partly Input validation on every endpoint Edge Functions validate most input; coach bios don't. F-05
✓ In place Your domain, SSL, redirects HTTPS with a valid certificate; www redirects to the main domain.
Partly Scaling sized to your real traffic Fine at today's traffic; the dashboard slows down as coaches grow. F-10
N/A AWS cost budgets and alerts Not on AWS yet: budgets and alerts come with the deployment.
05 Architecture & scaling
How it runs today, and how it grows
A React single-page app on Lovable's hosting talks straight to Supabase: Postgres through the public anon key, Supabase Auth, and four Edge Functions for bookings and Stripe. It's a common, workable setup for an app at this stage.
✓ The static frontend: a CDN serves it at any traffic.
✓ Supabase Auth: it handles far more users than you have.
✓ Stripe Checkout: payments scale on Stripe's side.
Limits to know
What
Limit
Source
Database on the Supabase Free plan
500 MB, and the project pauses after a week without activity
Supabase pricing page, checked 13 Oct 2026
Built-in email sender
Meant for testing: a few emails an hour
Supabase Auth docs, checked 13 Oct 2026
Path to 10× traffic
01 Move app data to RDS Postgres with backups you control.
02 Run the API on Fargate behind a load balancer, so it adds tasks under load.
03 Fix the dashboard query and add the (coach_id, starts_at) index.
04 Send email through Amazon SES instead of the built-in sender.
06 Load test
About 40 requests a second, measured locally
We never put load on your live app. We ran a copy of it on our own machine, cut off from the internet, with synthetic data.
Held 40 requests a second with p95 420 ms and no errors for 40 seconds on a local copy sized like the Standard tier (API with 0.5 vCPU and 1 GB, Postgres like db.t4g.micro).
That is roughly 400 people using the app at the same time, if each sends about 6 requests a minute (a coach on the dashboard or a client booking sends about 6 API requests a minute).
At 80 requests a second, p95 rose to 1.9 s with 1.2% errors.
Tested
12 October 2026
Copy sized like
the Standard tier (API with 0.5 vCPU and 1 GB, Postgres like db.t4g.micro)
Data
3,400 users, 410 coaches and 41,000 bookings: 10× today
Target
p95 under 800 ms
Routes
coach dashboard: bookings list (read); booking page: availability (read); create a booking (write)
p95 response time per step
Rate
Requests
p50
p95
p99
Errors
Result
5/s
200
48 ms
96 ms
140 ms
0%
✓ Held
10/s
400
52 ms
120 ms
190 ms
0%
✓ Held
20/s
800
61 ms
180 ms
310 ms
0%
✓ Held
40/s
1,600
95 ms
420 ms
690 ms
0%
✓ Held
80/s
3,180
380 ms
1.9 s
2.7 s
1.2%
Over target
160/s
2,950
1.5 s
3.4 s
4.8 s
7.1%
Stopped
What limits it
The dashboard's one-query-per-booking pattern: database CPU runs out first, a little above 40 requests a second.
Not covered by this test
— Supabase's hosted plan limits and network
— Lovable's hosting and the CDN
— Stripe and email (stubbed in the copy)
— Traffic from many locations at once
After the move
With the dashboard query fixed and the API on Fargate, we expect the same test to hold well above today's peak.
07 SEO & discoverability
Search matters for your public pages
Need
Medium. Coaches find Coachbook through search and shared links; booking and dashboard pages are private.
How users find you
Google search and links shared on Instagram
How pages render
In the browser (single-page app)
Current state
Check
Status
Note
Page content is in the HTML without JavaScript
Missing
The body is an empty root element until JavaScript runs.
Unique title and description on each page
Missing
Every route serves the same title: Coachbook.
Canonical URLs
Missing
robots.txt
✓ OK
sitemap.xml
Missing
Link previews (Open Graph) in the HTML
Partly
One generic image, no per-coach previews.
Structured data
Missing
Coach profiles could carry LocalBusiness data.
Missing pages return 404
Missing
Unknown URLs return 200 with the app shell.
Builder subdomain kept out of search
Partly
The builder's preview subdomain is still indexable.
Real URLs, not # routes
✓ OK
Language attribute
✓ OK
Readable by AI assistants and link-preview bots
Missing
They see the empty shell: most don't run JavaScript.
Core Web Vitals (Lighthouse, mobile)
Partly
LCP 3.1 s; the target is under 2.5 s.
Google Lighthouse, mobile
Performance
71
Accessibility
89
Best practices
92
SEO
83
LCP
3.1 s
CLS
0.02
TBT
240 ms
https://coachbook.example/
Our recommendation
Pre-render the public pages
Pre-render the public pages and keep the app as it is
The home page, pricing and each coach's public profile can be rendered to plain HTML at build time. Search engines and link previews then see real content, and the booking app stays a single-page app.
Your current editing workflow stays as it is.
What we would do
—
Pre-render public pages. Home, pricing and coach profiles as static HTML at build time. about 8h
—
Titles and previews per page. A unique title, description and preview image for each public page. about 3h
—
Sitemap and canonical URLs. List the public pages in sitemap.xml and point the builder subdomain at your domain. about 2h
These are recommendations. They aren't part of the quote.
08 Rebuild or cleanup
A cleanup, not a rebuild
Why
— The data model is clean, with sensible foreign keys, and moves to RDS Postgres as it is.
— Every finding is a contained fix: none needs a new architecture.
— TypeScript strict and a passing build make the changes safe to make.
What we keep, adapt and replace
Part
Plan
Note
Database schema and data
✓ Keep
Moves to RDS Postgres as it is.
UI and design
✓ Keep
Stays in Lovable; you keep editing it there.
User accounts
✓ Keep
Supabase Auth stays, so nobody resets a password.
Edge Functions
Adapt
Ported to an API on Fargate with the same behavior.
Table access from the browser
Replace
Goes through the API, which decides who can see what.
09 Recommended AWS tier
Standard, about $91–117 a month
Paying users and payments mean you need backups you control and a staging environment. Serverless would mean reshaping the API, which isn't worth it at this size. Costs are on-demand prices in us-east-1, billed to you by AWS.
Component
Per month
CloudFront + S3 · frontend
$1–3
ECS Fargate · 1 task, 0.5 vCPU / 1 GB, ARM
$14–18
Application Load Balancer · shared by production and staging
$18–22
Public IPv4 · tasks (2); the load balancer is internal
$7–8
RDS Postgres · db.t4g.micro, 20 GB, 7-day PITR
$14–17
Staging · 0.25 vCPU task + db.t4g.micro
$21–24
AWS WAF · production, 1 web ACL, 4 rules
$9–10
CloudWatch · logs, metrics, alarms
$3–8
Secrets Manager · 4 secrets
$2
Route 53 · hosted zone + a health check on production
Monthly costs at today's traffic, with room for about 10× growth.
→
New AWS accounts get $100–200 in credits, so your first months can be close to free. Startups may qualify for more through AWS Activate.
→
Moving between tiers later is a fixed-price service.
Supabase: move to RDS Postgres
App data moves to RDS Postgres for backups you control and one bill. Supabase Auth stays, so users keep their logins.
Keep editing in your builder
Keep editing the UI in Lovable. It syncs to GitHub, and your pipeline deploys from there. Data goes through the API, and a CI check stops new direct table calls from coming back.
10 Quote
Launch Package · 14 days · fixed
Launch Package
$3,900
Audit credit
−$390
You pay
$3,510
$1,755 to start · $1,755 at handoff AWS hosting is billed to you by AWS, separately. Quote and audit credit valid until 12 November 2026
Days 1–2Critical and security fixes live in production.
Days 3–7Edge Functions ported to an API on Fargate, data moved to RDS, staging environment, rate limits.
Days 8–11Remaining fixes, tests, monitoring, restore drill.
Day 12Staging demo. You test it.
Days 13–14Production cutover, video walkthrough, deploy guide. Our AWS access removed, unless you choose Ongoing.
After launch, Ongoing from $690/mo covers monitoring and alerts, same-business-day response to urgent issues, updates and security patches, up to 4 hours of changes a month and AWS cost review.
11 Verdict
Prodworthy: not yet → here's what it takes.
2 critical · 3 high14 days$3,510 after audit credit
Next step
Reply to the email this report came with to approve the scope in writing. We send the payment link for the first half, $1,755, and start when it's paid. Questions go by email and get a written answer.
A Appendix
How we audited
Automated checks and manual review. We reviewed the code at commit 3f9c2ab (12 October 2026) and the live app at coachbook.example, the way a regular visitor sees it: no logins, no keys, no load on your servers.