How deeeland0ohio/sigma_games works
Sigma Games is a browser game hub with local and curated third-party game libraries, playable game views, favorites, themes, music, and chat/AI features. Users enter through the routed app, browse a catalog or source collection, then open a game; favorites and appearance settings persist locally. A separate Express server exposes content, chat, games, and AI route modules. The README provides no feature documentation, so capability coverage comes from the route table and source index; several page and server relationships are therefore left unconnected where their calls were not shown.
Main entry points: App.tsx Routed application · index.ts API router · BackgroundManager.tsx Background manager · PageLayout.tsx Page layout
Components 26
Web app
- Routed application
src/App.tsx - Page layout
src/components/PageLayout.tsx
Game discovery
- Home and catalog pages
src/pages - Source collections
src/pages - Alexr collection
src/pages/AlexrGames.tsx - 3kh0 collection
src/pages/Threekh0Games.tsx - Local game catalog
src/games/localCatalog.ts - Source game catalogs
src/sources - Game cards
src/games/SourceGameCard.tsx - Game players
src/pages/GamePlayer.tsx - Embedded content frame
src/components/ContentFrame.tsx
Personalization
- Background manager
src/components/BackgroundManager.tsx - Background effects
src/components - Theme settings
src/context/ThemeContext.tsx - Favorites state
src/context/FavoritesContext.tsx - Browser storage
src/utils/storage.ts - Settings page
src/pages/Settings.tsx
Chat and AI
- Chat page
src/pages/ChatPage.tsx - AI chat interface
src/ai/AiChat.tsx
Server APIs
- Express server
server.ts - API router
server/routes/index.ts - Content loader API
server/routes/contentLoader.ts - Chat API
server/routes/chat.ts - Games API
server/routes/games.ts - AI API
server/routes/ai.ts
Other components
- Player
Connections 27
- Player → Routed application: opens
src/App.tsx - Routed application → Home and catalog pages: routes to
src/App.tsx - Routed application → Game players: routes to
src/App.tsx - Routed application → Source collections: routes to
src/App.tsx - Routed application → Alexr collection: routes to
src/App.tsx - Routed application → 3kh0 collection: routes to
src/App.tsx - Routed application → Chat page: routes to
src/App.tsx - Routed application → AI chat interface: routes to
src/App.tsx - Routed application → Settings page: routes to
src/App.tsx - Routed application → Background manager: renders
src/App.tsx - Background manager → Theme settings: reads settings
src/components/BackgroundManager.tsx - Background manager → Background effects: selects effect
src/components/BackgroundManager.tsx - Page layout → Theme settings: reads colors
src/components/PageLayout.tsx - Favorites state → Browser storage: persists favorites
src/context/FavoritesContext.tsx - Theme settings → Browser storage: persists settings
src/context/ThemeContext.tsx - Home and catalog pages → Local game catalog: uses catalog
- Source collections → Source game catalogs: uses collections
- Alexr collection → Game cards: renders cards
src/pages/AlexrGames.tsx - 3kh0 collection → Game cards: renders cards
- Game players → Embedded content frame: embeds content
- Chat page → Page layout: renders within
src/pages/ChatPage.tsx - Settings page → Page layout: renders within
src/pages/Settings.tsx - Express server → API router: mounts router
server.ts - API router → Content loader API: registers
server/routes/index.ts - API router → Chat API: registers
server/routes/index.ts - API router → Games API: registers
server/routes/index.ts - API router → AI API: registers
server/routes/index.ts