How pravosleva/sounds-in-access-2025 works
This is a React soundboard with project-based sound collections and user-managed randomizer packs. Users enter through the home page, browse sound projects, open a project, and play sounds; they can also create and manage randomizer packs from the randomizers page. The central vi module owns catalog state, pack operations, and audio playback. The excerpts show routing, persistence, and randomizer interactions; the project detail implementation is sampled but its calls are not, so that connection is left unverified.
Main entry points: HomePage.tsx Home page · SoundsPages.tsx Sound catalog · RandomizersPage.tsx Randomizer manager · main.tsx Route shell
Components 18
App navigation
- Route shell
src/main.tsx - Home page
src/pages/home/HomePage.tsx - Template page
src/pages/template/TemplatePage.tsx
Sound experience
- Sound catalog
src/pages/sounds/SoundsPages.tsx - Project player
src/pages/sounds/[project]/ProjectPage.tsx - Catalog and audio
src/common/vi/vi.ts - Browser audio
Randomizer packs
- Randomizer manager
src/pages/randomizers/RandomizersPage.tsx - Pack operations
src/common/vi/vi.ts - Persistence context
src/common/context/LocalStorageInspectorContext.tsx - Local storage
Shared runtime
- Page layout
src/common/components/Layout/Layout.tsx - Picture card
src/common/components/ItemAsPicture/ItemAsPicture.tsx - Responsive blocks
src/common/components/ResponsiveBlock/ResponsiveBlock.tsx - Tape display
src/common/components/Tape/Tape.tsx - Action buttons
src/common/components/Button/Button.tsx - Fast context helper
src/common/context/utils/createFastContext.tsx
Other components
- Listener
Connections 27
- Listener → Route shell: opens app
- Route shell → Home page: routes to
src/main.tsx - Route shell → Sound catalog: routes to
src/main.tsx - Route shell → Project player: routes to
src/main.tsx - Route shell → Randomizer manager: routes to
src/main.tsx - Route shell → Template page: routes to
src/main.tsx - Home page → Sound catalog: links to
src/pages/home/HomePage.tsx - Home page → Randomizer manager: links to
src/pages/home/HomePage.tsx - Home page → Tape display: renders
src/pages/home/HomePage.tsx - Sound catalog → Catalog and audio: reads projects
src/pages/sounds/SoundsPages.tsx - Sound catalog → Randomizer manager: links to
src/pages/sounds/SoundsPages.tsx - Project player → Catalog and audio: uses catalog
- Randomizer manager → Pack operations: manages packs
src/pages/randomizers/RandomizersPage.tsx - Randomizer manager → Catalog and audio: controls playback
src/pages/randomizers/RandomizersPage.tsx - Pack operations → Catalog and audio: shares state
src/common/vi/vi.ts - Catalog and audio → Browser audio: plays audio
src/common/vi/vi.ts - Persistence context → Fast context helper: creates provider
src/common/context/LocalStorageInspectorContext.tsx - Persistence context → Catalog and audio: subscribes to
src/common/context/LocalStorageInspectorContext.tsx - Persistence context → Local storage: writes packs
src/common/context/LocalStorageInspectorContext.tsx - Home page → Page layout: renders
src/pages/home/HomePage.tsx - Home page → Picture card: renders
src/pages/home/HomePage.tsx - Home page → Responsive blocks: renders
src/pages/home/HomePage.tsx - Sound catalog → Page layout: renders
- Sound catalog → Picture card: renders
src/pages/sounds/SoundsPages.tsx - Sound catalog → Responsive blocks: renders
src/pages/sounds/SoundsPages.tsx - Randomizer manager → Page layout: renders
src/pages/randomizers/RandomizersPage.tsx - Randomizer manager → Action buttons: renders
src/pages/randomizers/RandomizersPage.tsx