How wyzdmulc265/suprise-me-bday works
Happy Birthday Wishing Site is a single-page personalized birthday experience. A visitor enters a name, starts the countdown, watches the name and matching quotes reveal, then sees a birthday wish and confetti. The server exposes quote and random-wish endpoints; the sampled storage implementation serves seeded in-memory data, despite the README describing PostgreSQL tables. The graph preserves the documented reveal and celebration stages. Some frontend data-fetching details are unsampled, so those links are omitted rather than inferred.
Main entry points: Home.tsx Birthday flow · App.tsx App router · routes.ts API handlers · storage.ts Seeded birthday data
Components 13
Birthday experience
- Birthday flow
client/src/pages/Home.tsx - Runaway button
client/src/components/RunawayButton.tsx - Birthday data hooks
client/src/hooks/use-birthday.ts - Window sizing
client/src/hooks/use-window-size.ts
Client foundation
- App router
client/src/App.tsx - Query client
client/src/lib/queryClient.ts - React bootstrap
client/src/main.tsx
Birthday API
- HTTP server
server/index.ts - API handlers
server/routes.ts
Data contracts
- Seeded birthday data
server/storage.ts - API contract
shared/routes.ts - Wish and quote schema
shared/schema.ts
Other components
- Visitor
Connections 12
- Visitor → Birthday flow: enters name
client/src/pages/Home.tsx - React bootstrap → App router: renders
client/src/main.tsx - App router → Birthday flow: routes to
client/src/App.tsx - App router → Query client: provides
client/src/App.tsx - Birthday flow → Runaway button: renders
client/src/pages/Home.tsx - Birthday flow → Birthday data hooks: uses quotes and wishes
client/src/pages/Home.tsx - Birthday flow → Window sizing: reads dimensions
client/src/pages/Home.tsx - HTTP server → API handlers: registers
server/index.ts - API handlers → API contract: uses paths
server/routes.ts - API handlers → Seeded birthday data: gets wishes and quotes
server/routes.ts - Seeded birthday data → Wish and quote schema: uses data types
server/storage.ts - API contract → Wish and quote schema: defines response shapes
shared/routes.ts