How flbas1/party works
This is a configurable party/presentation app: the browser loads bootstrap and party configurations, discovers available parties, then renders the selected configuration as interactive components with party-specific assets and styling. A .NET server serves the frontend and party files, exposes party-discovery/configuration routes, and includes a Music Assistant API integration. The graph reflects the supplied excerpts and SOURCE INDEX; Music API handler details and several component implementations were not excerpted, so their internal behavior is not expanded.
Main entry points: componentRegistry.tsx Component registry · App.tsx Party app · Program.cs Party routes · SlideshowComponent.tsx Slideshow
Components 24
Party experience
- React entry
src/main.tsx - Party app
src/App.tsx - Party configurations
partytime - Bootstrap config
bootstrap.yml
Presentation components
- Component registry
src/registry/componentRegistry.tsx - Component context
src/types/ComponentTypes.ts - Content components
src/components/TextComponent.tsx - Layout and cards
src/components/LayoutComponent.tsx - Countdown
src/components/CountdownComponent.tsx - Remaining-time hook
src/components/shared/useRemainingTime.ts - Reveal components
src/components/RevealComponent.tsx - Reveal game
src/components/RevealGameComponent.tsx - Slideshow
src/components/SlideshowComponent.tsx - Tab cards
src/components/TabCardComponent.tsx - Image and video
src/components/ImageComponent.tsx - HTML content
src/components/HtmlComponent.tsx - Asset URL resolver
src/utils/resolveAssetUrl.ts
Server and parties
- Web server
server/Program.cs - Party routes
server/Program.cs - Party files
partytime
Music integration
- Music API routes
server/MusicApi.cs - Music Assistant client
server/MusicAssistantClient.cs
Other components
- Party viewer
- Music Assistant
Connections 28
- Party viewer → React entry: opens app
- React entry → Party app: renders
src/main.tsx - Party app → Bootstrap config: loads YAML
src/App.tsx - Party app → Party routes: discovers parties
src/App.tsx - Party routes → Party files: scans and reads
server/Program.cs - Party app → Party configurations: loads selected config
src/App.tsx - Web server → Party routes: maps routes
server/Program.cs - Web server → Music API routes: maps API
server/Program.cs - Party app → Component registry: renders nodes
src/App.tsx - Component registry → Content components: dispatches
src/registry/componentRegistry.tsx - Component registry → Layout and cards: dispatches
src/registry/componentRegistry.tsx - Component registry → Countdown: dispatches
src/registry/componentRegistry.tsx - Component registry → Reveal components: dispatches
src/registry/componentRegistry.tsx - Component registry → Reveal game: dispatches
src/registry/componentRegistry.tsx - Component registry → Slideshow: dispatches
src/registry/componentRegistry.tsx - Component registry → Tab cards: dispatches
src/registry/componentRegistry.tsx - Component registry → Image and video: dispatches
src/registry/componentRegistry.tsx - Component registry → HTML content: dispatches
src/registry/componentRegistry.tsx - Party app → Component context: uses context
src/App.tsx - Component registry → Component context: uses renderer types
src/registry/componentRegistry.tsx - Countdown → Remaining-time hook: tracks time
src/components/CountdownComponent.tsx - Reveal components → Remaining-time hook: tracks time
src/components/RevealComponent.tsx - Slideshow → Remaining-time hook: tracks time
src/components/SlideshowComponent.tsx - Slideshow → Asset URL resolver: resolves image
src/components/SlideshowComponent.tsx - Image and video → Asset URL resolver: resolves media
src/components/ImageComponent.tsx - Party app → Party routes: loads party stylesheet
src/App.tsx - Party routes → Music Assistant client: delegates
server/Program.cs - Music Assistant client → Music Assistant: sends commands and queries
server/MusicAssistantClient.cs