Project course · 12 units · Free
Onion Routing: Circuits and Local Relays
Build encrypted circuits, then run your client and relay protocol across four local Node processes.
Get the course on GitHubSupported route: terminal Observatory and process-lab only. No hosted Onion browser or listener is enabled.
- What you’ll learn
- Layered encryption, authenticated replies, replay handling, real process boundaries and recovery through simulated local IPC links.
- Your project
- Your own Observatory protocol and separate asynchronous client/relay implementation, with process-failure evidence.
- How you’ll work
- Twelve lessons, two Node projects and a static map. Use the terminal tools; TCP, multiple hosts and production anonymity are not qualified.
What you’ll build
- Implement the Observatory’s eight protocol functions across six lessons on layering, replies, replay, recovery and observer views.
- Build circuit provisioning and an asynchronous client/relay handler across four real Node processes with parent-routed IPC.
- Stop a relay, recover with fresh keys and preserve the source, failed attempts and terminal evidence for your final report.
Before you start
JavaScript ES modules, objects, async functions, exceptions and terminal use. Installed Node supplies crypto, process launching and IPC; you implement the circuit and protocol policies.
The terminal tools were tested with Node 26.5.1 and built-in crypto. The default route needs no installation, account, listener or external network. The processes are real; their parent-routed IPC links are simulated. TCP, multiple hosts and browser execution remain unqualified.
This is an educational model, not Tor or a production anonymity system. Four local processes share one trusted operator and simulated IPC routing; TCP, multiple hosts and independently administered relays have not been qualified. The browser workbench is not hosted here. Use the Node routes; browser, phone and accessibility behavior have not been qualified.
Run the course locally
Clone the learner source, then run these commands.
git clone https://github.com/itsHabib/free-to-learn.git
cd free-to-learn
git checkout edbb806728cade5595116af205bb890e8e3bd756
cd courses/onion-network-course/observatory
node tools/lab.mjs check 1
# Later, from the Observatory directory:
cd ../onion-process-lab
node tools/check.mjs 1Follow the course’s static 12-lesson map and root README. Complete the Observatory project before the separate process lab; preserve earlier folders and histories. The APIs differ, so no automatic source conversion or history migration is performed. Process experiments require manually preserving your source/output; their checks do not provide Observatory’s automatic attempt history.
The TODO starter should fail with useful diagnostics. Implement a step, run its checks and preserve the result before revising. The course folder contains the lessons, project contracts and self-review guidance.
Optional LLM help uses your own account and is advice, not correctness evidence. No staffed feedback is required. Passing checks covers their declared cases; learning gains and human completion times remain unmeasured.
Exact learner source
The commands above use learner edition edbb806728cade5595116af205bb890e8e3bd756. This static page does not run or grade code.