How this site is built
I keep this site as plain HTML, CSS and JavaScript files. There is no framework, no build step and nothing to install: the files in the repository are the files your browser loads.
What it is made of
Each lab is one page, one stylesheet, one engine and one interface script. The engine does the arithmetic. The interface only shows what the engine returns, which means the same engine can be run and checked outside the browser.
Many labs use the same techniques. All shared methods lists each one, the labs that use it and where each lab describes it.
Headings and essays are set in Georgia, the interface in your system's sans serif, and numbers and code in its monospace. No fonts are downloaded. The navigation between labs is one small script, site-shell.js.
Everything runs in your browser
Every lab computes on your own machine. Nothing you type is uploaded, kept in the browser or sent to a model or any other service. Your edits disappear when you reload, and a file is saved only when you press an export button.
The examples in the labs are made up. When a result matches its example, that shows the software works as described. It is not a measured outcome, a client result or scientific, clinical, legal or financial validation.
Running the tests
Every lab has its own tests. From the repository root, with Node.js 22 or newer and nothing else installed, these three commands check the whole site:
node _scripts/test-rehan-all.mjs . node _scripts/test-rehan-all.mjs . --engines node _scripts/audit-rehan-accessibility.mjs . --contrast-only
The first runs everything, including a real browser (Edge, Chrome or Chromium, found automatically or named with RV_BROWSER) working through each lab in a temporary profile. The second runs only the numerical and file checks and names the browser checks it skipped. The third measures the contrast of the text on every page.
Technical details: served files, security policy and the last recorded test run
Served files
The local preview listens on this machine only and answers GET and HEAD. It serves a file only when its name is on a short list; everything else in the repository is refused.
| File | Role |
|---|---|
| index.html | Homepage |
| automation.html | Lab |
| cybersecurity.html | Lab |
| biohacking.html | Lab |
| quantitative.html | Lab |
| legal.html | Lab |
| engineering.html | Lab |
| commerce.html | Lab |
| real-estate.html | Lab |
| perfumery.html | Lab |
| sound.html | Lab |
| decisions.html | Lab |
| logistics.html | Lab |
| colophon.html | This page |
| methods.html | Shared methods |
| folio.html | The plates |
Stylesheets, engines and interface scripts are on the same list. The preview also serves the résumé at /resume/, which reads projects.json from the same origin.
- Repository notes, including README.md, are not served.
- The preserved earlier prototype, experiments-v1.html, is not served.
- A path that leaves the site folder is refused.
- Test files are not served.
Any method other than GET or HEAD is refused. favicon.ico is an empty response.
Security policy
Every response is sent with no-store caching, a noindex robots tag, a nosniff type option and this Content-Security-Policy:
default-src 'self'; img-src 'self' data: blob:; style-src 'self' 'unsafe-inline'; script-src 'self'; worker-src 'self'; connect-src 'self'; object-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'
Where each method is written
The last recorded test run
| Suite | Passing groups |
|---|---|
| Automation, with browser | 47 + 3 |
| Cybersecurity, with browser | 44 + 2 |
| Biology, with browser | 33 + 17 |
| Legal, with browser | 55 + 4 |
| Engineering, with browser | 26 + 9 |
| Quant, with browser | 29 + 8 |
| Commerce, with browser | 20 + 6 |
| Property, with browser | 34 + 23 |
| Perfumery, with browser | 47 + 7 |
| Sound, with browser | 32 + 6 |
| Decisions, with browser | 37 + 7 |
| Logistics, with browser | 34 + 7 |
| Independent business oracles | 10 |
| Business browser integration | 9 |
| Responsive portfolio, sixteen routes | 21 |
| Existing systems browser integration | 11 |
| Shared polish browser suite, sixteen routes | 22 |
| Colophon | 9 |
| Method atlas | 11 |
| Computed plates | 8 |
| Static build | 13 |
| Preserved earlier engines | 8 |
| Preserved archive browser suite | 20 |
| QA schema | 2 |
| QA privacy | 3 |
| QA claims | 4 |
| QA accessibility | 3 |
| QA publication | 2 |
| QA browser | 57 |
| Showcase | 11 |
| Research briefs | 13 |
| Resume preview | 1 |
| Claims ledger | 4 |
| Project catalog | 3 |
| Wave 3 engineer | 9 |
| Wave 3 research | 1 |
| Wave 3 content | 1 |
| Wave 3 design | 3 |
| Wave 4 gate | 1 |