How kirinojuju/social-network works
UniConnect is a local-only social-network project. The visible workflow is a browser rendering the React app’s Explore view alongside navigation and recommendations; the backend currently exposes health/readiness checks and a PostgreSQL readiness query, rather than social-feature APIs. Login and sign-up forms exist but are not wired into the shown app entry point. AI summary UI is static, while a separate backend AI summarizer uses an OpenRouter-configured client. The README describes broader social features, but the tree and sampled code do not establish their runtime implementation or connections.
Main entry points: App.jsx App shell · server.js HTTP server · main.jsx React entry · app.js Health endpoints
Components 16
App runtime
- React entry
frontend/src/main.jsx - App shell
frontend/src/App.jsx - HTTP server
backend/server.js - Health endpoints
backend/app.js - PostgreSQL pool
backend/config/db.js
Social interface
- Explore search
frontend/src/component/Explore.jsx - Feature navigation
frontend/src/component/LeftSideBar.jsx - People and groups
frontend/src/component/RightSideBar.jsx - Login form
frontend/src/component/AuthFormsLogin.jsx - Sign-up form
frontend/src/component/AuthFormsSignUp.jsx
AI summary
- AI summary UI
frontend/src/component/AI_summary.jsx - AI summarizer
backend/ai/summarize.js - OpenRouter client
backend/ai/aiClient.js
Other components
- User browser
- PostgreSQL
- OpenRouter API
Connections 14
- User browser → React entry: opens app
frontend/src/main.jsx - React entry → App shell: renders
frontend/src/main.jsx - App shell → Explore search: renders
frontend/src/App.jsx - App shell → Feature navigation: renders
frontend/src/App.jsx - App shell → People and groups: renders
frontend/src/App.jsx - App shell → AI summary UI: conditionally renders
frontend/src/App.jsx - User browser → Login form: uses form
- User browser → Sign-up form: uses form
- HTTP server → PostgreSQL pool: creates pool
backend/server.js - HTTP server → Health endpoints: starts app
backend/server.js - Health endpoints → PostgreSQL: checks readiness
backend/app.js - PostgreSQL pool → PostgreSQL: connects to
backend/config/db.js - AI summarizer → OpenRouter client: uses client
backend/ai/summarize.js - OpenRouter client → OpenRouter API: targets API
backend/ai/aiClient.js