How amal1971/storyarc works
StoryArc is a browser-based speaking coach built around two practice loops: Story Lab and Story Gym. Users choose a prompt or situation, record, type, or load a sample story, then receive feedback and retell it; the app compares attempts and stores session records locally. The API provides speech transcription, AI analysis, comparison, and an access gate. The graph preserves documented capabilities, but several API and UI implementations were not excerpted, so their links rely on README statements or SOURCE INDEX references.
Main entry points: App.jsx App flow · RecordScreen.jsx Record inputs · analyze.js Analysis client · auth.js Access client
Components 29
Practice experience
- App flow
src/App.jsx - Record inputs
src/components/RecordScreen.jsx - Microphone capture
src/lib/useRecorder.js - Story Lab feedback
src/components/FeedbackScreen.jsx - Story Gym feedback
src/components/GymFeedbackScreen.jsx - Attempt comparison UI
src/components/DeltaScreen.jsx - Gym round UI
src/components/GymDeltaScreen.jsx - History and export
src/components/HistoryScreen.jsx - Prompts and situations
src/lib/prompts.js
Story analysis
- Framework registry
src/lib/frameworks.js - Filler detection
src/lib/fillers.js - Analysis client
src/lib/analyze.js - Speech-to-text client
src/lib/stt.js - Sample recordings
src/lib/samples.js
API services
- Transcription API
api/transcribe.js - Filler analysis API
api/analyze-fillers.js - Story structure API
api/analyze-structure.js - Framework analysis API
api/analyze-framework.js - Attempt comparison API
api/compare-attempts.js - Gemini client
api/_gemini.js
Session and access
- Local session records
src/lib/session.js - Access client
src/lib/auth.js - Google sign-in API
api/auth-google.js - Session status API
api/session-status.js - Logout API
api/logout.js - Session helper
api/_session.js - Usage persistence
api/_usage.js
Other components
- Speaker
- Deepgram
Connections 35
- Speaker → Record inputs: provides story
src/components/RecordScreen.jsx - Record inputs → Microphone capture: captures audio
src/components/RecordScreen.jsx - Record inputs → Sample recordings: loads sample
src/components/RecordScreen.jsx - App flow → Record inputs: shows screen
src/App.jsx - App flow → Story Lab feedback: shows feedback
src/App.jsx - App flow → Story Gym feedback: shows feedback
src/App.jsx - App flow → Attempt comparison UI: shows comparison
src/App.jsx - App flow → Gym round UI: shows comparison
src/App.jsx - App flow → History and export: shows history
src/App.jsx - App flow → Prompts and situations: selects prompt
- Record inputs → App flow: submits attempt
src/App.jsx - App flow → Speech-to-text client: transcribes audio
README.md - Speech-to-text client → Transcription API: posts audio
README.md - Transcription API → Deepgram: transcribes
README.md - App flow → Analysis client: requests analysis
src/App.jsx - Analysis client → Filler detection: detects fillers
src/lib/analyze.js - Analysis client → Filler analysis API: posts analysis
README.md - Analysis client → Story structure API: posts analysis
README.md - App flow → Framework analysis API: requests verdict
src/App.jsx - Framework analysis API → Framework registry: reads definitions
api/analyze-framework.js - Framework analysis API → Gemini client: calls model
api/analyze-framework.js - Filler analysis API → Gemini client: calls model
- Story structure API → Gemini client: calls model
- App flow → Attempt comparison API: requests comparison
README.md - Attempt comparison API → Gemini client: calls model
api/compare-attempts.js - Attempt comparison API → Framework registry: reads definitions
api/compare-attempts.js - App flow → Local session records: saves attempts
src/App.jsx - History and export → Local session records: loads records
src/App.jsx - App flow → Access client: checks session
src/App.jsx - Access client → Session status API: fetches status
src/lib/auth.js - Access client → Google sign-in API: posts credential
src/lib/auth.js - Access client → Logout API: posts logout
src/lib/auth.js - Google sign-in API → Session helper: manages session
api/auth-google.js - Session status API → Session helper: checks session
api/session-status.js - Session helper → Usage persistence: persists usage
api/_session.js