Warring Nations

Public website

Features / Web

Give your players a home on the web: a live territory map, nation cards, wars, leaders and server status, drawn in the browser.

Live status is read from web.warringnations.net.

Ships in
wn_web. Optional Cloudflare front.
See also
Web and Cloudflare setup, In-game maps, Discord bridge

Article 1Pages

PageShows
HomeStatus pill, join box, stat tiles, top nations, active wars, recent events, map teaser
MapPan and zoom territory map with a legend that toggles nations, tooltips, grid, scale bar and world selector. Works with mouse, touch and keyboard.
NationsCards with colour, members and level, with filter and sort
WarsVersus cards with the declaration time
LeadersTop nations with level badges and experience bars
StatusServer up or down, players, and the age of every dataset
EventsRecent public events as a timeline

Article 2Works while the server is off

2.1The Cloudflare Worker serves a fixed page shell, and the browser fetches public datasets from an offline mirror in Cloudflare KV. Every dataset shows its own age. While the server is stopped the status pill says so and the last published data stays visible. No external requests, no fonts or analytics, and a strict content security policy.

Article 3Privacy by design

3.1Only fields on an allowlist leave the server. Anything that looks like an identifier or secret (UUIDs, IPs, tokens, coordinates) cannot even be declared, and tests fail on UUID-shaped text in the built-in datasets. Nothing is per user.

Article 4Free-tier friendly

4.1The mirror is designed for the Cloudflare Workers Free plan with a write budget and a daily request budget. A visitor rate limit and origin protection (the server refuses requests that did not come through the Worker) are included.

Article 5Your address on the page

5.1Set public_server_address in config/wn/web/cloudflare.toml and the landing page shows it with a Copy button. Empty hides the box.

Type at least two letters. Esc closes.