frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: I rebuilt a 2000s browser strategy game on Cloudflare's edge

https://kampfinsel.com/
25•parzivalt•4d ago
I grew up in Germany in the early 2000s playing a browser game called Inselkampf. You built up an island, mined gold and stone, cut down trees for wood, raised armies, sent fleets across an ocean grid, joined alliances and got betrayed by them. Same genre as OGame or Travian. It shut down in 2014 and I never found anything that replaced that feeling of checking in before school to see if your fleet had arrived and your alliance was still alive.

I finally built the version I wanted to play. Kampfinsel is live at kampfinsel.com right now with real players on it. It's not a straight copy of the old game. I gave it its own world. No magic, no gunpowder – just ballistas, fire pots, and slow ships crossing huge distances. Three resources: gold, stone, wood. Travel between islands takes hours, not seconds. It's slow on purpose.

The whole thing runs on Cloudflare's edge. Workers for the game logic and API, D1 for the database, KV for sessions and caching, R2 for assets and Durable Objects for per-island state and the tick system (fleet arrivals, combat, resource generation). There's no origin server at all. Making a stateful multiplayer game work inside Workers' CPU limits and D1's consistency model meant some non-obvious choices: resources are calculated on-read from timestamps instead of being ticked into the database, fleet movements live in Durable Object alarms and combat writes are batched. This helped me a lot!

The look is intentionally rough and text-heavy (Hi HN!): server-rendered HTML, tables, a parchment color palette, Unicode icons, no frontend framework, no build step. The only JavaScript is for countdown timers and auto-refresh. I wanted it to feel the way I remember these games looking, not how they actually looked. Honestly, it looks a lot like HN itself - tables, monospace, no chrome. If you like how this site looks, you'll probably feel at home.

No signup wall, no premium currency, no pay-to-win. Feedback very welcome, especially from anyone who played this kind of game back in the day or has opinions on running stateful stuff on Workers + D1 + Durable Objects. I'll be around for the next few hours.

Comments

parzivalt•4d ago
Did anyone here actually played Inselkampf, OGame or Travian back then? If you have recommendation or the one and only feature you still remember.
sebastiansm7•2h ago
I played ogame, travian and a mexican pokemon rpg online
slater•2h ago
It keeps asking me to accept the privacy policy when registering, but there's no privacy policy checkbox...? Firefox, macOS
bakugo•2h ago
Looks like OP forgot to remind Claude not to make any mistakes.
Rohansi•2h ago
Got the same thing. If you switch to German the page is entirely different and has the missing checkbox.
parzivalt•1h ago
fixed and deployed. missing translation key on the english locale was hiding the checkbox label. thanks both for narrowing it down so fast.
parzivalt•1h ago
Oh well, that should not be the case! Thanks for highlighting that! On it to fix it.
cute_boi•1h ago
Well, this is the major problem with vibe coded apps.
avdelazeri•1h ago
OGame and Travian are two names that really take me back. Those and Tribal Wars, I played them a lot back when I was a teenager.
parzivalt•1h ago
that matches what i'm seeing - people want both. fast feedback loops in the first hour and stuff that still pulls them back three weeks later. hardest part is making the slow stuff feel like it matters before they've invested the time. still figuring it out with a lot of nice feedback from the community.
stavros•1h ago
Oh no, I remember those browser games, I will stay well away from them because they're the kind of thing that I will play for a month straight otherwise.
parzivalt•1h ago
go for it, give it a try! ;-).

it's designed for once-a-day check-ins though, not minute-by-minute refreshing. buildings are fast in the beginning and take real time later to upgrade. more like working in a garden than playing a game. easier to walk away from than you'd think.

stavros•1h ago
Hmm interesting, I'll give it a shot, thanks!
parzivalt•45m ago
nice. honestly the test isn't the first session - it's the 5 minutes tomorrow morning when you check what happened overnight. that's where the genre lives. some alliances are already prepping excel templates and mapping the ocean grid systematically. didn't expect that this fast (or at all). :)
nickandbro•1h ago
Very cool, though wouldn't using durable objects for a MMO type game become prohibitively expensive vs using websockets with a stateful server? I assume your game is not sending that many requests so its not too bad.
parzivalt•1h ago
good question. it's not real-time - actions resolve over hours.... request rate per active player is single digits per minute, often zero. DO alarms handle the time-based stuff (fleet arrivals, combat resolution, resource ticks) so there's no persistent connection cost. so far costs have been negligible compared to running an always-on origin.

websockets + stateful server would be the right call for anything realtime. for tick-based strategy with hour-long timers, DOs feel like the cleanest fit - i get per-island isolation, alarms, and storage in one primitive without managing a connection pool.

sophacles•1h ago
Durable objects do websockets
parzivalt•1h ago
yeah, for the game tick i went the other way though. alarms fire on schedule, resources calculated on-read from timestamps. a player can close the tab for 8 hours and the world still moves correctly when they come back, without holding any per-session state.
sophacles•49m ago
Fair enough, I didn't mean to criticize your work in any way, or even buy into a criticism of it. I was really just pointing out to GP that their "or" was actually an "and".
parzivalt•43m ago
no worries at all, didn't read it as criticism. fair correction too, DOs do both, i just leaned alarms-first for this use case. appreciate you keeping the thread accurate.
parzivalt•1h ago
funny side note: this started as me nerding around with Cloudflare's stack on vacation, just seeing what was possible. been a 1.1.1.1 WARP fanboy from day one. didn't intend to ship a game. showed an early version to a few friends and they just... kept playing. didn't say much, just kept logging in. that's when it hit me that other people might want this too. so here we are. hope you like it.
fusspawn_•9m ago
Someone needs to bring back nukezone.nu
parzivalt•3m ago
nukezone i don't know - what made it stick for you? another one for me was OPW (Operation Weltherrschaft).

