Inspiration
This game is based on the popular social deduction game Mafia or Werewolf, taking the game to a new level. This game solves a key problem with the classic games: The need for a human moderator who has to sit out to narrate.
What it does
Super Mafia uses AI to host the game, allowing everyone to play. Its key features include:
- Pass-the-phone gameplay and online multiplayer.
- AI Host with several unique voices, narrating the game with personalities like serious, funny, or even a rhyming rapper.
- 2 different game modes, classic and judge, which involve voice interaction between the players and the AI host, as they must convince the AI to choose who to vote out.
- The classic mode uses Baseten and janitor.ai for the personality and ElevenLabs for the voice. Players have to discuss with each other to find out who the werewolf is
- In the online mode, each player talks to the Baseten AI or janitor.ai. Their goal is to convice the AI to vote out who they think the werewolf is
How we built it
- TypeScript is the fundamental logic of the game.
- TailwindCSS for the styling of the game.
- LiveKit for the fast and efficient streaming of text-to-speech responses.
- Janitor AI and Baseten for unique personalities.
- ElevenLabs API to introduce different voices.
Challenges we ran into
- Handling bad user input, as there were many different debugging tests we had to do, especially with player management.
- Creating a friendly UX, as we had to ensure the privacy of the players and make it clear whose turn it was.
Accomplishments that we're proud of
We are very proud of the overall design of the app, as its simple and fun style made the game pretty engaging and accessible.
Lessons learned
We learned how to use multiple API's together. We also learned how to create an online multiplayer game.
What's next for Super Mafia
Fixing bugs with the multiplayer mode.
Video showing judge mode (main video only shows classic mode):
Built With
- baseten
- elevenlabs
- janitorai
- livekit
- next.js
- tailwindcss
- typescript
- visual-studio

Log in or sign up for Devpost to join the conversation.