How mayormankind/rehevo works
Rehevo is a private AI rehearsal product for preparing high-stakes conversations. Its main user journey moves from choosing and configuring a scenario to practicing spoken or typed turns, receiving AI pushback, then reviewing moments and drilling weak areas across attempts. The graph also preserves account setup, session history, reports, and settings as distinct product capabilities. Source excerpts show the AI engines and some storage access, but not every page’s runtime wiring; uncertain connections are omitted or marked dashed.
Main entry points: rehearsal-room-client.tsx Rehearsal room · openai-engine.ts AI generation and evaluation · (marketing)/page.tsx Product entry · dashboard/page.tsx Dashboard
Components 20
Product experience
- Product entry
src/app/(marketing)/page.tsx - Dashboard
src/app/(app)/dashboard/page.tsx - Scenario catalog
src/app/(app)/scenarios/page.tsx - Scenario setup
src/app/(app)/scenarios/[id]/setup/page.tsx - Scenario definitions
src/lib/constants/scenarios.ts
Rehearsal and improvement
- Rehearsal room
src/components/rehevo/rehearsal-room-client.tsx - Sessions and attempts
src/app/(app)/sessions/page.tsx - Reflection and moments
src/components/product/reflection-client.tsx - Targeted practice
src/components/rehevo/drill-client.tsx - Reports
src/app/(app)/reports/[id]/page.tsx
AI and persistence
- AI turn endpoint
src/app/api/ai/turn/route.ts - AI generation and evaluation
src/lib/ai/openai-engine.ts - Mock responses and evaluation
src/lib/ai/mock-engine.ts - Session and profile storage
src/lib/supabase/server.ts - Browser-side storage access
src/lib/supabase/client.ts
Identity and settings
- Sign in and signup
src/app/(auth) - Account preferences
src/components/rehevo/settings-page-client.tsx
Other components
- Participant
- Supabase
- OpenAI
Connections 22
- Participant → Product entry: visits
README.md - Product entry → Sign in and signup: starts account
src/app/(marketing)/page.tsx - Participant → Dashboard: prepares
README.md - Dashboard → Session and profile storage: reads data
src/app/(app)/dashboard/page.tsx - Participant → Scenario catalog: chooses scenario
README.md - Scenario catalog → Scenario definitions: uses scenarios
- Participant → Scenario setup: sets context
README.md - Scenario setup → Rehearsal room: begins practice
- Rehearsal room → Scenario definitions: loads scenario
src/components/rehevo/rehearsal-room-client.tsx - Rehearsal room → Browser-side storage access: updates session
src/components/rehevo/rehearsal-room-client.tsx - Rehearsal room → AI turn endpoint: requests AI turn
- AI turn endpoint → AI generation and evaluation: generates and evaluates
src/app/api/ai/turn/route.ts - AI generation and evaluation → OpenAI: requests completions
src/lib/ai/openai-engine.ts - AI generation and evaluation → Mock responses and evaluation: falls back to
src/lib/ai/openai-engine.ts - Rehearsal room → Mock responses and evaluation: gets fallback turns
src/components/rehevo/rehearsal-room-client.tsx - Participant → Sessions and attempts: reviews attempts
README.md - Participant → Reflection and moments: reflects on moments
README.md - Reflection and moments → Targeted practice: repeats weak moments
- Participant → Reports: views progress
README.md - Participant → Account preferences: manages preferences
src/components/rehevo/settings-page-client.tsx - Browser-side storage access → Supabase: connects to
- Session and profile storage → Supabase: connects to