Skip to main content
Kiran Brahma
All writing

O9X Build Log 18: The Accidental Experiment

Published Part 18 of O9X Build Logs Personal Essays

I rebuilt my entire O9X frontend during a two-day break. I had planned to step away from coding and planning, yet stopping gave me the clearest hosting decision I had made since starting the build. An accidental experiment on a low-stakes site gave me the evidence to walk away from two weeks of working code on a high-stakes one.

When I pushed the first working version of O9X to production, Cloudflare was my first choice. As I wrote in Log 10, Next.js and Cloudflare fight each other, so I deployed to Vercel instead. The interface loaded and data moved fine.

After a week, I checked my usage and saw 40 minutes of Fluid Compute burned by a prototype with three collections and a handful of users. At full production with over 1,000 associates, multiple client logins, and daily attendance runs, that math would break. Vercel has no hard cap: Fluid Compute includes four hours a month and then bills $0.128 per hour, Provisioned Memory includes 360 GB-hours and then bills $0.0106 per GB-hour, and invocations include one million a month before billing $0.60 per million.

Vercel Pro plus Supabase would run roughly $45 a month, slightly above my Rs 3,500 ceiling yet manageable on paper. What bothered me was the tail risk of one bad loop leaving the meter open overnight. In 2022, a developer woke up to a $17,000 Vercel bill from a single misconfigured function, and that story stayed with me.

On the free tier I use, Cloudflare cuts the CPU at the limit, throws an error, and lets me debug it without a runaway bill. Even though the odds of a huge bill were low, I wanted a hard cap on costs. Because I had documented every workflow and logic rule in my project brief, I knew I could rebuild from scratch without losing my real asset, so I paused instead of upgrading.

On the first day of my break, I used Andy Grove's question from Only the Paranoid Survive: what would a new CEO do if they walked in with zero attachment to past code? Looking only at my documentation, Next.js was no longer the right pick because the Cloudflare friction stayed unresolved. That question stripped away the sunk cost and let me act on what I already knew.

On the second day, I needed a distraction and decided to rebuild The Operator Stack website, which was running on Next.js. I picked up TanStack Start, a framework backed by Cloudflare that shares React foundations with Next.js. I rebuilt the entire site in one day, deployed it to Cloudflare without major issues, and verified the Supabase data flow.

A content site is much simpler than an ERP, yet the live test proved the deployment and database pipeline worked. As I noted in Log 14, AI handles new frameworks well when the underlying foundations are standard. With live evidence in hand, staying on Next.js no longer made sense.

Rebuilding the O9X frontend in TanStack Start took just one more day. That speed came directly from Log 6, where every function had comments and every workflow was written down. I handed the clean specification to the AI, named the framework, and let it build.

I deployed O9X to Cloudflare and asked my team to test it. They reported smoother transitions and faster data loads because TanStack Start prefetches data in the background as users move through the app. An expert could tune Next.js to match that speed, yet as a solo operator building with AI, I judge tools by what I can actually ship.

TanStack Start is still young, so AI training data on it is thin. I expect to hit rough spots as O9X takes on heavier compliance logic like state-by-state attendance rules, grace periods, and overtime exceptions. To bridge that gap, I use Context7 MCP before every coding session to feed current framework documentation directly into the AI. The migration worked and my team likes the result, though full production load will be the real test.