AWESOME-OS ENGINEERING BLOG
10 — Section + Intersection + Markdown: Executable Living OS Notebooks & Remote Docs
10 — Section + Intersection + Markdown: Executable Living OS Notebooks & Remote Docs
Anchored Code:
- PortableB8G-SECT-1Core:intersections/docs-reader/index.mts
- Dual-Transport CLI + External Remote Server (bin\b8g-docs.ps1):intersections/docs-reader/cli.host.mts
- Intersection Manual: intersections/docs-reader/README.md
1. The Superpower: Markdown + Section / Intersection
Traditional operating systems separate documentation (dead static .md/manpages that immediately go stale), notebooks (heavy Python/Jupyter/Electron stacks), and runtime state (opaque processes).
In Awesome-OS, DocsReaderIntersection fuses all three into one zero-dependency B8G-SECT-1 Intersection (DocsReaderSection + DisplaySection + InputEventSection + TelemetrySection):
- Cold-Indexed Discovery (
0eager hydration): Automatically indexesdocs/AWESOME-OS-CHEATSHEET.md, Blog Entries#01–#10, Intersection READMEs, and StealifyLang specs. - Internal Console TUI (
bin\b8g-docs.ps1): Pure ANSI/VT100 interactive reader with keyboard navigation (↑/↓,Enter,b,q), syntax-colored headings/code/tables, and highlighted full-text search — works locally and over SSH. - External Remote Portal (
bin\b8g-docs.ps1 serve): Exposes the exact same cold index over HTTP to remote browsers (/), remote consoles (curl http://<host>:8787/ansi/10), remote agents (/api/docs,/raw/:id), and remote notebook cell execution (POST /api/docs/:id/run/:idx). - Executable Markdown Notebook Cells (
parseMarkdownNotebookCells): Every fencedjs/ts/b8gblock inside a Markdown document is parsed as a runnable cell you can execute directly from the console (bin\b8g-docs.ps1 run 10) or remotely over HTTP.
2. Live Runnable Cell Inside This Blog Post
Try running this post itself right from your terminal with .\bin\b8g-docs.ps1 run 10:
const transports = ['internal-console-tui', 'remote-http-html', 'remote-ansi-stream', 'dev-catalog-sab'];
console.log('Awesome-OS Blog #10 live cell executed!');
console.log('Active transports (' + transports.length + '): ' + transports.join(' | '));
({ blog: 10, executable: true, transports: transports.length });
3. Quick Commands
.\bin\b8g-docs.ps1 # interactive internal console TUI
.\bin\b8g-docs.ps1 list # list all indexed OS docs
.\bin\b8g-docs.ps1 open 10 # read this post in ANSI/VT100
.\bin\b8g-docs.ps1 run 10 # execute the live JS cell above!
.\bin\b8g-docs.ps1 serve --host 0.0.0.0 --port 8787 # serve to external remotes