Deploy in an afternoon.
A modular monolith that runs on one server to start. PostgreSQL, Redis, object storage, and LiveKit for audio rooms.
Quick start
This release is the front-end prototype with demo data. The backend arrives in the next phase; the commands below show the planned setup.
# 1. Get the code
git clone https://github.com/your-org/heyfrens.git && cd heyfrens
# 2. Build the static front end (no dependencies beyond Python 3)
python3 build.py
# 3. Preview locally
python3 -m http.server -d dist 8080 # open http://localhost:8080
# Planned for phase 3: full stack
cp operator.config.example.json operator.config.json
docker compose up -d # api, postgres, redis, minio, livekit
Operator config
One file holds everything that differs between operators. Secrets such as ad zone IDs and API keys go in environment variables on your server, never in the repository.
{
"brand": { "name": "Your Service", "domain": "yourservice.in", "logo": "/brand/logo.svg", "accent": "#E9B44C" },
"legal": {
"operatorName": "Your Company Pvt Ltd",
"grievanceOfficer": { "name": "…", "email": "[email protected]" },
"termsUrl": "/policies#terms", "privacyUrl": "/policies#privacy"
},
"ads": {
"network": "your-ad-network",
"zoneIdEnv": "ADS_ZONE_ID",
"discover": { "enabled": true, "everyN": 12 },
"sidebar": { "enabled": true },
"directory": { "enabled": true }
},
"safety": { "minAge": 18, "newcomerHours": 24, "liveMaxSpeakers": 10, "recordLiveRooms": false },
"features": { "dating": true, "spaces": true, "live": true, "video": false }
}
Private chats, live rooms, safety screens and onboarding can never show ads. That rule is in the code, not the config.
Architecture
- Web client: responsive PWA. This prototype is plain HTML, CSS and JS; the production client moves to SvelteKit with the same design system.
- API: Node.js REST for accounts, profiles, discovery, matches, spaces, reports and admin.
- Realtime gateway: WebSockets for messages, typing, presence, unread counts and room events.
- Data: PostgreSQL as the system of record; Redis for presence, rate limits and room state.
- Media: object storage with type and size checks, malware scanning and retention rules.
- Live audio: self-hosted LiveKit (Apache-2.0).
- Permissions: per-role bitfields per space, checked on the server for every action.
API overview
POST /v1/auth/otp POST /v1/auth/verify
GET /v1/discover POST /v1/likes/:userId
GET /v1/matches GET /v1/dm/:threadId/messages
GET /v1/spaces?city=&tag= POST /v1/spaces/:id/join
GET /v1/spaces/:id/channels POST /v1/channels/:id/messages
POST /v1/reports POST /v1/blocks/:userId
WS /v1/gateway → message.create, typing.start, presence.update, room.speaker.update
Browser support
Last two versions of Chrome, Edge, Firefox, Safari (iOS and macOS), Samsung Internet and Opera, plus WhatsApp and Instagram in-app browsers. Glass effects, gradients and animations fall back to solid styles where unsupported, and motion is reduced when the device asks for it.