Repository navigation
Home
Omnisnap captures a page in every browser engine installed on the machine (Blink, Gecko, WebKit), compares the layout of every element against a Chrome baseline, and writes a self-contained report: which element changed, why, whether anyone would see it, and which engine is the odd one out.
This wiki explains how it works inside: how the pieces fit, what each module does with its input, where the code lives, and how to change it. It is for people who work on Omnisnap, not for people who use it.
| You want… | Read |
|---|---|
| To install and use Omnisnap | README, quick start, Action setup |
| What a module must do (requirements, thresholds, success criteria) | The module's spec in specs/. Specs are normative. |
| How a module does it, and how the modules fit | This wiki |
| What was decided, measured, and what is left |
tasks/plan.md, tasks/todo.md, tasks/backlog.md, docs/status-2026-11-19.md
|
| How to contribute (issues, PRs, rules) | CONTRIBUTING.md |
- Architecture: one URL's path from discovery to the report, and the module graph.
- Data contracts: the files that pass between the modules. Everything else reads or writes these.
- The module pages, in pipeline order (sidebar). Each one has the same sections: role, inputs and outputs, how it works, key files and types, failure handling, tests, where the code differs from the spec, and the spec.
- Extending Omnisnap when you are about to change something.
The Glossary defines the words the pages use (cause, consequence, tier, probe, lane…).
-
The pages live in the repository, in
docs/internals/, and change in the same pull request as the code they describe. The wiki workflow mirrors them into the GitHub Wiki on every push tomainthat changes them. Never edit the wiki on GitHub: the next publish overwrites it. -
The rule: a change updates, in the same change, every page that describes what it touched. To find them, search for the path you changed:
grep -rl 'internal/merge/merge.go' docs/internals/. Every page except this one and the Glossary ends with a## Source fileslist, so the search finds the pages that explain a file. -
The check:
go test ./test/internals/(part ofgo test ./..., so CI runs it on every pull request). It fails when a linked file or directory no longer exists, when a code link points anywhere butmainor carries a line anchor, when a non-test Go file undercmd/,internal/,tools/orassets/(or a top-level item of.github/workflows/,action/,packages/,schema/,scripts/,test/ortools/) is named by no page, when a link between pages or to a heading is broken, and when a page is missing from the sidebar (Testing and CI). It cannot tell whether the prose is still true: that is the rule, and the reviewer's job. - A statement here comes from reading the code. Where the code and a spec disagree, the page says so under "Where the code differs from the spec".
- One file per page in
docs/internals/, named as the wiki names it (Title-With-Hyphens.md; the first line is# Title with hyphens).Home.mdis the landing page;_Sidebar.mdand_Footer.mdare the sidebar and footer. A new page gets a line in_Sidebar.md. - Links between pages are relative:
[text](Page-Name)or[text](Page-Name#heading-anchor), with GitHub's anchor rule (lower case; drop everything but letters, digits, spaces,-and_; spaces become-). - Code links are full URLs to
main:https://github.com/GerMP21/Omnisnap/blob/main/<path>for files,…/tree/main/<path>for directories. No line anchors: they drift asmainchanges, so name the function in the link text instead. - A final
## Source fileslist, one line per path with what the page uses it for, and no##heading after it. - Diagrams are Mermaid, which GitHub renders in wikis and in Markdown files (creating diagrams).
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