How shreyashmane-dev/mimora works
Memora is a web app for creating and sharing personalized birthday memory experiences. A creator enters through the site, builds a project in a guided wizard (recipient details, photos, design, music, AI writing, and publishing), then can manage it from a dashboard; recipients open a published preview. The graph also preserves account/profile, templates, and expiry cleanup capabilities. Some route and action internals were not sampled, so their connections are shown only where the source index or excerpts support them.
Main entry points: firebase.ts Firebase access · Wizard.tsx Creation wizard · AuthContext.tsx Authentication context · theme.ts Theme and cleanup logic
Components 24
Experience and discovery
- Landing page
src/app/page.tsx - Template gallery
src/app/templates/page.tsx - Memory experience
src/app/preview/[slug]/page.tsx
Project creation
- Creation wizard
src/components/Wizard.tsx - AI writing copilot
src/components/AICopilot.tsx - AI generation
src/app/actions/ai.ts - Theme and cleanup logic
src/app/actions/theme.ts - Image upload
src/lib/upload.ts
Accounts and management
- Project dashboard
src/app/dashboard/page.tsx - Project operations
src/app/actions/project.ts - Login
src/app/login/page.tsx - Signup
src/app/signup/page.tsx - User profile
src/app/profile/page.tsx - Authentication context
src/context/AuthContext.tsx - Project editor
src/app/project/[id]/page.tsx
Data and integrations
- Firebase access
src/lib/firebase.ts - Firebase services
- Cloudinary
- AI providers
- Expiry cleanup endpoint
src/app/api/cron/cleanup/route.ts - Translation hook
src/hooks/useTranslation.ts - Translation strings
src/lib/translations.ts
Other components
- Visitor or creator
- Birthday recipient
Connections 38
- Visitor or creator → Landing page: visits
- Visitor or creator → Template gallery: browses
- Visitor or creator → Login: signs in
- Visitor or creator → Signup: signs up
- Visitor or creator → Creation wizard: creates project
- Birthday recipient → Memory experience: opens experience
- Landing page → Authentication context: uses auth
src/app/page.tsx - Landing page → Translation hook: uses translations
src/app/page.tsx - Creation wizard → Authentication context: uses auth
src/components/Wizard.tsx - Creation wizard → Firebase access: saves project
src/components/Wizard.tsx - Creation wizard → Image upload: uploads photos
src/components/Wizard.tsx - Creation wizard → AI generation: requests writing
src/components/Wizard.tsx - Creation wizard → Theme and cleanup logic: requests design
src/components/Wizard.tsx - Creation wizard → Translation hook: uses translations
src/components/Wizard.tsx - Creation wizard → AI writing copilot: renders copilot
src/components/Wizard.tsx - AI writing copilot → AI generation: sends chat
src/components/AICopilot.tsx - AI generation → AI providers: requests generation
src/app/actions/ai.ts - Theme and cleanup logic → Firebase access: reads and saves
src/app/actions/theme.ts - Theme and cleanup logic → Cloudinary: deletes assets
src/app/actions/theme.ts - Project dashboard → Authentication context: uses auth
src/app/dashboard/page.tsx - Project dashboard → Firebase access: loads projects
src/app/dashboard/page.tsx - Project dashboard → Project operations: deletes project
src/app/dashboard/page.tsx - Project dashboard → Theme and cleanup logic: uses theme logic
src/app/dashboard/page.tsx - Project operations → Firebase access: updates project data
src/app/actions/project.ts - Project operations → Theme and cleanup logic: delegates cleanup
src/app/actions/project.ts - Login → Authentication context: uses auth
src/app/login/page.tsx - Login → Firebase access: authenticates
src/app/login/page.tsx - Signup → Authentication context: uses auth
src/app/signup/page.tsx - Signup → Firebase access: registers account
src/app/signup/page.tsx - User profile → Authentication context: uses auth
src/app/profile/page.tsx - User profile → Firebase access: reads profile
src/app/profile/page.tsx - Project editor → Firebase access: loads project
src/app/project/[id]/page.tsx - Project editor → Creation wizard: renders editor
src/app/project/[id]/page.tsx - Memory experience → Firebase access: loads by slug
src/app/preview/[slug]/page.tsx - Authentication context → Firebase access: tracks auth
src/context/AuthContext.tsx - Firebase access → Firebase services: uses Firebase
src/lib/firebase.ts - Expiry cleanup endpoint → Theme and cleanup logic: runs cleanup
src/app/api/cron/cleanup/route.ts - Translation hook → Translation strings: looks up strings
src/hooks/useTranslation.ts