A retrospective on the original architecture, with a current project log covering 350 tools, structured data, advertising, and privacy.
This article was originally published with 169 tools and 676 tool-level structured-data blocks. ToolHub now has 350 tools across 15 categories, three interface languages, and 1,400 tool-level JSON-LD blocks (350 × 4). The 169/676 figures below are preserved as the August 2026 historical snapshot, not presented as the current count.
The implementation has also evolved: result cards show final values without animation intermediates, synthetic ratings have been removed, ad units require real numeric IDs, and the privacy policy distinguishes local computation from values placed in shareable URLs. Reserving ad space reduces layout shift; it is not a guarantee of measured zero CLS in every scenario.
Open any random "free online tool" on the first page of Google. Here is the experience you almost always get:
None of this is necessary. A unit converter does not need a database. A JSON formatter does not need a backend. The honest version of these tools is: one HTML file, one small script, runs in your tab, forgets everything when you close it. ToolHub is my attempt to build the honest version, at scale, across 169 tools.
JSON FormatterBeautify and validate JSON with local browser processing and no backend calculation API.→Slug GeneratorClean, SEO-friendly URL slugs from any title — the honest version of "all to compute a slug".→The whole site is a Next.js static export:
// next.config.ts
const nextConfig = {
output: 'export', // every route → static HTML on a CDN
images: { unoptimized: true },
trailingSlash: true,
reactStrictMode: true,
}That one line does most of the work. There is no origin server, no SSR cold start, no database to scale. Every tool page is a pre-rendered HTML file sitting on the edge. TTFB is whatever your CDN's is — typically under 50 ms.
The catch with a pure static site is that a returning visitor still re-downloads everything on a hard reload, and there's no offline story. So I added a hand-written Service Worker (public/sw.js) that does two jobs:
_next/static/* files are content-hashed, this is safe to cache aggressively.The SWR handler is a dozen lines:
// public/sw.js — stale-while-revalidate for assets
async function staleWhileRevalidate(request) {
const cache = await caches.open(RUNTIME_CACHE)
const cached = await cache.match(request)
const networkPromise = fetch(request)
.then((fresh) => {
if (fresh && fresh.ok && fresh.type === 'basic') {
cache.put(request, fresh.clone()).catch(() => {})
}
return fresh
})
.catch(() => cached)
// serve cache instantly, refresh in the background
return cached || networkPromise
}Two details that matter: (a) the SW explicitly does not cache cross-origin requests — AdSense and analytics traffic is passed straight through, so I never accidentally cache ad creatives or break impression counting; (b) the SW bumps a VERSION constant on every deploy and pairs it with skipWaiting() + old-cache eviction on activate, which sidesteps the browser's 24-hour sw.js max-age and gets new code to users in minutes. The registration side also calls registration.update() on every page load.
The result is "lazy" caching by design: only pages a visitor actually opens get cached. Across 169 tool pages, I do not pre-cache the long tail — that would balloon install time. People get offline access to the tools they use, which is the only offline access that means anything.
Programmatic SEO (pSEO) gets a bad name because most of it is thin, templated junk. The version that actually works has two halves: real structured data per page, and a real internal-link graph so crawlers can find and trust all of it.
Every tool is described once in a single source of truth (lib/tools.ts) and then generates four JSON-LD blocks automatically:
WebApplication + SoftwareApplication — tells Google "this is a free, in-browser app" with an Offer at price 0 and the right applicationCategory (Finance / Developer / Health / …).BreadcrumbList — Home › Category › Tool, rendered both as a visible <nav> and as machine-readable schema.FAQPage — pulled from the same FAQ data file that renders the visible on-page FAQ, so the schema and the visible content can never drift apart (drift is what gets you a manual action).HowTo — the standard three steps (input → view → copy/export), with a totalTime estimate.That's 169 pages × 4 schemas = 676+ structured-data blocks, all generated from one config file. Adding a tool is literally three steps: drop a page.tsx, add one entry to tools.ts, mark published: true. Homepage, sitemap, breadcrumbs, related tools, and all four schemas update themselves.
The second half is the link mesh. Every tool page ends with a Related Tools grid computed by category (same category first, featured pinned, backfilled with site-wide populars to always fill the grid). The homepage groups all 169 tools by category, which builds clean topical silos. Net effect: crawlers reach every tool in ≤ 3 hops, and link equity flows from the high-traffic tools outward to the long tail. This is the boring 80% of pSEO — no AI content, just a real graph.
The single biggest performance killer on ad-supported utility sites is Cumulative Layout Shift from late-loading ads. The fix is dumb and absolute: reserve the space before the ad exists.
ToolHub renders an AdSlot component on every tool page that always occupies a fixed min-height: 250px box, whether or not AdSense has filled it yet:
// components/AdSlot.tsx (simplified)
<div
data-placement={placement}
data-ad-slot={adSlotId}
className="min-h-[250px] w-full rounded-xl
border border-dashed
bg-slate-100/50 dark:bg-slate-900/30"
>
<span>ADVERTISEMENT</span>
</div>When AdSense injects a creative, it renders inside the already-sized box. The page never moves. CLS from ads is effectively zero. This also happens to be what AdSense reviewers want to see, and it's a direct Core Web Vitals ranking signal — so a decision made for UX doubles as an SEO decision.
Combine that with the static-export + SWR story from section 2 and the load math gets boring in the best way:
The realistic outcome is a sub-second first contentful paint on a warm cache and a clean Lighthouse pass on a cold one. I am not chasing a 100; I am chasing "the page is obviously fast to a human," which is a much lower bar and the only one a user actually notices.
Supporting multiple languages on a static export is usually a nightmare: either you duplicate every route into /es/..., /de/... (which dilutes canonical SEO link equity and requires complex hreflang maps), or you rely on heavy SSR.
ToolHub takes a client-side dictionary approach:
lib/i18n/tools.{es,de}.ts), mapped by tool slug, with English as the base data in lib/tools.ts.navigator.language on first visit. If a specific translation key is missing in German or Spanish, it gracefully falls back to English without crashing or leaving blank text.This keeps bundle sizes minimal while offering a native-feeling experience for European and Asian traffic.
A fast tool doesn't have to look like a 1990s plain-text document. To make ToolHub feel "alive" without tanking Core Web Vitals, I built a lightweight animation layer using Framer Motion (spring physics) and CSS ambient glows:
blur-[100px] and 8-second keyframe loops, creating a subtle breathing background with zero main-thread JS cost.layoutId sliding indicators), and card hover effects run strictly on transform and opacity to avoid layout reflows (Reflow).@media (prefers-reduced-motion) compliance to disable heavy transforms for users who prefer static UI.If I had to compress the whole project into a few lines:
output: 'export' deletes an entire class of latency and ops problems.workbox, no abstraction.I believe in build-in-public with real numbers, so here is the honest current state instead of a victory lap:
If you want to poke at the toolbox, the featured tools below are a good starting point. If you build utility sites and want to compare notes — especially on pSEO at scale and keeping CWV clean with ads — that's the conversation I want to have.
Try the toolbox
No signup — every tool below runs entirely in your tab and processes your input locally. Exactly the architecture this post describes.
Format and validate JSON with proper indentation.
Convert titles into clean, SEO-friendly URL slugs instantly.
Paste Q&A pairs, get copy-ready FAQPage JSON-LD schema markup.
Build OG and Twitter Card meta tags with a live social share preview.
Build a correct robots.txt with presets and live preview.