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.

Pages the preview serves.
FileRole
index.htmlHomepage
automation.htmlLab
cybersecurity.htmlLab
biohacking.htmlLab
quantitative.htmlLab
legal.htmlLab
engineering.htmlLab
commerce.htmlLab
real-estate.htmlLab
perfumery.htmlLab
sound.htmlLab
decisions.htmlLab
logistics.htmlLab
colophon.htmlThis page
methods.htmlShared methods
folio.htmlThe 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

Latest recorded run, 24 November 2026. Copied from the dated record in the repository.
SuitePassing groups
Automation, with browser47 + 3
Cybersecurity, with browser44 + 2
Biology, with browser33 + 17
Legal, with browser55 + 4
Engineering, with browser26 + 9
Quant, with browser29 + 8
Commerce, with browser20 + 6
Property, with browser34 + 23
Perfumery, with browser47 + 7
Sound, with browser32 + 6
Decisions, with browser37 + 7
Logistics, with browser34 + 7
Independent business oracles10
Business browser integration9
Responsive portfolio, sixteen routes21
Existing systems browser integration11
Shared polish browser suite, sixteen routes22
Colophon9
Method atlas11
Computed plates8
Static build13
Preserved earlier engines8
Preserved archive browser suite20
QA schema2
QA privacy3
QA claims4
QA accessibility3
QA publication2
QA browser57
Showcase11
Research briefs13
Resume preview1
Claims ledger4
Project catalog3
Wave 3 engineer9
Wave 3 research1
Wave 3 content1
Wave 3 design3
Wave 4 gate1