Skip to main content

Newspapper

Newspapper turns a story into an Instagram-style slide post: a set of 1080×1080 JPEGs plus a caption, ready to upload.

You write the post yourself, as a Newspapper Wizard (.wzd) document, in a split-screen editor — source on one side, the live 1080 canvas on the other. The app compiles it and screenshots each slide in headless Chromium.

.wzd document → compile → HTML → Chromium → 1080² JPEGs → publish / ZIP
Runs at
/newspapper on the estate's single origin
Made of
Three workspaces — core/, api/, ui/
Renders with
Headless Chromium, screenshotting a real DOM at 1080²
RSS is
A library of source material to write from — not a pipeline that produces a post
Identity
Ward, since the loopback premise was retired
The compile step is the interesting one — it produces a real DOM, and the screenshot is taken of that rather than of a canvas drawn by hand — open full screen, where search, tracing and the guided views are usable.

This site is almost entirely rendered, on purpose​

Newspapper's corpus already carries api.md, data.md, architecture.md, modules.md, configuration.md, commands.md and markup.md — every maintained wiki page, including the reference material a docs site would normally author for itself.

Restating any of it here would create a second copy to keep in step with the first, and the second copy always loses. So this page is the only authored one; everything else in the sidebar is rendered from corpus/ on every build and carries a banner saying so, or is generated by TypeDoc from @newspapper/core.

The one thing worth reading first​

Green because nothing ran.

It is the page that says which parts of this system have actually been executed and which have only ever type-checked. A test suite that is green because it never reached the code is the failure mode this project chose to write down rather than discover later, and it is the honest starting point for anyone picking the repo up.

The security premise changed​

Newspapper was designed for loopback, single-user — and every one of its security calls said so explicitly, including the note that the assumption was the first thing to revisit if it were ever exposed.

That moment arrived: it is going to the VPS, on the shared origin, behind Ward. Three of its original calls met real internet traffic — a public /uploads/*, a non-revocable 30-day cookie, and an IP-keyed lockout.

The /uploads/* exposure was closed by intercepting the request rather than authorising it: the render context already served fonts from disk, so the same mechanism removes the image request instead of granting it a credential. No new bearer token exists — no lifetime, no signing key, no leak path, no revocation story.

See decisions-security.md.

Where to go next​

If you want toRead
Understand the shapeOverview · Architecture
Write a postThe .wzd markup
Call the APIHTTP API
Change how a slide looksDesign §1–§4 · §5–§9
Know what actually runsGreen because nothing ran