Skip to main content
Paradise Code
All work
A Paradise Code product2026GameWeb app or websiteMobile app

Hokm & Shelem

Two classic Persian card games on one shared engine.

Four-player Hokm and Shelem as installable PWAs: online tables with coins and levels, LAN play over WebRTC, and offline play against three bot levels.

Hokm

Our role

Game engine, server and PWA

Challenge

Fair play means no client may ever see anyone else's cards.

Solution

An authoritative server that sends each seat only its own hand, with an engine and protocol shared by both games.

Features

  • Online, LAN and offline
  • A hard bot using PIMC search
  • Friends and leaderboards

Engineering notes

  • 01Our own WebSocket signaling relay for WebRTC
  • 02A shared Zod protocol package

Stack

  • React
  • Vite PWA
  • Fastify
  • WebSocket
  • WebRTC
  • PostgreSQL + Drizzle
  • Zod
  • Docker

Impact

  • Two products from one engine

Gallery

Shelem
Hokm on mobile
Shelem on mobile
Next projectParadise Code Editor