COSMIC

Vite + TypeScript · Three.js five-object atlas · GSAP ScrollTrigger · Lenis smooth scroll · GLSL lensing + bloom · Web Audio pad

An Atlas of Extreme Objects — a scroll-driven single-page WebGL experience where the visitor descends through five real astrophysical objects, each a distinct 3D scene state: the Black Hole (event horizon + lensed accretion disk), the Galaxy (spiral particle structure + dark-matter halo), the Nebula (volumetric emission cloud), the Pulsar (neutron star + sweeping radio beams), and the Star (the Sun's structure and fate). Three.js drives a bloom-composited scene over a GPU starfield, GSAP ScrollTrigger + Lenis tie camera descents to scroll progress, GLSL shaders render the lensing, nebula volume and star surface, and a Web Audio ambient pad sits behind a SILENCE toggle. No backend — every fact and asset is compiled into a static Vite build served from Vercel's CDN.

Generated 14 Jun 2026 · 17 files · 9 components · 3 flows

File Architecture

The full source tree as a layered graph — every file with its role, imports, exports and reverse dependencies.

System Design

Runtime topology across the five zones — client, edge, application, data and external services.

Flow Graph

The five most significant application flows, step by step — startup, auth, write, read and error recovery.

Technology

ComponentTechnologyVersionSource of Detection
Rendererthree (WebGLRenderer + EffectComposer + UnrealBloomPass)^0.166.1package.json
Motiongsap (ScrollTrigger)^3.12.5package.json
Smooth scrolllenis^1.1.13package.json
LanguageTypeScript (strict)^5.5.4package.json
Bundler / dev serverVite^5.4.11package.json
Shaderscustom GLSL (lensing / nebula volume / star surface)src/shaders.ts
AudioWeb Audio API (ambient pad + SILENCE toggle)src/audio.ts
HostingVercel static + SPA rewritesvercel.json