Hi everyone! π I recently published a full architecture retrospective on building ToolHub β a clean, privacy-first, zero-bloat suite of 138+ in-browser web utilities.
Here is a summary of the key engineering tradeoffs and technical decisions that allowed us to keep the site sub-second fast and fully offline-capable.
π Key Architectural Highlights
β‘ 1. Next.js Static Export (output: ‘export’)
Instead of running a node server for SSR/ISR, we opted for a 100% static export model hosted on edge CDN.
π Why: Zero server maintenance, ultra-low TTFB, infinite scaling.
π Tradeoff: Everything dynamic executes strictly on the client side in browser memory.
π² 2. Custom Service Worker Caching Strategy
We built a custom SW strategy specifically for PWA caching:
stale-while-revalidate for static assets (_next/static/*).
network-first for HTML document navigations (ensures users always see the latest release when online).
Complete offline capability across all 138 tools once cached.
π 3. pSEO Engine (Programmatic SEO)
Generating 138+ static tool pages with full JSON-LD structured data and automated internal linking meshes, all baked into static HTML at build time without runtime database lookups.
π 4. Zero-CLS Ad Strategy
Preventing layout shifts (CLS) by reserving explicit fixed-height layout slots for ad units before they load.
π οΈ Try ToolHub Live:
π https://toolhub.axtrivc.com/
π Read the full engineering deep-dive on my blog:
π https://toolhub.axtrivc.com/blog/how-i-built-toolhub/
I’d love to hear your thoughts, feedback on the architecture, or suggestions for new tools! π¬
λ΅κΈ λ¨κΈ°κΈ°