How hamidnawaz583/whispr works
Whispr is a web app for user accounts and private, expiring text and voice conversations. The apparent workflow is account access, finding another person, opening a conversation, and exchanging messages; conversation and message routes enforce membership and expiry. Password reset and profile/student-facing pages are represented from the file tree, but their runtime behavior and UI-to-API wiring were not sampled. Edges below are limited to route-to-auth/database calls visible in excerpts or the source index.
Main entry points: auth.ts Session handling · db.ts SQLite database · login/route.ts Auth endpoints · register/route.ts Registration
Components 24
User experience
- Home
app/page.tsx - Dashboard
app/dashboard/page.tsx - Chat interface
app/chat/page.tsx - Messages view
app/messages/page.tsx - Account view
app/account/page.tsx - Person profile
app/person/page.tsx - Students view
app/students/page.tsx - Login and signup
app/login/page.tsx - Account creation
app/create-account/page.tsx - Password recovery
app/forgot-password/page.tsx - Reset password
app/reset-password/page.tsx
Identity and access
- Auth endpoints
app/api/login/route.ts - Registration
app/api/register/route.ts - Session endpoints
app/api/me/route.ts - Logout endpoint
app/api/logout/route.ts - Password reset endpoints
app/api/password-reset - Session handling
lib/auth.ts
People and messaging
- People search and lookup
app/api/people/route.ts - Person lookup
app/api/people/[id]/route.ts - Conversations
app/api/conversations/route.ts - Text and voice messages
app/api/conversations/[id]/messages/route.ts - Audio retrieval
app/api/conversations/[id]/messages/[messageId]/audio/route.ts
Persistence
- SQLite database
lib/db.ts
Other components
- User
Connections 18
- User → Home: opens
- Auth endpoints → Session handling: creates session
app/api/login/route.ts - Registration → Session handling: creates session
app/api/register/route.ts - Session endpoints → Session handling: gets user
app/api/me/route.ts - Logout endpoint → Session handling: deletes session
app/api/logout/route.ts - People search and lookup → Session handling: gets user
app/api/people/route.ts - Person lookup → Session handling: gets user
app/api/people/[id]/route.ts - Conversations → Session handling: gets user
app/api/conversations/route.ts - Text and voice messages → Session handling: gets user
app/api/conversations/[id]/messages/route.ts - Audio retrieval → Session handling: gets user
app/api/conversations/[id]/messages/[messageId]/audio/route.ts - Auth endpoints → SQLite database: reads user
app/api/login/route.ts - Registration → SQLite database: writes user
app/api/register/route.ts - People search and lookup → SQLite database: searches users
app/api/people/route.ts - Person lookup → SQLite database: reads user
app/api/people/[id]/route.ts - Conversations → SQLite database: reads and writes
app/api/conversations/route.ts - Text and voice messages → SQLite database: reads and writes
app/api/conversations/[id]/messages/route.ts - Audio retrieval → SQLite database: reads message
app/api/conversations/[id]/messages/[messageId]/audio/route.ts - Session handling → SQLite database: reads and writes
lib/auth.ts