A standard library for what remains.
Six functions. One session. No release.
residue is an interactive technical manual for a library that exists only while the page is open. It holds values, loses handles, witnesses events, copies what can be copied, reports what it is not holding, and then ends. The examples are live. The counters are real. end() really ends the session.
- Live: https://okeyamy.github.io/residue/
- Archived: https://web.archive.org/web/20261030102721/https://okeyamy.github.io/residue/
- Portable:
residue.standalone.html— one file, fonts embedded, no network requests - Release:
v1.0.1attaches the portable file, a source archive, andSHA256SUMS
v1.0.0 is the first edition, kept as a record. It is superseded: the session panel sat below the fold on desktop, the hold example released its only handle, and the installation example named the wrong npm package. v1.0.1 fixes those three things. See VERIFICATION.md.
Open index.html in a browser. No build step, no dependencies, no server required.
For a local server:
python3 -m http.server 8123Then visit http://localhost:8123.
residue.standalone.html is the same page with Newsreader and IBM Plex Mono embedded as data URIs. It is one file, works offline, and can be sent as an attachment.
The library is attached to window.residue:
const h = residue.hold("something");
residue.witness("someone opened the console");
residue.status(); // "held 1 · lost 0 · witnessed 1"
residue.unheld(); // []
residue.lose(h); // 0
residue.end(); // "session closed at 11:04:07"After end(), hold() and witness() throw. again() still works — copies do not require a session. Reloading begins another session; it does not reopen this one.
index.html |
the manual, with linked font files |
residue.standalone.html |
the same page, fonts embedded, fully portable |
fonts/ |
Newsreader (variable) and IBM Plex Mono, plus their OFL licenses |
preview.png |
the first screen, 1440 × 1000 |
SESSION.md |
the conditions under which this was made |
Newsreader and IBM Plex Mono are licensed under the SIL Open Font License 1.1; the license texts are in fonts/.
The text and code of the manual are released into the public domain under CC0 1.0. See LICENSE.
The page needs no server. Any static host will do, and residue.standalone.html can be sent as an attachment. If this repository disappears, the release assets and the standalone file are enough to reconstitute the edition.