How burakorkmez/codexgram works
Codexgram is an Expo social app backed by Convex. Its principal workflow is sign-in and profile completion, then browsing and creating social content or messaging through app screens, shared client state, and Convex functions. The graph also preserves major social domains and media uploads. Several backend and screen modules were not excerpted; their nodes use paths from the tree, while relationships without direct evidence are omitted or marked unverified.
Main entry points: social.ts Social API client · schema.ts Convex data · social-context.tsx Profile gate · views.ts Public views
Components 27
App experience
- App routes
src/app - Sign-in
src/hooks/use-social-auth.ts - Tab navigation
src/components/app-tabs.tsx - Home feed
src/components/home-feed.tsx - Explore
src/components/social/explore.tsx - Post composer
src/components/social/composer.tsx - Post views
src/components/social/post-detail.tsx - Profile views
src/components/social/profile.tsx - Stories
src/components/social/stories.tsx - Messaging screens
src/components/social/messages.tsx
Client state
- Feed state
src/context/feed-context.tsx - Message state
src/context/messages-context.tsx - Profile gate
src/context/social-context.tsx - Demo feed data
src/lib/feed-data.ts
Social backend
- Accounts
convex/accounts.ts - Profiles
convex/profiles.ts - Posts
convex/posts.ts - Post interactions
convex/postInteractions.ts - Social graph
convex/social.ts - Story functions
convex/stories.ts - Messaging functions
convex/messaging.ts - Convex data
convex/schema.ts - Public views
convex/lib/views.ts - Auth checks
convex/lib/auth.ts
Shared services
- Social API client
src/lib/social.ts - Media uploads
src/lib/upload.ts
Other components
- Member
Connections 33
- Member → App routes: uses
- App routes → Sign-in: starts sign-in
src/app/index.tsx - App routes → Tab navigation: shows tabs
src/app/design-preview/_layout.tsx - Tab navigation → Feed state: provides
src/components/app-tabs.tsx - Home feed → Feed state: reads state
src/components/home-feed.tsx - Home feed → Demo feed data: uses
src/components/home-feed.tsx - Feed state → Demo feed data: initializes from
src/context/feed-context.tsx - App routes → Profile gate: wraps screens
src/app/chat/[id].tsx - Profile gate → Profiles: queries profile
src/context/social-context.tsx - Profile gate → Accounts: checks deletion
src/context/social-context.tsx - Post composer → Profile gate: reads context
src/components/social/composer.tsx - Post composer → Social API client: calls API
src/components/social/composer.tsx - Post composer → Media uploads: uploads media
src/components/social/composer.tsx - Post views → Profile gate: reads context
src/components/social/post-detail.tsx - Post views → Social API client: uses API types
src/components/social/post-detail.tsx - Explore → Social API client: uses API
- Profile views → Social API client: uses API
- Stories → Social API client: uses API
- Messaging screens → Message state: uses state
src/components/social/messages.tsx - Message state → Social API client: uses API
src/context/messages-context.tsx - Social API client → Public views: imports view types
src/lib/social.ts - Social API client → Convex data: uses generated data types
- Accounts → Auth checks: imports checks
convex/accounts.ts - Social graph → Auth checks: imports checks
convex/social.ts - Social graph → Public views: imports views
convex/social.ts - Messaging functions → Auth checks: imports checks
convex/messaging.ts - Messaging functions → Public views: imports views
convex/messaging.ts - Profiles → Convex data: uses data model
- Posts → Convex data: uses data model
- Post interactions → Convex data: uses data model
- Story functions → Convex data: uses data model
- Public views → Convex data: imports media type
convex/lib/views.ts - Public views → Convex data: reads records
convex/lib/views.ts