---
title: "glance: design · glance"
description: "glance is an accessibility-rule engine whose rules run in Rust compiled to wasm32-unknown-unknown, over a snapshot of the page read in one pass. Its public…"
canonical: "https://glance.avarok.net/docs/design/"
lastmod: "2026-11-30T15:31:10Z"
tokens: 890
---

1. [Docs](https://glance.avarok.net/docs/)

# glance: design

@avarok/glance@0.1.0·Updated 2026-11-30·1 min read·[View as markdown](https://glance.avarok.net/docs/design/index.md)

glance is an accessibility-rule engine whose rules run in Rust compiled to `wasm32-unknown-unknown`, over a snapshot of the page read in one pass. Its public interface follows axe-core **4.14.1**; docs/COMPAT.md lists what is implemented and every difference. It is written clean-room: the specification in [spec/](https://github.com/Avarok-Cybersecurity/glance/blob/HEAD/docs/spec/00-index.md) was produced from public documentation, W3C standards and black-box behaviour, and the implementation was written from that specification.

Behaviour differences: [COMPAT.md](https://glance.avarok.net/docs/compat/).

## Chapters

1. [The interface glance matches](https://glance.avarok.net/docs/design/01-interface/)
2. [Architecture](https://glance.avarok.net/docs/design/02-architecture/): collector, core, API layer, builds.
3. [Where the speed comes from](https://glance.avarok.net/docs/design/03-speed/): mechanism, predicted numbers, risks.
4. [Proof plan](https://glance.avarok.net/docs/design/04-proof/): ACT test cases, the differential suite, the reference's fixtures run from CI, Rust tests, negative controls.
5. [Phased plan](https://glance.avarok.net/docs/design/05-plan/)
6. [Where the reference spends its time](https://glance.avarok.net/docs/design/06-reference-profile/): the black-box profile behind the decision to start.
7. [Benchmark method](https://glance.avarok.net/docs/design/07-bench/)
8. [Module contracts](https://glance.avarok.net/docs/design/08-core-contract/): layout, snapshot, Host, facts, rules, results, rules.json.
9. [Live in-browser comparison](https://glance.avarok.net/docs/design/09-live-demo/): the site's demo plan.

## Decisions in one place

- Reference: axe-core 4.14.1. MVP: the 70 rules tagged wcag2a, wcag2aa, wcag21a, wcag21aa or wcag22aa.
- One in-page walk builds the snapshot; everything else is read lazily through the Host trait and memoised, so no fact is fetched twice.
- The core is pure Rust (`no_std` + `alloc`); the browser is behind one trait.
- Colour contrast composes backgrounds from the snapshot and hit-tests only overlapping runs.
- rules.json is the single source for rule metadata and messages.
- Unimplemented rules are absent, never reported as passing.

```json
{
  "@context": "https://schema.org",
  "@graph": [
    {
      "@id": "https://thomaspbraun.com/#person",
      "@type": "Person",
      "name": "Thomas Braun",
      "sameAs": [
        "https://github.com/tbraun96",
        "https://x.com/tbraun96"
      ],
      "url": "https://thomaspbraun.com",
      "worksFor": {
        "@type": "Organization",
        "name": "Avarok",
        "url": "https://avarok.net"
      }
    },
    {
      "@id": "https://glance.avarok.net/docs/design/",
      "@type": "WebPage",
      "author": {
        "@id": "https://thomaspbraun.com/#person"
      },
      "dateModified": "2026-11-30T15:31:10Z",
      "description": "glance is an accessibility-rule engine whose rules run in Rust compiled to wasm32-unknown-unknown, over a snapshot of the page read in one pass. Its public…",
      "inLanguage": "en",
      "isPartOf": {
        "@id": "https://glance.avarok.net/#website",
        "@type": "WebSite",
        "name": "glance",
        "url": "https://glance.avarok.net/"
      },
      "name": "glance: design · glance",
      "url": "https://glance.avarok.net/docs/design/"
    }
  ]
}
```
