How 0415t/imahima works
ImaHima is an Expo mobile app for viewing users and their availability, with email/password authentication and a server endpoint for toggling the current user's availability. The visible home screen loads user records from Supabase; sign-in delegates account actions to an auth module. A separate Express service validates bearer tokens and performs availability changes through injected dependencies. The source index also identifies push-notification and theme modules, but their detailed behavior is not shown; the graph preserves them without guessing their internal flow.
Main entry points: supabase.ts Supabase client · index.tsx User list · sign-in.tsx Sign-in screen · use-theme-color.ts Theme selection
Components 14
Mobile app
- User list
app/(tabs)/index.tsx - Sign-in screen
app/sign-in.tsx - App navigation
app/_layout.tsx - Themed UI
components - Theme colors
constants/theme.ts - Theme selection
hooks/use-theme-color.ts
Client services
- Auth operations
lib/auth.ts - Supabase client
lib/supabase.ts - Session storage
lib/auth-storage.ts - Push notifications
lib/push-notifications.ts
Availability API
- Express API
server/app.ts - Server Supabase client
server/services/supabase.ts
Backend services
- Supabase backend
Other components
- App user
Connections 11
- App user → User list: views users
app/(tabs)/index.tsx - App user → Sign-in screen: submits credentials
app/sign-in.tsx - User list → Supabase client: queries users
app/(tabs)/index.tsx - Sign-in screen → Auth operations: calls auth
app/sign-in.tsx - Auth operations → Supabase client: uses client
lib/auth.ts - Supabase client → Session storage: persists session
lib/supabase.ts - App navigation → Push notifications: loads notifications
app/_layout.tsx - Themed UI → Theme selection: gets colors
components/themed-text.tsx - Theme selection → Theme colors: reads palette
hooks/use-theme-color.ts - Express API → Server Supabase client: uses injected service
- Server Supabase client → Supabase backend: creates client
server/services/supabase.ts