Politscape is Open Source

Every line of code — the map rendering, combat simulation, economy engine, diplomacy system, and Rust/WebAssembly core — is MIT licensed and freely available on GitHub.

★ Star on GitHub▶ Play Now

MIT License

MIT License

Copyright (c) Politscape Contributors


Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software...

The full license is in the repository. The short version: use it, fork it, modify it, redistribute it — for any purpose, including commercially.

Tech Stack

Next.js 16
App framework and server-side rendering
SSR for SEO, React 19 for UI, App Router for nested layouts
React 19
Component UI layer
State management for menus, settings, and game mode transitions
Rust → WebAssembly
Simulation core
All combat calculations, movement validation, trade resolution, and economic ticks run in native-speed Rust compiled to WASM via wasm-pack
MapLibre GL
Interactive world map
Vector tile rendering with PMTiles, globe projection, smooth zoom and pan
D3.js + TopoJSON
2D map and data layers
Province boundaries, country outlines, city markers
Three.js
3D terrain relief
Optional elevation-based terrain rendering
Supabase
Auth and database
User profiles, XP tracking, multiplayer state sync
PMTiles
Map tile format
Self-contained vector tiles served from a single file, no tile server required

How to Self-Host

Politscape is a standard Next.js application. Self-hosting requires Node.js 18+ and optionally Supabase for auth and multiplayer.

# Clone the repo

git clone https://github.com/Politscape/Politscape

cd Politscape


# Install dependencies

npm install


# Start the dev server

npm run dev


# (Optional) Build the Rust/WASM core for full simulation

npm run build:wasm

How to Contribute

Contributions are welcome in every area:

Rust simulation
Improve combat modifiers, movement rules, naval mechanics, or economic ticks in /src/
Frontend / UI
React components in /components/, game scripts in /public/assets/js/
Map data
Province adjacency, sea regions, trade routes, terrain elevation — build scripts in /scripts/
Game balance
Unit stats, research costs, economic parameters — open an issue to discuss before changing
Documentation
How-to guides, API documentation, build instructions
Bug reports
Open an issue on GitHub with reproduction steps and browser/OS information
→ Open an issue on GitHub

Free to Play. Free to Fork.

Politscape is MIT licensed. Play it, fork it, or build something new with it.

▶ Play Now★ GitHub