Engineering Case Study · 10-Year Build Log

Engineering case study: turning Blogspot into a SaaS-style app with client-side Firebase, PayPal SDK, JAMstack patterns, and Core Web Vitals discipline.

K

By Keliot Group

Architecture & Front-End Engineering
Blogger XML Firebase PayPal SDK JAMstack
// Origin Premise

The idea nobody took seriously: Someone on the team once said we should make Blogspot feel like a paid product. I remember laughing—not because it was funny, but because it sounded like a joke I was supposed to wait out. Blogspot was where people parked their travel photos and forgot the password. It was rigid, slow, and had no concept of user accounts. But the thought wouldn't leave. Over the next ten years, that thought turned into late nights, broken templates, rollbacks at 2 a.m., and a few arguments that I'm still not sure we settled. One thing we never claimed: that Blogspot became a SaaS. It didn't. It stayed a static front-end host. Everything that looks like a product—login, saved data, payments—lives in JavaScript on top of it. This is the honest version of how that happened.

This isn't a victory lap. It's a reconstruction from old commit logs, screenshots we kept out of spite, and memory. Some of it is embarrassing. Some of it we still disagree about. But it's what actually happened, not the polished version.

PHASE 01

The First Year Was Mostly XML and Defeat

I don't think any of us understood what we were walking into. Blogspot's template system has its own rules, its own undocumented behavior, and it does not negotiate. Every time we tried to push past a limit, the platform pushed back harder. There was no scalability switch to flip. It was a wall, and we kept running into it.

Blogspot XML template structure — the raw code that defined the first year of the build
The Blogspot XML template layer — rigid, undocumented, and the source of most of our early defeats.

So we started tearing things apart. Rendering rules got rewritten. Custom logic got injected into places it was never meant to go. Every change carried the same risk: one wrong line, one unoptimized script, and the entire layout could collapse across every screen size. There were weeks where the site looked worse than when we started. Weeks where we rolled everything back at 2 a.m., stared at a screen full of red errors, and wondered if we were out of our minds.

But the idea kept us there. Slowly—and I mean slowly—the old engine started to bend, laying the groundwork for Keliot Group's wider digital architecture. What was once a rigid blogging tool began to show signs of something we could actually build on. We didn't know it yet, but that was the first real turning point.

PHASE 02

Hand-Rolled Front-End, Months of Chaos

Once the basic blog logic was under control, the real work began. We layered custom front-end functionality directly on top of the static host—hand-rolled scripts, modified template hooks, and a lot of trial and error. On paper, it sounded clean. In practice, it turned into months of chaos. Data calls had to be reworked. Dynamic loading patterns that looked elegant in documentation felt heavy and clumsy in real life. There were failed attempts. There were abandoned branches. There was at least one rewrite we still don't talk about.

But gradually, something shifted. Page transitions stopped feeling like a blog and started feeling like an app. Asynchronous requests kept data flowing without interruption, even when the network was having a bad day. A component-driven layout kept interactions tidy, no matter how much was happening under the hood. Every micro-interaction was built around one question: would someone pay for this?

That question became the standard. If a button didn't feel right, we rebuilt it. If a transition felt cheap, we threw it out. We weren't just building a website anymore—we were building an interface that had to earn the word "premium" on every single screen. Some days we hated that standard. But it was the only one worth keeping.

PHASE 03

Firebase and PayPal: Adding a Brain and a Wallet to a Static Host

For a long time, the site was functional but hollow. It looked like a SaaS product from the outside, but underneath, it was still just a very polished static blog. There was no real user state, no persistent data layer, and no way to take money. We needed three things: authentication, a real-time database, and a payment flow that didn't feel like a scam. Firebase and PayPal were the obvious answers. Both are client-side integrations, and that's exactly why they fit: Blogger stays the front-end host, and the SaaS-like behavior lives in the browser through JavaScript.

Firebase came first. The plan was simple: Firebase Authentication for user sessions, Firebase Realtime Database to store what Blogspot couldn't—user profiles, saved preferences, activity logs, comment states. Like any client-side SDK, it had to be loaded through a script tag and initialized after the DOM was ready. We ran into the usual issues: conflicts with existing scripts, initialization timing that only broke on certain post pages, and a few layout shifts caused by the initialization block being placed inside Blogger's widget container. Moving it outside the widget container and attaching it directly to the body fixed most of it. This is standard script injection work in a JAMstack setup, not some impossible feat—but it still took us longer than we'd like to admit.

Once the SDK loaded properly, everything clicked. Authentication worked. Real-time listeners pushed updates without page reloads. The interface suddenly had a memory. It could remember who you were, what you did, and what state the system was in. That was the moment it stopped feeling like a blog and started feeling like a real product. I remember one of us saying, "Oh. It's alive." And then we went back to work.

PayPal was a different kind of headache. We went with the Smart Payment Buttons—client-side, dynamically rendered, capable of showing relevant payment methods based on the buyer's context. The script tag was straightforward: load the PayPal JS SDK with a client ID, then call paypal.Buttons().render() into a container div. But Blogspot's rendering pipeline kept interfering. Buttons would render, then disappear. The container would collapse on certain screen sizes. The SDK would occasionally fail to load without any obvious reason, and we'd spend hours chasing logs that told us nothing.

