Skip to content
Tech News
← Back to articles

Doom, Played over Curl

read original get Curl Command for Doom → more articles
Why This Matters

This innovative project demonstrates how classic games like DOOM can be played directly over HTTP using cURL, showcasing a novel way to stream interactive content in the terminal without traditional dependencies. It highlights the potential for lightweight, browser-agnostic gaming experiences and creative uses of HTTP streaming in the tech industry.

Key Takeaways

cURL DOOM

DOOM, played over curl .

HTTP server rendering DOOM frames into ANSI half-blocks, streamed to the terminal over HTTP with cURL.

No install, no dependencies except curl and bash .

Two ways to play

1. The friendly way: curl | bash

curl -sL http://localhost:3000 | bash

How does it work?

GET / is content-negotiated: a curl gets back play.sh with __SERVER__ rewritten to whichever host you fetched it from. The script runs the per-keystroke /tick loop, handles stty , the alternate screen, the cursor, and cleanup.

A browser hitting the same URL gets a tiny landing page that just shows the one-liner.

... continue reading