Skip to main content
00 — UNDER THE HOOD / COLOPHON

How This Portfolio Is Architected

A technical specification sheet for kapilrc.github.io: static prerendering with async streaming, semantic Blueprint design tokens that meet WCAG AA in both themes, and live build-time bundle telemetry measured straight from the production output.

PLATE 01 — SITE ARCHITECTURE

Build, Split & Prerender Pipeline

Static delivery with full client interactivity: typed content feeds React 19 and Tailwind 4, Vite 8 separates heavy interactive surfaces into on-demand chunks, and an async SSR prerender emits complete HTML plus live build telemetry for GitHub Pages.

FIG. C1 — KAPILRC.GITHUB.IO DELIVERY SCHEMATICSTATIC HTML · HYDRATED SPA
  1. 01 · DATA LAYER
    Typed Content

    Strict TS Contracts · Single Source (v1 & v2)

  2. 02 · UI & TOKENS
    React 19 + TW4

    Blueprint CSS Vars · WCAG AA Dark & Light

  3. 03 · BUNDLER
    Vite 8 + SSR

    ESM Tree-Shaking · Async LazyMotion

  4. 04 · CODE SPLIT
    Lazy Chunks

    v1 · #systems · ⌘K · /colophon (0 kB entry)

  5. 05 · PRERENDER + STATS
    Async SSR & stats.json

    renderToPipeableStream · Font Preload · index.html · colophon · 404 · sitemap

  6. 06 · CI / CD GATE
    GitHub Actions

    Node 22 · typecheck · lint · build · upload-pages-artifact · deploy-pages

  7. 07 · STATIC EDGE
    GitHub Pages

    Prerendered HTML + Hydrated SPA · No-JS Readable · Zero Server Runtime

Architecture diagram showing how kapilrc.github.io builds and deploys: Typed Content Layer into React 19 and Tailwind 4 Blueprint Tokens, bundled via Vite 8 Client and SSR builds with Lazy Chunks for v1, systems Architecture Lab, Command Palette, and Colophon, followed by Async Prerender with stats.json telemetry, GitHub Actions CI gates, and static deployment on GitHub Pages.
PLATE 02 — BLUEPRINT DESIGN SYSTEM

Live Token & Typography Specimen

Every surface, stroke, and diagram node reads from semantic CSS variables defined in Tailwind 4's @theme layer — toggle Dark / Light in the header to watch every swatch update live.

MODE: LIVE

--background

Base surface

Background Canvas

Primary drawing sheet (ink navy in dark / drafting paper in light)

--card

Elevated surface

Elevated Plate

Card containers, inspectors, and specification panels

--line

Structural stroke

Blueprint Rule

1px hairlines, section dividers, and structural borders

--foreground

AAA (> 15:1 on bg)

Primary Ink

Headings, high-contrast prose, and active UI labels

--muted-foreground

AA (> 6.5:1 on bg)

Secondary Ink

Annotations, captions, metadata, and supporting prose

--signal

AA (> 5.0:1 on bg)

Signal Amber

Primary CTAs, active topology node, eyebrows, focus rings

--trace

AA (> 6.2:1 on bg)

Trace Cyan

Diagram connectors, contract edges, interactive links

--ok

AA (> 5.6:1 on bg)

Nominal OK

Healthy nodes, passing budget checks, verified badges

--warn

AA (> 5.7:1 on bg)

Fault / Alert

Simulated failure states, blocked gates, over-budget alerts

TYPOGRAPHY RAMPSELF-HOSTED WOFF2

DISPLAY · SPACE GROTESK VARIABLE (--font-display)

Architecting Resilient Frontend Systems

BODY · INTER VARIABLE (--font-sans)

Clear hierarchy and calm density designed for technical review in under thirty seconds, meeting WCAG AA contrast ratios across both dark ink and drafting paper palettes.

TECHNICAL · JETBRAINS MONO VARIABLE (--font-mono)

FIG. 04 · HOST_SHELL → REMOTE_BDR [MSAL · RBAC · OK]

BLUEPRINT PRIMITIVES@UTILITY
.hairline

Crisp 1px structural border mapped directly to var(--line).

.tick-corners

Drafting registration ticks rendered via CSS multi-layer linear gradients (zero extra DOM nodes).

04 — .eyebrow

Monospace uppercase annotation track for indexed section headings and drawing labels.

.bg-grid

24px drafting canvas grid adapting subtly between dark ink and light paper themes.

PLATE 03 — BUILD TELEMETRY

Real Build-Time Bundle & Budget Report

Measured directly from emitted client/dist/assets at Vite build close using Node zlib.gzipSync, then embedded into this prerendered route so numbers never go stale.

INITIAL ROUTE JS BUDGET (GZIPPED ENTRY)

81.93 kB / 88.00 kB budget (265.21 kB raw)

WITHIN BUDGET
0 kBStretch target: 80.00 kB gzBudget ceiling: 88.00 kB gz

Entry JavaScript

81.93 kB gz

265.21 kB raw · 17 lazy chunks deferred

Stylesheet CSS

15.20 kB gz

78.75 kB raw (Tailwind 4 tokens)

Active Latin Fonts

108.35 kB

3 WOFF2 subsets · Space Grotesk preloaded

Prerendered Routes

2 static routes

//colophon
EMITTED ASSET BREAKDOWN (22 FILES)GENERATED: 2026-12-02 05:45 UTC
Per-chunk build asset table showing filename, type, loading role (entry or lazy), raw byte size, and gzipped byte size.
AssetKindLoad RoleRawGzip
index-D8Ir-JmQ.jsjsENTRY265.21 kB81.93 kB
showcase-v1-host-DoxFj51P.jsjsLAZY111.86 kB32.91 kB
command-palette-D_8dsLaK.jsjsLAZY59.01 kB19.25 kB
architecture-lab-BcLjX9Sd.jsjsLAZY34.26 kB9.90 kB
colophon-pjCK__vx.jsjsLAZY28.61 kB7.72 kB
below-fold-v2-CB6npoZC.jsjsLAZY28.07 kB7.29 kB
credentials-oZukg8OE.jsjsLAZY8.65 kB3.96 kB
case-studies-CV2qdern.jsjsLAZY9.79 kB3.71 kB
case-studies-DJgfPNMu.jsjsLAZY5.99 kB1.86 kB
mobile-nav-drawer-axww18LE.jsjsLAZY3.95 kB1.49 kB
not-found-BVJKnZCl.jsjsLAZY1.37 kB0.68 kB
triangle-alert-CHqtGmsv.jsjsLAZY0.25 kB0.20 kB
compass-CA3VVboG.jsjsLAZY0.23 kB0.19 kB
copy-B1ZVki3X.jsjsLAZY0.22 kB0.19 kB
circle-check-Din-PpX_.jsjsLAZY0.16 kB0.16 kB
arrow-right-BiArUdRQ.jsjsLAZY0.15 kB0.15 kB
arrow-left-CauBa_K-.jsjsLAZY0.15 kB0.15 kB
chevron-down-B-YHkqtG.jsjsLAZY0.11 kB0.13 kB
index-D21KvgRg.csscssENTRY78.75 kB15.20 kB
inter-latin-wght-normal-Dx4kXJAl.woff2fontENTRY47.13 kB47.12 kB
jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2fontENTRY39.46 kB39.49 kB
space-grotesk-latin-wght-normal-BhU9QXUp.woff2fontENTRY21.77 kB21.79 kB