How shorteditor/nge_portfolio works
NGE is a cinematic portfolio: visitors scroll through a layered hero, then explore work, skills, creative credits, the NGE Layer Method and contact links. The hero shares one scroll-driven timeline across WebGL and DOM rendering; the lower portfolio adds project filtering and disclosures, while music rows provide playback. The repository also contains an assistant client and API, although the README describes the assistant as reserved and the section as empty. The graph includes those files but treats the assistant as optional; unsampled page wiring is not inferred.
Main entry points: main.js Hero interaction · ask.js Assistant endpoint · music-player.js Music playback · index.html Portfolio sections
Components 19
Cinematic hero
- Hero interaction
src/main.js - Scene timeline
src/timeline.js - WebGL renderer
src/renderer.js - Scene artwork
public/assets
Portfolio content
- Portfolio sections
index.html - Section interactions
src/sections.js - Project records
src/data/projects.json - Project markup
scripts/content.mjs - Skills and credits
index.html - Contact links
index.html
Creative features
- Headline effects
src/headline-letters.js - Music playback
src/music-player.js - Track audio
public/music - Layer Method
index.html
Assistant code
- Assistant client
src/ask-ai.js - Assistant endpoint
api/ask.js - Curated knowledge
api/_kb.js
Other components
- Visitor
- Groq API
Connections 16
- Visitor → Hero interaction: scrolls
README.md - Hero interaction → Scene timeline: samples
src/main.js - Hero interaction → WebGL renderer: renders
src/main.js - Hero interaction → Scene artwork: loads layers
README.md - Visitor → Portfolio sections: explores
README.md - Section interactions → Project records: filters projects
- Project markup → Project records: renders records
scripts/content.mjs - Visitor → Skills and credits: browses
README.md - Visitor → Contact links: follows links
README.md - Headline effects → Portfolio sections: decorates headlines
- Visitor → Music playback: selects tracks
- Music playback → Track audio: plays audio
src/music-player.js - Visitor → Layer Method: explores
README.md - Assistant client → Assistant endpoint: posts questions
src/ask-ai.js - Assistant endpoint → Curated knowledge: retrieves context
api/ask.js - Assistant endpoint → Groq API: requests completion
api/ask.js