Overview & Problem
Modern engineering portfolios and agency showcases frequently suffer from bloated client-side JavaScript bundles, slow First Contentful Paint (FCP), and brittle markdown-based content workflows. The objective was to engineer a zero-bloat personal portfolio and case-study publishing engine that maintains absolute editorial control through a headless CMS without compromising on sub-second load times or structural SEO.
Architecture & Implementation
The platform utilizes a decoupled architecture combining Astro's Islands Architecture with Sanity Studio for structured content governance and Tailwind CSS for atomic, zero-runtime styling.
- Frontend: Astro static-site generator compiling components to pure HTML/CSS by default, eliminating unnecessary client hydration.
- Content Management: Sanity CMS backend configured with strict Portable Text and custom schema definitions for complex case study blocks.
- Data Layer: Strictly-typed GROQ queries fetching normalized JSON payloads at build time and on-demand webhooks for incremental updates.
- Deployment: Edge-distributed global deployment running immutable asset caches with optimized asset compression.
Key Engineering Decisions
- Islands Architecture over SPA: Chose Astro instead of heavy client-side frameworks (Next.js/Remix) to enforce partial hydration, reducing initial JavaScript execution time to near zero.
- Strict Schema Normalization: Replaced loose Markdown with structured Sanity documents, ensuring case study metrics, schemas, and rich text parse without runtime rendering errors.
- Asset Pipeline Optimization: Enforced responsive image sets via Sanity asset pipeline with automated WebP/AVIF transcoding and explicit layout dimensions to eliminate Cumulative Layout Shift (CLS).
Outcome & Production Readiness
The platform delivers sustained 100/100 Core Web Vitals across both mobile and desktop views, sub-50ms edge response times, and an entirely decoupled publishing workflow. It serves as a dependable, production-grade foundation for technical case studies and editorial content.