Repository navigation
Repository Layout
German Martinez edited this page Nov 21, 2026
·
6 revisions
Every tracked top-level entry at the pinned commit, then every package under internal/. Local-only directories (bin/, crawl/, ci-logs/, _site/, dist-py/, …) are ignored by git and not listed.
| Path | What it holds |
|---|---|
cmd/ |
The two binaries: omnisnap (the product; main calls cli.Main) and omnisnap-lab (ground-truth tooling, never released). |
internal/ |
All Go code of the product, one package per module (below). |
assets/ |
Files embedded in the binary: inject/ (the JavaScript run in the page: stabilize.js, extract.js, probes.js, with SHA256SUMS) and model/ (the tree model gbdt.txt, its metadata, and the fingerprints.json novelty table). |
schema/ |
The public JSON Schemas: job, capture, host, progress, summary. Published at omnisnap.org/schema/…. |
action/ |
The composite GitHub Action (action.yml), its Linux engine setup script and its README. |
packages/ |
The npm packages (omnisnap and five @omnisnap/<os>-<arch> platform packages) and the PyPI package. |
tools/ |
Release tooling (release/: binaries, staging, wheels.py), the schema site builder (site/build.py), the Safari smoke test (smoke/), and the model trainer (train.py). |
test/ |
Tests that need real browsers or a built binary: e2e/ (planted pages, geometry parity, audit, appearance) and wrappers/ (the npm and PyPI packages, installed fresh, on the planted suite). |
testdata/ |
Fixtures: planted pages and their expectations, golden captures from the spike, recorded driver transcripts, discovery fixtures per OS, schema examples (valid and invalid), install fixtures (a fake Firefox and signed sums), the model parity fixture, viewer summaries. |
specs/ |
The capability map, the conventions, and one spec per module. Normative. |
tasks/ |
plan.md (architecture decisions and phase order), todo.md (every task with acceptance criteria and verification), backlog.md (problems not planned yet). |
docs/ |
User docs (quick start, Action setup, fork comments), the ideas/ one-pager, and the status note of 2026-11-19. |
spikes/layout-diff/ |
The Node.js spike the Go port reproduces. Its outputs are the golden fixtures; its features define the model's vector. Not built or shipped. |
openspec/ |
OpenSpec configuration and change proposals (planning artifacts). |
src/worker.js, wrangler.json
|
The Cloudflare Worker that serves the schema site at omnisnap.org. |
.github/ |
Workflows, issue templates, and the fork workflow template. |
.agents/, .claude/, AGENTS.md, CLAUDE.md, skills-lock.json
|
Configuration for coding agents. |
.golangci.yml, .gitattributes, .gitignore, go.mod, go.sum
|
Lint, git and module configuration. go.mod also retracts withdrawn release candidates. |
README.md, CONTRIBUTING.md, CODE_OF_CONDUCT.md, LICENSE.txt, THIRD-PARTY-NOTICES.md
|
The usual project files. The license is AGPL-3.0-or-later. |
| Package | Module | One line |
|---|---|---|
appearance |
appearance-diff |
SSIM on graphics crops and ink agreement: what geometry cannot see. |
branded |
branded |
Warmed template profiles, blocked hosts, and their attribution to causes. |
capture |
capture |
One page in every engine: lanes, runs, probes, retries, files. |
cli |
cli |
The command line: parsing, the job, orchestration, progress, the bundle. |
discovery |
discovery |
Installed browsers per OS, without launching them. |
domaudit |
dom-audit |
Single-engine anomalies on one capture. |
drivers |
drivers |
One interface over three protocols: cdp, bidi, classic; wsrpc is the shared WebSocket JSON-RPC client, replaytest replays recorded transcripts in tests. |
fsutil |
— | File helpers shared by the modules that write the bundle. |
groundtruth |
ground-truth |
The planted server, expectations, crawl list, mutation, dataset, gates. |
install |
install |
omnisnap install firefox: download, verify, unpack, uninstall. |
layoutdiff |
layout-diff |
Matching, deltas, root causes, tables, intent, warnings. |
merge |
merge |
Several machines' bundles into one. |
pipeline |
— | The analysis half for one page pair; writes findings.json. |
process |
process |
Starting browsers isolated and never leaving one behind. |
schema |
bundle-schema |
Go types of every public contract, and their validation. |
testutil |
— | Test helpers. |
triage |
triage |
KB, consequences, tier, evidence (in evidence/), model score, grouping. |
viewer |
viewer |
report.html from a summary: template, script and style, embedded. |
This wiki is published from docs/internals/ on main. Edits made here are overwritten on the next publish: change the pages there, in a pull request. The specs are normative; where a page and a spec disagree, the page says what the code does.
Start
Contracts
Capture side
Analysis side
Output
Quality