Klear Karma logo Klear Karma Mirror-guided trust for seekers and verified practitioners.
Tech 2 min read May 31, 2026

Technical Architecture

How the Klear Karma wiki and product are built — stack, pipeline, and design decisions.

Technical Architecture

Stack

LayerTechnologyRole
FrameworkAstro 5Static site generation, content collections
LanguageTypeScriptType-safe components and data
StylingCSS custom properties + scoped Astro stylesNo runtime CSS framework
AnimationsGSAP + ScrollTriggerScroll-driven reveals, entrance animations
3D BackgroundThree.jsWebGL particle field (optional, respects reduced motion)
Build ToolVite (via Astro)Bundling, dev server, HMR
Package ManagerBunFast installs, lockfile
HostingVercelEdge-cached static deploy
Media StorageCloudflare R241 asset files served globally
Content PipelineBrandmint + NotebookLMSource → research → artifacts

Content Architecture

Data Flow

Sources (interviews, research, specs)

Brandmint (narrative extraction, theme mapping)

NotebookLM (report generation, infographics, audio)

Astro Content Collections (Markdown + YAML frontmatter)

Static HTML (built at deploy time)

Vercel Edge (global CDN)

File Organization

  • src/content/docs/ — Markdown documents with YAML frontmatter
  • src/data/ — JSON data contracts (site metadata, artifact inventory)
  • public/ — Static assets (logo, hero-bg, small images)
  • public/notebooklm/ — Heavy artifacts (backed by R2)

Build Pipeline

Local Development

bun install          # ~2s
bun run dev          # Vite dev server, HMR

Production Build

bun run build        # Astro static generation
# Output: dist/ (~2.3MB HTML/CSS/JS, no heavy assets)

Deploy

vercel deploy --prod --scope sheshiyers-projects
# Uploads 2.3MB dist/ to edge nodes

Performance Characteristics

MetricValue
Build time1.5s
Deploy size2.3MB (HTML/CSS/JS only)
Asset deliveryCloudflare R2 (Anycast)
Time to First Byte< 100ms (Vercel edge)
LighthouseExpected 95+ (no runtime JS framework)

Design System Implementation

Colors (CSS Custom Properties)

:root {
  --mirror-black: #090711;
  --karma-violet: #221245;
  --quiet-gold: #D8B35A;
  --moon-glass: #D9D2C6;
  --signal-lotus: #8B5CF6;
}

Typography

  • Headers: Sora (SemiBold, Bold)
  • Body: Inter (Regular, Medium, SemiBold)
  • Data: JetBrains Mono (Regular, Medium)

Motion

  • Scroll reveals: GSAP ScrollTrigger with IntersectionObserver fallback
  • Reduced motion: All animations gated behind prefers-reduced-motion
  • Hero counter: IntersectionObserver-triggered count-up

Security

  • Static site: No server runtime, no database
  • No cookies: No tracking, no consent banners needed
  • CSP-ready: Astro scopes all CSS/JS; inline styles are component-local
  • R2 access: Public read-only bucket, no write API exposed

Scalability

Current

  • 72 pages, 41 assets, 2.3MB deploy
  • Single-person team, automated pipeline

Next Phase

  • Add practitioner verification API (likely Cloudflare Workers)
  • Add seeker Mirror flow (React/Vue SPA embedded in Astro)
  • Token system (Stripe or native crypto on Solana)

Build History

DateChangeSize
May 27Initial wiki build41MB (with local assets)
May 31R2 asset offload2.3MB (HTML only)
May 31Founder docs added72 pages