delcard_games Svelte Themes

Delcard_games

Peer-to-peer card games you can play with friends — no server needed. Built with SvelteKit & WebRTC.

delcard_games

An online card game platform for playing with friends — fully client-side, no server required.

Players connect directly peer-to-peer via PeerJS. The host is the source of truth: they validate actions, update game state, and broadcast it to all players.

Stack

Getting started

npm install
npm run dev

Type-check:

npm run check

Deploy (Netlify)

This project is configured with @sveltejs/adapter-netlify.

  • Build command: npm run build
  • Publish directory: build (defined in netlify.toml)

Adding a game

The engine is designed so each game is a self-contained GameDefinition object — no framework knowledge needed.

See docs/engine.md for the full guide.

Existing games: War · The Fight (La Bagarre)

Project structure

src/lib/
  engine/     # pure utility functions (shuffle, deal, zones…)
  games/      # one file per game
  decks/      # deck types and visual themes
  network/    # PeerJS host/client wrappers (in progress)
src/routes/
  /           # lobby — create or join a game
  /game/[id]  # game room
docs/
  engine.md         # how to build a game
  games/            # rules for each included game

License

MIT — © 2026 Luca Deltort

Top categories

Loading Svelte Themes