How amit0119/timepass works
Mini-World is a browser-based private 1-on-1 chat application with real-time messaging, WebRTC calling, social features, games, media, and push notifications. The main workflow is users chatting through the browser, with the server relaying real-time activity between them. The server also handles account and media routes and uses database queries for persistent media. The excerpts show the client registering a service worker and the worker displaying push notifications. Several feature-specific server handlers are unsampled, so those links are marked unverified or omitted.
Main entry points: script.js Chat client · server.js Realtime server · sw.js Push worker
Components 12
Browser experience
- Chat client
public/script.js - Push worker
public/sw.js
Realtime features
- Realtime server
server.js - Shared games
server.js - WebRTC calling
server.js
Server services
- Accounts and social
server.js - Messages and media
server.js - Push routes
server.js
External services
- PostgreSQL
- Web Push service
Other components
- User
- Chat partner
Connections 9
- User → Chat client: uses
README.md - Chat client → Realtime server: sends chat
README.md - Realtime server → Chat partner: relays messages
README.md - Realtime server → PostgreSQL: queries media
server.js - Chat client → Shared games: sends game events
- Chat client → WebRTC calling: starts calls
- Chat client → Push worker: registers
public/script.js - Push worker → User: shows notifications
public/sw.js - Push routes → Web Push service: sends notifications