Skip to content
Back to projects
CompareClash

CompareClash

A performance-optimized blog with Incremental Static Regeneration (ISR), built with Next.js 15.5, React 19, Contentful CMS, and enterprise-grade optimizations.

Next.jsReactTypeScriptTailwind CSSContentfulNetlifyISR
2025

The Problem

Static sites with traditional CMS workflows require a full rebuild for every content change. Publishing a single blog post means waiting through a complete build cycle, even if nothing else changed. Content teams need a way to push updates instantly without redeploying the entire site, while keeping the performance benefits of static generation.

What I Built

CompareClash is a Next.js 15.5 blog using the App Router with React 19, Tailwind CSS v4, Incremental Static Regeneration (ISR), Contentful as a headless CMS, and shadcn/ui for the component layer. Content updates flow through Contentful webhooks that trigger ISR revalidation — new posts go live in 2-3 minutes without a full rebuild. The search index is statically generated at build time and refreshed on each revalidation. The page uses a secondary ISR endpoint for preview mode, allowing draft content to be reviewed before publishing. The site features Google Analytics and Ahrefs integration for production analytics, a dynamic sitemap and robots.txt for search engine crawling, structured data (JSON-LD) for rich search results, and auto-generated OG/Twitter card images for social sharing. It scores 95+ Performance, 98+ Accessibility, and 100 SEO on Lighthouse with a 102KB shared JS bundle, deployed on Netlify with webhook-driven automatic rebuilds for content model changes.

What I Learned

ISR is a powerful middle ground between SSG and SSR — you get static performance with dynamic freshness. The webhook-to-revalidation pipeline requires careful secret management and error handling to prevent infinite revalidation loops. Contentful’s rich text renderer with custom component mappings is flexible but demands strict type contracts between the CMS content model and React components. I also learned that shadcn/ui’s Radix-based primitives compose well with a CMS-driven design system when the component variants are modeled upfront rather than ad-hoc.

Analytics and SEO infrastructure — Google Analytics, Ahrefs, dynamic sitemaps, structured data — is surprisingly straightforward when architected as middleware in the request pipeline rather than scattered across components. Handling them in layout-level wrappers and route handlers keeps the page components clean and the site easy to audit.

Other projects

AI Primitives UI
TypeScriptReactCanvas 2DNext.jsTailwind CSS

AI Primitives UI

A dependency-free library of monochrome UI primitives for AI-native interfaces — 18 Canvas 2D orbs, zero runtime deps, monochrome by design.

Preview on hover
RustCLIImage ProcessingParallel Processing

img2ascii

A Rust CLI tool that converts images into ASCII art in the terminal — with URL fetching, true-color output, Unicode Braille mode, and parallel processing.

Preview on hover
Agent SkillsTypeScriptLLM

Time Awareness

Agent skill for accurate time awareness — prevents temporal hallucination across LLM agents by grounding every time-dependent answer in real UTC math.