How ani1818/connect works
CONNECT is a self-hostable social network and real-time communication platform. Users authenticate, enter the application shell, and use social, messaging, community, creator, and governance features through API requests and live sockets. The server routes requests to domain endpoints, with shared authentication/security and database or media-storage support. The README documents additional capabilities such as reels, stories, live rooms, calls, and backup/restore; some corresponding route implementations are not sampled, so those links are documented rather than inferred from unseen code.
Main entry points: api.ts HTTP API client · server.ts HTTP server · db.ts Prisma database · App.tsx Application shell
Components 34
Client experience
- Application shell
src/App.tsx - Sign-in and setup
src/components/auth/AuthPages.tsx - Authentication state
src/context/AuthContext.tsx - Client routing
src/context/RouterContext.tsx - HTTP API client
src/lib/api.ts
Social features
- Feed and posts
src/components/feed/HomeFeed.tsx - Post interactions
src/components/feed/PostCard.tsx - Post composer
src/components/feed/PostComposer.tsx - Stories
src/components/feed/StoriesBar.tsx - Explore discovery
src/components/explore/ExploreView.tsx - Profiles
src/components/profile/ProfileView.tsx - Short-form reels
src/components/reels/ReelsView.tsx - Communities and events
src/components/communities/CommunitiesView.tsx - Creator analytics
src/components/creator/CreatorStudioView.tsx
Communication
- Messaging client
src/components/messages/MessengerView.tsx - Swipe reply
src/components/messages/SwipeReplyBubble.tsx - Realtime client
src/context/SocketContext.tsx - WebRTC call UI
src/components/calls/CallOverlay.tsx - Live streams
src/components/live/LiveStreamsView.tsx - Notifications
src/components/notifications/NotificationsView.tsx
Server services
- HTTP server
server.ts - Authentication routes
server/routes/auth.ts - Posts and feed routes
server/routes/posts.ts - Messaging routes
server/routes/messages.ts - Community routes
server/routes/communities.ts - Admin and governance
server/routes/admin.ts - Other feature routes
server/routes - Socket.IO server
server/realtime.ts
Platform services
- Request middleware
server/middleware.ts - Security utilities
server/security.ts - Admin bootstrap
server/bootstrap-admin.ts - Prisma database
server/db.ts - Media and backups
server/storage.ts
Other components
- Platform user
Connections 48
- Platform user → Application shell: uses
README.md - Application shell → Sign-in and setup: renders
src/App.tsx - Application shell → Feed and posts: renders
src/App.tsx - Application shell → Messaging client: renders
src/App.tsx - Application shell → Client routing: uses
src/App.tsx - Sign-in and setup → Authentication state: uses
src/components/auth/AuthPages.tsx - Authentication state → HTTP API client: requests
src/context/AuthContext.tsx - Feed and posts → Post interactions: renders
- Feed and posts → Post composer: renders
- Feed and posts → Stories: renders
- Feed and posts → HTTP API client: requests
- Post interactions → HTTP API client: requests
src/components/feed/PostCard.tsx - Stories → HTTP API client: requests
src/components/feed/StoriesBar.tsx - Explore discovery → HTTP API client: requests
src/components/explore/ExploreView.tsx - Profiles → HTTP API client: requests
src/components/profile/ProfileView.tsx - Short-form reels → HTTP API client: requests
src/components/reels/ReelsView.tsx - Communities and events → HTTP API client: requests
src/components/communities/CommunitiesView.tsx - Creator analytics → HTTP API client: requests
src/components/creator/CreatorStudioView.tsx - Messaging client → HTTP API client: requests
src/components/messages/MessengerView.tsx - Messaging client → Swipe reply: renders
src/components/messages/MessengerView.tsx - Messaging client → Realtime client: uses
src/components/messages/MessengerView.tsx - WebRTC call UI → Realtime client: uses
src/components/calls/CallOverlay.tsx - Live streams → Realtime client: uses
- Notifications → HTTP API client: requests
src/components/notifications/NotificationsView.tsx - HTTP API client → HTTP server: HTTP requests
README.md - HTTP server → Authentication routes: routes
server.ts - HTTP server → Posts and feed routes: routes
server.ts - HTTP server → Messaging routes: routes
server.ts - HTTP server → Community routes: routes
server.ts - HTTP server → Admin and governance: routes
server.ts - HTTP server → Other feature routes: routes
server.ts - HTTP server → Socket.IO server: initializes
server.ts - HTTP server → Request middleware: configures
server.ts - Authentication routes → Prisma database: queries
server/routes/auth.ts - Authentication routes → Admin bootstrap: invokes
server/routes/auth.ts - Authentication routes → Security utilities: uses
server/routes/auth.ts - Posts and feed routes → Prisma database: queries
server/routes/posts.ts - Posts and feed routes → Media and backups: stores media
server/routes/posts.ts - Messaging routes → Prisma database: queries
server/routes/messages.ts - Messaging routes → Socket.IO server: dispatches events
server/routes/messages.ts - Messaging routes → Media and backups: stores attachments
server/routes/messages.ts - Community routes → Prisma database: queries
server/routes/communities.ts - Community routes → Socket.IO server: dispatches events
server/routes/communities.ts - Admin and governance → Prisma database: queries
server/routes/admin.ts - Admin and governance → Media and backups: manages backups
server/routes/admin.ts - Admin and governance → Security utilities: uses
server/routes/admin.ts - Request middleware → Prisma database: checks sessions
server/middleware.ts - Request middleware → Security utilities: validates tokens
server/middleware.ts