Cybersecurity looks like proof of work now

https://www.dbreunig.com/2026/04/14/cybersecurity-is-proof-of-work-now.html
117•dbreunig•1d ago•53 comments

The buns in McDonald's Japan's burger photos are all slightly askew

https://www.mcdonalds.co.jp/en/menu/burger/
96•bckygldstn•1h ago•33 comments

I made a terminal pager

https://theleo.zone/posts/pager/
8•speckx•22m ago•0 comments

Google broke its promise to me – now ICE has my data

https://www.eff.org/deeplinks/2026/04/google-broke-its-promise-me-now-ice-has-my-data
900•Brajeshwar•5h ago•386 comments

ChatGPT for Excel

https://chatgpt.com/apps/spreadsheets/
24•armcat•1h ago•7 comments

PiCore - Raspberry Pi Port of Tiny Core Linux

http://tinycorelinux.net/5.x/armv6/releases/README
51•gregsadetsky•3h ago•3 comments

God sleeps in the minerals

https://wchambliss.wordpress.com/2026/03/03/god-sleeps-in-the-minerals/
420•speckx•9h ago•90 comments

Cal.com is going closed source

https://cal.com/blog/cal-com-goes-closed-source-why
160•Benjamin_Dobell•7h ago•136 comments

Live Nation illegally monopolized ticketing market, jury finds

https://www.bloomberg.com/news/articles/2026-04-15/live-nation-illegally-monopolized-ticketing-ma...
288•Alex_Bond•3h ago•84 comments

Fixing a monitor that goes black, off or blinks due to static electricity (2023)

https://aalonso.dev/blog/2023/how-to-fix-monitor-that-goes-black-off-due-to-static-electricity-in...
101•cyclopeanutopia•3d ago•55 comments

Does Gas Town 'steal' usage from users' LLM credits to improve itself?

https://github.com/gastownhall/gastown/issues/3649
164•rektomatic•2h ago•80 comments

Want to write a compiler? Just read these two papers (2008)

https://prog21.dadgum.com/30.html
439•downbad_•13h ago•132 comments

Ask HN: Who is using OpenClaw?

135•misterchocolat•3h ago•166 comments

Hacker News CLI

https://pythonhosted.org/hackernews-cli/commands.html
7•rolph•1h ago•0 comments

Golden eagles' return to English skies

https://www.bbc.co.uk/news/articles/cje4zlxqkqdo
32•techterrier•3d ago•17 comments

Good sleep, good learning, good life (2012)

https://super-memory.com/articles/sleep.htm
345•downbad_•13h ago•171 comments

Anna's Archive loses $322M Spotify piracy case without a fight

https://torrentfreak.com/annas-archive-loses-322-million-spotify-piracy-case-without-a-fight/
291•askl•14h ago•321 comments

Do you even need a database?

https://www.dbpro.app/blog/do-you-even-need-a-database
174•upmostly•10h ago•228 comments

Adaptional (YC S25) is hiring AI engineers

https://www.ycombinator.com/companies/adaptional/jobs/k7W6ge9-founding-engineer
1•acesohc•5h ago

Forcing an inversion of control on the SaaS stack

https://www.100x.bot/a/client-side-injection-inversion-of-control-saas
65•shardullavekar•5d ago•40 comments

Retrofitting JIT Compilers into C Interpreters

https://tratt.net/laurie/blog/2026/retrofitting_jit_compilers_into_c_interpreters.html
7•ltratt•10h ago•1 comments

The Gemini app is now on Mac

https://blog.google/innovation-and-ai/products/gemini-app/gemini-app-now-on-mac-os/
43•thm•5h ago•22 comments

How can I keep from singing?

https://blog.danieljanus.pl/singing/
24•nathell•1d ago•3 comments

CRISPR takes important step toward silencing Down syndrome’s extra chromosome

https://medicalxpress.com/news/2026-04-crispr-bold-silencing-syndrome-extra.html
45•amichail•6h ago•48 comments

One interface, every protocol

https://openbindings.com/blog/one-interface-every-protocol
12•clevengermatt•2h ago•3 comments

Show HN: Libretto – Making AI browser automations deterministic

https://github.com/saffron-health/libretto
72•muchael•6h ago•23 comments

Costasiella kuroshimae

https://en.wikipedia.org/wiki/Costasiella_kuroshimae
136•vinnyglennon•3d ago•51 comments

It's cool to care (2025)

https://alexwlchan.net/2025/cool-to-care/
3•surprisetalk•8h ago•0 comments

Kalshi CEO expects US DOJ to prosecute insider trading cases

https://www.semafor.com/article/04/15/2026/kalshi-ceo-tarek-mansour-expects-us-doj-to-prosecute-i...
102•thm•4h ago•107 comments

The Enigma of Gertrude Stein

https://www.thenation.com/article/culture/gertrude-stein-afterlife-wade-review/
4•samclemens•3d ago•1 comments