Skip to content

Repository Layout

github-actions[bot] edited this page Nov 28, 2026 · 6 revisions

Repository layout

Every tracked top-level entry on main, then every package under internal/. Local-only directories (bin/, crawl/, ci-logs/, _site/, dist-py/, …) are ignored by git and not listed.

Top level

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 site builder for omnisnap.org (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) wrappers/ (the npm and PyPI packages, installed fresh, on the planted suite) and internals/ (the checks on this wiki).
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 logo the README shows (logo.svg), the ideas/ one-pager, the status note of 2026-11-19, and internals/, this wiki's pages.
scripts/ publish-wiki.sh, which mirrors docs/internals/ into the GitHub Wiki.
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).
site/, src/worker.js, wrangler.json The website at omnisnap.org: the landing page and stylesheet, and the Cloudflare Worker that serves the site tools/site/build.py builds.
.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.

internal/

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.
selector layout-diff The CSS selector that names an element in causes and DOM audit findings.
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.

Source files

Clone this wiki locally