How hellojoyworldz/slash2 works
Slash is a cross-platform messaging and link-organizing app: users sign in, create or share messages, then browse them by friend/category, tag, or automatic link classification. The frontend also supports room selection, customizable tabs, and theme preferences; the backend handles authentication, message enrichment, and friend/tag management. The graph follows relationships visible in excerpts or SOURCE INDEX references. Several product areas are represented at their directory or screen level because their implementation was not sampled; desktop OAuth details are likewise limited.
Main entry points: messages.service.ts Message processing · api.ts API client · auth.service.ts Auth service · screens Product screens
Components 30
Client experience
- App navigation
frontend/src/app/(tabs)/_layout.tsx - Product screens
frontend/src/screens - API client
frontend/src/api.ts - User preferences
frontend/src/tab-menu.ts - Theme system
frontend/src/theme-context.tsx - Theme values
frontend/src/theme.ts - Desktop shell
desktop/main.js
Identity
- Session state
frontend/src/auth.tsx - Sign-in screens
frontend/src/screens/LoginScreen.tsx - Auth endpoints
backend/src/auth/auth.controller.ts - Auth service
backend/src/auth/auth.service.ts - JWT guard
backend/src/auth/jwt-auth.guard.ts - Social providers
backend/src/auth/providers - User records
backend/src/users/user.entity.ts
Messages and discovery
- Chat and rooms
frontend/src/screens/ChatScreen.tsx - Selected room
frontend/src/selected-room.tsx - Message endpoints
backend/src/messages/messages.controller.ts - Message processing
backend/src/messages/messages.service.ts - Link classifier
backend/src/messages/link-classifier.service.ts - Link preview
backend/src/messages/link-preview.service.ts - Message records
backend/src/messages/message.entity.ts - Live events
backend/src/events/events.service.ts
Friends and tags
- Friend management
frontend/src/screens/FriendsScreen.tsx - Friend service
backend/src/friends/friends.service.ts - Friend records
backend/src/friends/friend.entity.ts - Tag screens
frontend/src/screens/TagsScreen.tsx - Tag service
backend/src/tags/tags.service.ts - Tag records
backend/src/tags/tag.entity.ts
Backend services
- Relational database
Other components
- App user
Connections 32
- App user → App navigation: uses
- App navigation → Product screens: routes to
frontend/src/app/(tabs)/_layout.tsx - Product screens → API client: requests data
frontend/src/screens/ChatScreen.tsx - Product screens → Session state: reads session
frontend/src/screens/ChatScreen.tsx - App user → Sign-in screens: signs in
- Sign-in screens → Session state: updates session
- Session state → API client: loads profile
frontend/src/auth.tsx - API client → Auth endpoints: calls auth routes
- Auth endpoints → Auth service: delegates
backend/src/auth/auth.controller.ts - Auth service → Social providers: verifies identity
backend/src/auth/auth.service.ts - Auth service → User records: reads and updates
backend/src/auth/auth.service.ts - JWT guard → Auth service: uses JWT payload
backend/src/auth/jwt-auth.guard.ts - API client → Message endpoints: calls message routes
frontend/src/api.ts - Message endpoints → Message processing: delegates
backend/src/messages/messages.controller.ts - Message processing → Link classifier: classifies links
backend/src/messages/messages.service.ts - Message processing → Link preview: fetches previews
backend/src/messages/messages.service.ts - Message processing → Message records: reads and writes
backend/src/messages/messages.service.ts - Message processing → Friend records: uses friend records
backend/src/messages/messages.service.ts - Message processing → Tag records: uses tag records
backend/src/messages/messages.service.ts - Message processing → Live events: emits events
backend/src/messages/messages.service.ts - Chat and rooms → Selected room: selects room
frontend/src/screens/ChatScreen.tsx - App user → Friend management: manages friends
- API client → Friend service: calls friend routes
- Friend service → Friend records: reads and writes
backend/src/friends/friends.service.ts - App user → Tag screens: organizes tags
- API client → Tag service: calls tag routes
- Tag service → Tag records: reads and writes
backend/src/tags/tags.service.ts - User preferences → API client: persists settings
frontend/src/tab-menu.ts - Theme system → Theme values: derives colors
frontend/src/theme-context.tsx - App user → Desktop shell: uses desktop app
- Message processing → Relational database: persists message data
- Auth service → Relational database: persists identity data