How opbsuthar/mybyte works
MyByte is a React portfolio SPA that presents the owner’s work and story through routed pages, project showcases, and interactive effects. The main visitor flow runs through the app shell to its home sections; project data is loaded by the app, shared with showcase components, and opened in a detail modal. README-documented capabilities include the Story and Resume routes, gamified secrets, and a Python-to-JSON project refresh pipeline. Several component implementations were not sampled, so those nodes use their supported source paths and only documented or indexed relationships are shown.
Main entry points: App.jsx App shell · github.js Project data loader · ProjectsContext.jsx Project context · fetch_github.py GitHub data generator
Components 20
Portfolio app
- App shell
web/src/App.jsx - Hash router
web/src/router.jsx - Visual effects
web/src/components/Background.jsx - Secrets and XP
web/src/components/SecretEngine.jsx - Motion hooks
web/src/hooks/useLenis.js
Project showcase
- Project data loader
web/src/lib/github.js - Project context
web/src/ProjectsContext.jsx - Project showcase
web/src/components/Showcase.jsx - Work listing
web/src/components/Work.jsx - Project detail modal
web/src/components/Modal.jsx
Pages and content
- Home sections
web/src/components/sections.jsx - Hero and terminal
web/src/components/Hero.jsx - Story page
web/src/pages/Story.jsx - Story book
web/src/components/AncientBook.jsx - Resume view
web/src/components/ResumeModal.jsx
Project data
- Project JSON cache
web/public/data/projects.json - GitHub data generator
tools/fetch_github.py - Generated project data
data/projects.json
Other components
- Visitor
- GitHub API
Connections 23
- Visitor → App shell: views portfolio
README.md - App shell → Hash router: reads route
web/src/App.jsx - App shell → Home sections: renders sections
web/src/App.jsx - App shell → Hero and terminal: renders home
web/src/App.jsx - App shell → Story page: renders story route
web/src/App.jsx - Story page → Story book: renders book
web/src/pages/Story.jsx - App shell → Resume view: renders resume route
web/src/App.jsx - App shell → Project data loader: loads projects
web/src/App.jsx - Project data loader → GitHub API: fetches repositories
web/src/lib/github.js - Project data loader → Project JSON cache: falls back to cache
web/src/lib/github.js - App shell → Project context: provides project state
web/src/App.jsx - App shell → Project showcase: renders showcase
web/src/App.jsx - App shell → Work listing: renders work
web/src/App.jsx - Project showcase → Project context: reads project list
web/src/components/Showcase.jsx - Work listing → Project context: reads project list
web/src/components/Work.jsx - App shell → Project detail modal: renders active project
web/src/App.jsx - Project detail modal → Project data loader: uses project helpers
web/src/components/Modal.jsx - App shell → Visual effects: renders background
web/src/App.jsx - App shell → Secrets and XP: uses secret state
web/src/App.jsx - App shell → Motion hooks: enables smooth scrolling
web/src/App.jsx - GitHub data generator → Generated project data: generates JSON
README.md - Generated project data → Project JSON cache: copied for serving
README.md - GitHub data generator → GitHub API: fetches repositories
README.md