Orbit
- Date
- Author
NINikki Sophie 🌸- Stack
- Next.js, TypeScript, Tailwind CSS, shadcn/ui, PostgreSQL, Drizzle, Pusher, WebRTC
- Tags
- Front-EndBack-EndFull-StackWebsite
Pictures
A real-time social app with a feed, friends, messages and calls, and one button most social apps don't have: meet a stranger who likes the same things you do, talk for a while, and when either of you leaves, the conversation is gone.
What is Orbit?
A real-time social platform with everything in one place: a feed with posts, likes, hashtags and mentions; friends you invite and a private network of people you talk to; private messages and group rooms, with replies and edits, delivered in under a second; and audio and video calls straight between browsers. Notifications cover messages, mentions, likes and friend requests, with unread counts, sounds and settings for which ones you get. Every user has a profile page and settings for their account and privacy. All of it in English and German.
How does meeting a stranger work?
You join a queue and are paired with whoever is waiting with the most interests in common. The queue lives in PostgreSQL: a new arrival takes the best match and locks that row while it does, so two people can never be matched with the same person at once.
Ending the chat, closing the tab or navigating away tells the other person right away and deletes the conversation, messages and all. Closing the tab is the tricky one, since the page is already gone. It sends a beacon, which the server handles anyway.
How does it stay real time?
Messages, invites, matches and notifications go out through Pusher, so every open tab updates the moment something happens. Calls use WebRTC directly, without a video SDK: the browsers exchange their connection details through the site, then send audio and video to each other, with STUN and TURN servers to get through home routers and firewalls.
What about people who misbehave?
People, messages and posts can be reported. Moderators work through the reports from a dashboard and can ban accounts and IP addresses. The reporter gets a reference code and hears the outcome in a message from Orbit.
What did I learn?
A real-time app means a lot of state on the client: every incoming event has to update the page instantly, without blocking it or arriving twice. And writing the WebRTC side by hand, from offers and answers to ICE candidates and media streams, taught me far more than a video SDK would have.
Is it still going?
Not right now. Orbit is on hold, so there's no live version to try at the moment. The code is all in the repository, and I may well pick it up again.

