Make a reader
A Tersenet reader is any program that shows Tersenet articles to a person. An article is a plain text file that already reads well as it is; a reader shows it a little better, with headings that stand out and paragraphs wrapped to the window, and fetches articles and feeds from relays, checking that each is genuine. It needs no virtual machine: articles and the network are the whole of Tersenet's reading side.
This guide builds a small reader in three steps, each a complete program you can run:
- Step 1: show an article from a file, its headings and paragraphs.
- Step 2: fetch an article from a relay by its ID, and check its hash.
- Step 3: follow a feed: list its entries, check their signatures, open one.
The programs are in the Tersenet sources, in examples/reader, in Go and in Rust. Each step is a page or two of code, with a well-known library for each of WebSocket, BLAKE3 and Ed25519. Pick a language:
These programs are a start, not a whole reader: each page says what its program leaves out and where the complete readers do it.