{"id":47768562,"url":"https://github.com/averspec/aver","last_synced_at":"2026-04-03T08:02:33.138Z","repository":{"id":344496968,"uuid":"1152317725","full_name":"AverSpec/aver","owner":"AverSpec","description":"Domain-driven acceptance testing for TypeScript","archived":false,"fork":false,"pushed_at":"2026-04-02T14:38:33.000Z","size":2046,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-03T02:52:41.205Z","etag":null,"topics":["acceptance-testing","bdd","observability","testing","typescript","vitest"],"latest_commit_sha":null,"homepage":"https://averspec.dev","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AverSpec.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-02-07T17:41:51.000Z","updated_at":"2026-04-02T14:04:19.000Z","dependencies_parsed_at":"2026-03-15T11:06:23.927Z","dependency_job_id":null,"html_url":"https://github.com/AverSpec/aver","commit_stats":null,"previous_names":["averspec/aver"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AverSpec/aver","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AverSpec%2Faver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AverSpec%2Faver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AverSpec%2Faver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AverSpec%2Faver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AverSpec","download_url":"https://codeload.github.com/AverSpec/aver/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AverSpec%2Faver/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31342729,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-03T06:57:30.245Z","status":"ssl_error","status_checked_at":"2026-04-03T06:57:29.849Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["acceptance-testing","bdd","observability","testing","typescript","vitest"],"created_at":"2026-04-03T08:02:31.817Z","updated_at":"2026-04-03T08:02:33.133Z","avatar_url":"https://github.com/AverSpec.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Know your system works.\n\n[![CI](https://github.com/averspec/aver/actions/workflows/ci.yml/badge.svg)](https://github.com/averspec/aver/actions/workflows/ci.yml)\n[![npm version](https://img.shields.io/npm/v/@averspec/core)](https://www.npmjs.com/package/@averspec/core)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\n\u003e **Early release.** Aver is functional and tested but pre-1.0. APIs may change between minor versions.\n\n**Domain-driven acceptance testing for TypeScript.**\nDescribe what your system does. Prove it at every level.\n\n```typescript\nconst { test } = suite(taskBoard)\n\ntest('move task through workflow', async ({ given, when, then }) =\u003e {\n  await given.createTask({ title: 'Fix login bug' })\n  await when.moveTask({ title: 'Fix login bug', status: 'in-progress' })\n  await then.taskInStatus({ title: 'Fix login bug', status: 'in-progress' })\n})\n```\n\n```\n ✓ move task through workflow [unit]          1ms\n ✓ move task through workflow [http]         12ms\n ✓ move task through workflow [playwright]  280ms\n```\n\n## The path\n\n**Lock in what exists.** Start with characterization tests that capture your system's current behavior. No domain model needed yet — just prove what's already true.\n\n**Name the behaviors.** Extract a domain vocabulary — actions, queries, assertions in business language. The domain is the stable center; tests speak only domain language.\n\n**Prove it at every level.** Write the test once. Bind it to adapters — in-memory, HTTP, browser. Same scenario, same assertions, different fidelity. OTel verification closes the loop: declare expected telemetry on domain operations, and the framework proves not just that spans exist, but that the relationships between them are intact — same trace, correct attributes, causal connections preserved.\n\n```\nDomain (what)  →  Adapter (how)  →  Test (verify)\n```\n\nFive domain operations support fifty tests. Vocabulary grows slowly, scenarios grow fast.\n\n## Quick Start\n\n```bash\nnpm install --save-dev @averspec/core vitest\nnpx aver init\nnpx aver run\n```\n\n## Documentation\n\n- **[Tutorial: Legacy Code](docs/tutorial.md)** — From untested code to multi-adapter tests\n- **[Tutorial: Greenfield](docs/tutorial-greenfield.md)** — Build a domain from scratch\n- **[Tutorial: Telemetry](docs/tutorial-telemetry.md)** — Verify observability contracts alongside behavior\n- **[Architecture](docs/architecture.md)** — Three-layer model, design decisions, economics\n- **[Getting Started](docs/guides/getting-started.md)** — Install, scaffold, configure\n- **[Guides](docs/guides/)** — Multi-adapter, telemetry, CI, AI-assisted testing\n\n## When to use Aver\n\n- **Multiple adapters** — unit, HTTP, and browser tests share the same scenario\n- **Acceptance-level verification** — behavior tests, not low-level unit logic\n- **Shared vocabulary** — product and engineering need a common language for behavior\n- **Observability matters** — you want to prove telemetry is structurally correct\n\n## When NOT to use Aver\n\n- **Pure unit tests** — a plain Vitest test is simpler for isolated functions\n- **Prototypes or throwaway code** — the domain/adapter payoff needs time to compound\n- **Single deployment target** — no HTTP or browser adapter means domain overhead without multi-adapter benefit\n- **Trivial CRUD** — if the domain vocabulary would mirror the database schema, there's nothing to abstract\n\n## Packages\n\n| Package | Description |\n|---------|-------------|\n| [`@averspec/core`](packages/core) | Domains, adapters, suite, CLI. Zero runtime deps. |\n| [`@averspec/approvals`](packages/approvals) | Approval testing — structural diffs, visual screenshots |\n| [`@averspec/telemetry`](packages/telemetry) | Dev-to-prod telemetry verification — contract extraction and conformance checking |\n| [`@averspec/protocol-http`](packages/protocol-http) | HTTP protocol adapter |\n| [`@averspec/protocol-playwright`](packages/protocol-playwright) | Playwright browser protocol adapter |\n| [`@averspec/agent-plugin`](packages/agent-plugin) | Claude Code plugin — workflow and telemetry skills |\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faverspec%2Faver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faverspec%2Faver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faverspec%2Faver/lists"}