The fix came from stripping everything down. We isolated the PayPal button into its own dedicated section with minimal surrounding markup. We initialized it only after the SDK's onload callback fired. We added a fallback retry mechanism for when the script failed silently. The createOrder and onApprove handlers were kept deliberately simple—no server-side capture, no complex validation, just a clean client-side flow that worked within Blogspot's constraints. It wasn't the most sophisticated payment integration in the world, but it was the one that survived. And surviving was what mattered.

When the first real transaction went through, nobody celebrated. It was 3 a.m., and we were too tired. But someone quietly said, "It works," and that was enough. Firebase and PayPal had turned the site from a good-looking showcase into something that could actually handle users and payments—an approach we also extended into commerce experiments like ieBali. It could authenticate people. It could store their data. It could take their money. For the first time in years, Keliot.com wasn't just a technical experiment anymore. It was real. And we had no idea how much more work was still ahead.

PHASE 04 · CORE WEB VITALS & RUNTIME DISCIPLINE

The Optimization Sprint: Speed, Structure, and Asset Discipline

Then came the part that nearly broke us. Once the functional side started to stabilize, the real test began. To make the interface feel genuinely premium, the site had to pass Core Web Vitals with a clean score—even under heavy traffic. Meanwhile, the visual components still had to stay rich. The third-party relays still had to stay active. Nothing could be sacrificed, and yet everything was already too heavy.

Piling script weight kept threatening the performance budget. There were nights spent just shaving off a few kilobytes, then watching the score drop again after a single update. There were mornings where we opened the dashboard expecting progress and found regression instead. It was the kind of work that doesn't look impressive from the outside—nobody claps when a bundle gets 40KB smaller—but it was the difference between a site that felt fast and one that felt like a chore.

Asset Payload Control: Scripts and global styles were managed with almost paranoid care, so load times stayed safe even on unstable networks and older devices. We learned this the hard way, more than once.

State Management Logic: Client-side interactions were kept light, clean, and perfectly in sync with the third-party endpoints they depended on—no drifting, no silent failures, no "it works on my machine."

Third-Party API Boundaries: Features like payment and authentication are handled entirely by external services (PayPal, Firebase), governed by our Privacy Policy and Terms of Service. Blogger itself never processes them—it only renders the interface that talks to those APIs.

And then, finally, the score came through clean. Loading felt light. The pages moved the way they were supposed to. That moment became its own validation—quiet proof that the grind, the failed attempts, and the nights spent staring at numbers had actually meant something. We didn't throw a party. We just looked at each other, nodded, and moved on to the next thing.

PHASE 05

Staying Alive: What Nobody Tells You About Maintenance

Keeping a complex, app-like interface alive inside a static host is no small feat. Beyond the performance sprint, the real challenge was sustaining it—month after month, release after release. We had to master several disciplines at once, and it wasn't always comfortable. Some lessons came easy. Most came the hard way—through broken builds, regressions nobody saw coming, and features that had to be shelved because the platform simply wouldn't allow them:

  • ✔ Interface Longevity: The design had to stay premium and modern without losing consistency as the site kept growing—because a beautiful interface that breaks after six months isn't beautiful at all.
  • ✔ Documentation & Handover: Every custom hook, every injected script, every workaround had to be written down, alongside clear answers in our FAQ—because tribal knowledge doesn't survive team changes, and undocumented magic becomes tomorrow's outage.
  • ✔ Regression Discipline: Every optimization was treated as a potential regression. We built a lightweight checklist—Core Web Vitals, payment flow, auth state—and ran it before every push, no exceptions.
  • ✔ Respect for Platform Limits: We stopped fighting Blogger's constraints and started designing around them. The platform's rules became the spec, not the obstacle.
PHASE 06

What Actually Got Built

Looking at the live production build after a decade of continuous iteration, those early limitations now feel like ancient history. The site that once collapsed under its own weight now runs on a clean, highly optimized front-end architecture. The transitions are smooth. The pages load fast. The interface feels like something built by people who actually cared. Because it was.

But the real triumph isn't in the numbers or the scores. It's in the fact that it exists at all. A legacy blogging engine, written off by almost everyone as a dead end, was pushed far beyond what it was ever designed to do—not by pretending it could do server-side work, but by pairing it honestly with modern JAMstack tools. And it didn't just survive—it came out looking like a premium, SaaS-style web app that stands completely on its own. We still argue about which part was the hardest. We probably always will.

Takeaway

If You're Thinking About Doing This Too

If there's one thing ten years of this taught us, it's not really about Blogger or JAMstack. It's about how far you're willing to keep going when the platform keeps saying it can't be done. We never waited for permission—we just kept pushing until the edges moved. So if you're thinking about trying something similar, expect it to take more time and energy than you planned. The nights you want to quit will come. But as long as you're still curious whether it can actually work, that's usually reason enough to keep going.