Skip to content
Mateusz Cieplak

Work

Projects with the scope, the hard parts and the numbers

Everything I've built at Profitway since 2025, grouped by type, plus a side project and the code from my course and internship. Client repositories are private, so each case study describes the work and shows the screens instead of linking to code.

Side project · 2026

Mafia IRL

A mobile-first web app for playing Mafia around a real table. Players join a room from their phones, the host runs the night and day phases, and every role, night action and vote stays in sync in real time.

  • Server-side game engine on Express and Socket.IO: phase flow, night resolution, day voting, win conditions and reconnects
  • A separate view for the host with a live feed of what happens each night
  • Optional phase timers synced from the lobby, and bots for playtesting
  • Vitest suite covering every phase, plus a full-game integration test
  • Dockerised web and server apps, with a one-command LAN setup for testing on real phones
  • Next.js
  • React
  • Tailwind CSS
  • Node.js
  • Express
  • Socket.IO
  • PocketBase
  • Vitest
  • Docker

Source code on GitHub(opens in a new tab)

Game loop, run by the server
  1. Lobby

    1. Players join
    2. Roles are dealt
  2. Night

    1. Detective checks
    2. Doctor protects
    3. Mafia picks
    4. Night resolves
  3. Day

    1. Discussion
    2. Vote
    3. Day resolves

Night and day repeat until the town or the mafia wins.

Earlier projects

From the Mate Academy course and the CoderBros internship, 2024-2025.

Contact

Let's talk.

Looking for a frontend developer who can take a project all the way to production? Use the form or write to me directly.

kontakt@mateuszcieplak.com

Your details are used only to reply to you. The form is delivered by Web3Forms.

Get in touch