How skizstudies/litale works
Litale is a frontend prototype for turning family stories into illustrated children’s books. A storyteller records a tale, reviews its transcript and generated scenes, adds illustrations or words, then reads the finished story or opens it from the Family Story Tree. App coordinates the four steps and story state; mockApiService supplies the prototype’s mocked persistence and generation services. The README documents these capabilities, while sampled source confirms key calls; unsampled details are represented only where documented or indexed.
Main entry points: App.jsx Step coordinator · RecordScreen.jsx Record tale · IllustrateScreen.jsx Illustrate story · ReviewScreen.jsx Review draft
Components 25
Story workflow
- Step coordinator
src/App.jsx - Step navigation
src/components/layout/TopNav.jsx - Step definitions
src/constants/steps.js - Mock story service
src/services/mockApiService.js - Sample stories
src/constants/sampleStories.js - Shared UI primitives
src/components/ui
Recording
- Record tale
src/screens/RecordScreen.jsx - Recorder state
src/hooks/useRecorder.js - Recording controls
src/components/record - Story prompts
src/components/record/StoryPromptsCard.jsx - Guide messages
src/constants/mascotMessages.js
Review and generation
- Review draft
src/screens/ReviewScreen.jsx - Transcript generation
src/services/mockApiService.js - Grade-level story
src/services/mockApiService.js - Draft and storyboard
src/components/review
Illustration
- Illustrate story
src/screens/IllustrateScreen.jsx - Color and draw
src/components/illustrate/StrokeCanvas.jsx - Scene line art
src/components/illustrate/sceneArt.js - Illustration modes
src/components/illustrate - Illustration settings
src/constants/illustrate.js
Reading and archive
- Read story
src/screens/ReadScreen.jsx - Storybook display
src/components/read/StorybookCard.jsx - Read-aloud audio
src/hooks/useReadAloud.js - Family Story Tree
src/components/read/FamilyStoryTree.jsx
Other components
- Storyteller
Connections 29
- Storyteller → Step coordinator: chooses steps
src/App.jsx - Step coordinator → Step navigation: renders
src/App.jsx - Step coordinator → Record tale: shows record step
src/App.jsx - Step coordinator → Review draft: shows review step
src/App.jsx - Step coordinator → Illustrate story: shows illustrate step
src/App.jsx - Step coordinator → Read story: shows read step
src/App.jsx - Step navigation → Step definitions: reads steps
src/components/layout/TopNav.jsx - Record tale → Recorder state: uses
src/screens/RecordScreen.jsx - Record tale → Recording controls: renders
src/screens/RecordScreen.jsx - Record tale → Story prompts: renders
src/screens/RecordScreen.jsx - Record tale → Guide messages: reads prompts
src/screens/RecordScreen.jsx - Record tale → Step coordinator: submits recording
src/screens/RecordScreen.jsx - Step coordinator → Mock story service: uploads recording
src/App.jsx - Review draft → Transcript generation: requests transcript
src/screens/ReviewScreen.jsx - Review draft → Grade-level story: requests scenes
src/screens/ReviewScreen.jsx - Review draft → Draft and storyboard: renders draft
src/screens/ReviewScreen.jsx - Review draft → Step coordinator: approves draft
src/screens/ReviewScreen.jsx - Step coordinator → Mock story service: saves story
src/App.jsx - Illustrate story → Illustration modes: renders modes
src/screens/IllustrateScreen.jsx - Illustrate story → Color and draw: renders canvas
src/screens/IllustrateScreen.jsx - Illustrate story → Scene line art: gets scene art
src/screens/IllustrateScreen.jsx - Illustrate story → Illustration settings: reads settings
src/screens/IllustrateScreen.jsx - Illustrate story → Step coordinator: submits artwork
src/App.jsx - Read story → Storybook display: renders book
src/screens/ReadScreen.jsx - Read story → Read-aloud audio: uses audio
src/screens/ReadScreen.jsx - Read story → Family Story Tree: renders archive
src/screens/ReadScreen.jsx - Step coordinator → Family Story Tree: selects story
src/App.jsx - Mock story service → Sample stories: loads sample stories
src/services/mockApiService.js - Step coordinator → Shared UI primitives: uses shared styling