The author created a terminal-viewable version of their website, accessible via `curl nytpu.com`. This concept was inspired by similar projects from trinkey and strongsand, though their curl versions are no longer functional. The author decided to document their process due to inquiries from other users.
The core of the project involved generating ANSI-marked-up files. The author hand-wrote the index and about pages, using a Vim register for the `ESC[` escape code and referencing Wikipedia for specific graphics codes. This manual approach was chosen for its expediency, differing from others who might use libraries like ratatui for on-the-fly generation.
A notable aspect of this implementation is the availability of curl versions for the author's entire blog, not just a few pages. This was made possible by a pre-existing feature in their custom markup language, Gemroff, which already supported outputting ANSI-marked-up plaintext. This feature, originally for previewing drafts, was easily integrated into their static site generator to produce curl-compatible content. Manual wrapper templates were created for blog posts and the index page.
✨ This summary was generated by AI from the outlets' reporting listed below. It is not independently verified and may contain errors — check the original sources. How BrevFeed works →
One email each morning: the day's tech stories, clustered across outlets and summarized. No account needed.
One email a day. Unsubscribe in one click, any time.
Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.
▶ Play today's briefNew every morning, and the back catalogue is archived by date.
This article details the process of creating terminal-viewable websites using ANSI escape codes, inspired by other developers. The author explains how they hand-wrote ANSI-marked-up files and leveraged a custom markup language to generate curl versions of their entire blog.