همدست means accomplice in Farsi
Play Mafia online. Nobody sits out.
Send a link, get your role in secret, then talk your way through the night. The app deals, keeps time and counts the votes, so the friend who usually moderates finally gets to play.
A real game, recorded. The other five are bots. Full video
Deals you a random role, the way the game does. Tap again to hide it.
How a game goes
From a link to your first lie
-
1

Make a room
Pick a nickname and send the link to your group chat. No sign-up, no app store. The game starts when six to twelve people are in.
-
2

Get your role
Citizen, Doctor, Detective, Mafia or Godfather. The server keeps every role, and your browser only ever learns your own.
-
3

Talk, vote, survive
By day you argue and vote someone out. At night the Mafia pick a target, the Doctor guards someone and the Detective checks a suspect.
What's in it
For friends who can't share a table
Farsi first, right to left
Every screen is laid out right to left first and uses a proper Farsi typeface. English works just as well, and anyone can switch languages in the middle of a game.
مافیا، با دوستانی که دورند.
-
The app is the moderator
It deals the roles, runs the clock, counts the votes and settles ties. Everyone at the virtual table gets to play.
-
A private chat for the Mafia
At night the Mafia get their own room to plan. Nobody else receives those messages, not even hidden in the page.
-
Keeps almost nothing
No phone numbers, real names, recordings or analytics. Games and chat are deleted 24 hours after a game ends.
-
Drop out, come back
Lost signal on the bus? Open the page again and you're back in your seat. A game even survives a server restart.
-
Report, block, kick
Block a player's chat, report abuse for review, and the host can remove someone from the room before the game starts.
Install
Run it on your own machine
You need Node 24 or newer. There are no npm packages to install, so that's all.
git clone https://github.com/abozaralizadeh/Hamdast.git hamdast
cd hamdast
npm start
Open http://127.0.0.1:3000 and make a room. A game needs six players, so if you're trying it alone, fill the empty seats with bots using your room code:
npm run bots -- ROOMCODE 5
On a Debian or Ubuntu server, one script installs Node, sets up the service, a daily backup and a health check. Run it again any time to update. Add a domain and it puts HTTPS in front.
sudo DOMAIN=play.example.com ./setup_service.sh
The honest bits
Questions, and what isn't done yet
Can I play it online right now?
Not yet. There's no public server. It's a working prototype that you can run yourself in a couple of minutes with the steps above.
Is there voice chat?
Not yet. The voice part is a stand-in: it shows whose turn it is to talk, but carries no sound. For now, keep a call open in any app next to the game.
Why can't this page run a demo game?
Because the server holds every secret role and runs the timers. A static page can't do that without giving the roles away, so this page shows a recording instead.
Is it open source?
It's source available. You can use, study and change it for anything non-commercial, under the PolyForm Noncommercial license. For commercial use, open an issue and ask.
Is the Farsi final?
It's a first draft. It still needs a careful read by native speakers, and the nickname filter's word list is empty for the same reason.