All Work
[ Case Study · Healthtech ]

Refactoring Hera Fertility for scale

How an AI-assisted rebuild took a vibe-coded MVP into production infrastructure a founder could build on.

10x
faster deploys after the infra refactor
0
production incidents in the first month post-launch
[ The Challenge ]

An MVP that worked — but couldn't scale

Hera Fertility had shipped an ambitious vibe-coded prototype that resonated with patients immediately. Growth outpaced the architecture: authentication was stitched across three providers, the database layer was copy-pasted from tutorials, and every deploy was a manual SSH session.

The founder was spending more time firefighting than building features. The tool that started as a weekend project needed to become real software — without tearing up the product that users already loved.

[ Our Approach ]

Refactor in place, not rebuild from scratch

We mapped the existing flows, identified the three systems under the most load, and replaced them one at a time behind feature flags. The product stayed up the entire time — no big-bang migration, no customer-visible downtime.

Every change came with tests, a CI pipeline, and runbooks so the founder could keep shipping once we handed it back.

[ What We Built ]

The four things that moved the needle

Hardened auth

Consolidated three auth providers into one provider with a thin adapter. Sessions now survive deploys.

Typed database layer

Introduced a typed ORM with migrations in version control. Schema changes are now reviewable and reversible.

CI + one-click deploys

GitHub Actions runs tests on every PR and auto-deploys to staging on merge. Production deploys are a single click.

Observability

Error tracking + performance monitoring + uptime alerts wired into a shared channel. The founder sees issues before users do.

[ The signature outcome ]
3.2x
product velocity after handoff

Measured as the founder's weekly shipped-feature count compared to the three months before the engagement.

Talk about your project
[ What the founder said ]
Courtney at Opichi was awesome. He helped me refactor our app after we grew super fast and needed to level up our infrastructure. It was honestly a tough project, but he was super patient and made sure everything was done right — from building to deployment. He set things up so I could keep building confidently on my own.
Thiv P. avatar
Thiv P.
Owner, Hera Fertility
[ By the numbers ]

Six months in

120k+
Requests / day

Scaling headroom validated in load tests at 5× steady state.

4
Engineers onboarded

Docs and typed codebase let new contributors ship in week one.

98%
Test coverage

On the core auth + payment paths that had zero coverage at the start.

[ Ready to Scale? ]

Let's make your AI-built app production-ready

Whether you're 80% of the way there or back at the drawing board, Opichi takes vibe-coded prototypes into real software.

Start Your Project