# allure-framework/allure-js architecture

> Architecture diagram of the GitHub repository allure-framework/allure-js, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/allure-framework/allure-js
- Repository: https://github.com/allure-framework/allure-js

## Overview

This monorepo provides Allure reporting integrations for JavaScript test frameworks and API tools, plus a shared runtime and reporter SDK. The principal workflow is a test run through its framework-specific integration, into shared result-writing facilities, producing allure-results for an Allure report generator. The README documents the common output and capabilities; sampled source confirms several reporter/runtime implementations. Links between unsampled integrations and the shared layer reflect README-level documentation, not inspected call sites.

Main entry points: [`packages/allure-js-commons/src/facade.ts`](https://github.com/allure-framework/allure-js/blob/main/packages/allure-js-commons/src/facade.ts) (Runtime API), [`packages/allure-js-commons/src/sdk/reporter/ReporterRuntime.ts`](https://github.com/allure-framework/allure-js/blob/main/packages/allure-js-commons/src/sdk/reporter/ReporterRuntime.ts) (Reporter SDK), [`packages/allure-ava/src`](https://github.com/allure-framework/allure-js/tree/main/packages/allure-ava/src) (AVA), [`packages/allure-bun/src/wrappers.ts`](https://github.com/allure-framework/allure-js/blob/main/packages/allure-bun/src/wrappers.ts) (Bun)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_test_integrations["Test integrations"]
  node_ava["AVA"]
  node_bun["Bun<br/>[wrappers.ts]"]
  node_codecept["CodeceptJS<br/>[reporter.ts]"]
  node_cucumber["CucumberJS<br/>[reporter.ts]"]
  node_cypress["Cypress<br/>[runtime.ts]"]
  node_jasmine["Jasmine<br/>[index.ts]"]
  node_jest["Jest"]
  node_mocha["Mocha"]
  node_node_test["Node test<br/>[reporter.ts]"]
  node_playwright["Playwright<br/>[index.ts]"]
  node_testcafe["TestCafe<br/>[reporter.ts]"]
  node_vitest["Vitest<br/>[runtime.ts]"]
end

subgraph group_api_integrations["API integrations"]
  node_axios["Axios<br/>[index.ts]"]
  node_fetch["Fetch<br/>[index.ts]"]
  node_newman["Newman<br/>[index.ts]"]
  node_chai["Chai<br/>[index.ts]"]
end

subgraph group_shared_sdk["Shared SDK"]
  node_commons_runtime["Runtime API<br/>[facade.ts]"]
  node_reporter_sdk["Reporter SDK<br/>[ReporterRuntime.ts]"]
  node_file_writer["Result writer"]
end

subgraph group_results_reporting["Results and reporting"]
  node_result_files["allure-results"]
  node_report_generator["Allure generator"]
end

node_test_author(("Test author"))

node_test_author -->|"runs tests"| node_ava
node_test_author -->|"runs tests"| node_bun
node_test_author -->|"runs tests"| node_codecept
node_test_author -->|"runs tests"| node_cucumber
node_test_author -->|"runs tests"| node_cypress
node_test_author -->|"runs tests"| node_jasmine
node_test_author -->|"runs tests"| node_jest
node_test_author -->|"runs tests"| node_mocha
node_test_author -->|"runs tests"| node_node_test
node_test_author -->|"runs tests"| node_playwright
node_test_author -->|"runs tests"| node_testcafe
node_test_author -->|"runs tests"| node_vitest
node_test_author -->|"uses client"| node_axios
node_test_author -->|"uses client"| node_fetch
node_test_author -->|"runs collection"| node_newman
node_test_author -->|"uses assertions"| node_chai
node_ava -.->|"uses shared API"| node_commons_runtime
node_bun -->|"uses shared API"| node_commons_runtime
node_codecept -.->|"uses shared API"| node_commons_runtime
node_cucumber -->|"records results"| node_reporter_sdk
node_cypress -.->|"uses shared API"| node_commons_runtime
node_jasmine -->|"records results"| node_reporter_sdk
node_jest -.->|"uses shared API"| node_commons_runtime
node_mocha -->|"records results"| node_reporter_sdk
node_node_test -->|"records results"| node_reporter_sdk
node_playwright -.->|"uses shared API"| node_commons_runtime
node_testcafe -->|"records results"| node_reporter_sdk
node_vitest -.->|"uses shared API"| node_commons_runtime
node_axios -.->|"uses shared API"| node_commons_runtime
node_fetch -.->|"uses shared API"| node_commons_runtime
node_newman -->|"records results"| node_reporter_sdk
node_chai -.->|"uses shared API"| node_commons_runtime
node_commons_runtime -.->|"feeds reporting"| node_reporter_sdk
node_reporter_sdk -->|"resolves writer"| node_file_writer
node_file_writer -.->|"writes files"| node_result_files
node_result_files -->|"generates report"| node_report_generator

click node_ava "https://github.com/allure-framework/allure-js/tree/main/packages/allure-ava/src"
click node_bun "https://github.com/allure-framework/allure-js/blob/main/packages/allure-bun/src/wrappers.ts"
click node_codecept "https://github.com/allure-framework/allure-js/blob/main/packages/allure-codeceptjs/src/reporter.ts"
click node_cucumber "https://github.com/allure-framework/allure-js/blob/main/packages/allure-cucumberjs/src/reporter.ts"
click node_cypress "https://github.com/allure-framework/allure-js/blob/main/packages/allure-cypress/src/browser/runtime.ts"
click node_jasmine "https://github.com/allure-framework/allure-js/blob/main/packages/allure-jasmine/src/index.ts"
click node_jest "https://github.com/allure-framework/allure-js/blob/main/packages/allure-jest/src/environmentFactory.ts"
click node_mocha "https://github.com/allure-framework/allure-js/blob/main/packages/allure-mocha/src/AllureMochaReporter.ts"
click node_node_test "https://github.com/allure-framework/allure-js/blob/main/packages/allure-node-test/src/reporter.ts"
click node_playwright "https://github.com/allure-framework/allure-js/blob/main/packages/allure-playwright/src/index.ts"
click node_testcafe "https://github.com/allure-framework/allure-js/blob/main/packages/testcafe-reporter-allure/src/reporter.ts"
click node_vitest "https://github.com/allure-framework/allure-js/blob/main/packages/allure-vitest/src/runtime.ts"
click node_axios "https://github.com/allure-framework/allure-js/blob/main/packages/allure-axios/src/index.ts"
click node_fetch "https://github.com/allure-framework/allure-js/blob/main/packages/allure-fetch/src/index.ts"
click node_newman "https://github.com/allure-framework/allure-js/blob/main/packages/newman-reporter-allure/src/index.ts"
click node_chai "https://github.com/allure-framework/allure-js/blob/main/packages/allure-chai/src/index.ts"
click node_commons_runtime "https://github.com/allure-framework/allure-js/blob/main/packages/allure-js-commons/src/facade.ts"
click node_reporter_sdk "https://github.com/allure-framework/allure-js/blob/main/packages/allure-js-commons/src/sdk/reporter/ReporterRuntime.ts"
click node_file_writer "https://github.com/allure-framework/allure-js/blob/main/packages/allure-js-commons/src/sdk/reporter/writer/FileSystemWriter.ts"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_ava,node_bun,node_codecept,node_cucumber,node_cypress,node_jasmine,node_jest,node_mocha,node_node_test,node_playwright,node_testcafe,node_vitest toneBlue
class node_axios,node_fetch,node_newman,node_chai toneAmber
class node_commons_runtime,node_reporter_sdk,node_file_writer toneMint
class node_result_files,node_report_generator toneRose
class node_test_author toneIndigo
```

## Components

### Test integrations

- [AVA](https://github.com/allure-framework/allure-js/tree/main/packages/allure-ava/src): `packages/allure-ava/src`
- [Bun](https://github.com/allure-framework/allure-js/blob/main/packages/allure-bun/src/wrappers.ts): `packages/allure-bun/src/wrappers.ts`
- [CodeceptJS](https://github.com/allure-framework/allure-js/blob/main/packages/allure-codeceptjs/src/reporter.ts): `packages/allure-codeceptjs/src/reporter.ts`
- [CucumberJS](https://github.com/allure-framework/allure-js/blob/main/packages/allure-cucumberjs/src/reporter.ts): `packages/allure-cucumberjs/src/reporter.ts`
- [Cypress](https://github.com/allure-framework/allure-js/blob/main/packages/allure-cypress/src/browser/runtime.ts): `packages/allure-cypress/src/browser/runtime.ts`
- [Jasmine](https://github.com/allure-framework/allure-js/blob/main/packages/allure-jasmine/src/index.ts): `packages/allure-jasmine/src/index.ts`
- [Jest](https://github.com/allure-framework/allure-js/blob/main/packages/allure-jest/src/environmentFactory.ts): `packages/allure-jest/src/environmentFactory.ts`
- [Mocha](https://github.com/allure-framework/allure-js/blob/main/packages/allure-mocha/src/AllureMochaReporter.ts): `packages/allure-mocha/src/AllureMochaReporter.ts`
- [Node test](https://github.com/allure-framework/allure-js/blob/main/packages/allure-node-test/src/reporter.ts): `packages/allure-node-test/src/reporter.ts`
- [Playwright](https://github.com/allure-framework/allure-js/blob/main/packages/allure-playwright/src/index.ts): `packages/allure-playwright/src/index.ts`
- [TestCafe](https://github.com/allure-framework/allure-js/blob/main/packages/testcafe-reporter-allure/src/reporter.ts): `packages/testcafe-reporter-allure/src/reporter.ts`
- [Vitest](https://github.com/allure-framework/allure-js/blob/main/packages/allure-vitest/src/runtime.ts): `packages/allure-vitest/src/runtime.ts`

### API integrations

- [Axios](https://github.com/allure-framework/allure-js/blob/main/packages/allure-axios/src/index.ts): `packages/allure-axios/src/index.ts`
- [Fetch](https://github.com/allure-framework/allure-js/blob/main/packages/allure-fetch/src/index.ts): `packages/allure-fetch/src/index.ts`
- [Newman](https://github.com/allure-framework/allure-js/blob/main/packages/newman-reporter-allure/src/index.ts): `packages/newman-reporter-allure/src/index.ts`
- [Chai](https://github.com/allure-framework/allure-js/blob/main/packages/allure-chai/src/index.ts): `packages/allure-chai/src/index.ts`

### Shared SDK

- [Runtime API](https://github.com/allure-framework/allure-js/blob/main/packages/allure-js-commons/src/facade.ts): `packages/allure-js-commons/src/facade.ts`
- [Reporter SDK](https://github.com/allure-framework/allure-js/blob/main/packages/allure-js-commons/src/sdk/reporter/ReporterRuntime.ts): `packages/allure-js-commons/src/sdk/reporter/ReporterRuntime.ts`
- [Result writer](https://github.com/allure-framework/allure-js/blob/main/packages/allure-js-commons/src/sdk/reporter/writer/FileSystemWriter.ts): `packages/allure-js-commons/src/sdk/reporter/writer/FileSystemWriter.ts`

### Results and reporting

- **allure-results**
- **Allure generator**

### Other components

- **Test author**

## Connections

- Test author → AVA: runs tests (evidence: `README.md`)
- Test author → Bun: runs tests (evidence: `README.md`)
- Test author → CodeceptJS: runs tests (evidence: `README.md`)
- Test author → CucumberJS: runs tests (evidence: `README.md`)
- Test author → Cypress: runs tests (evidence: `README.md`)
- Test author → Jasmine: runs tests (evidence: `README.md`)
- Test author → Jest: runs tests (evidence: `README.md`)
- Test author → Mocha: runs tests (evidence: `README.md`)
- Test author → Node test: runs tests (evidence: `README.md`)
- Test author → Playwright: runs tests (evidence: `README.md`)
- Test author → TestCafe: runs tests (evidence: `README.md`)
- Test author → Vitest: runs tests (evidence: `README.md`)
- Test author → Axios: uses client (evidence: `README.md`)
- Test author → Fetch: uses client (evidence: `README.md`)
- Test author → Newman: runs collection (evidence: `README.md`)
- Test author → Chai: uses assertions (evidence: `README.md`)
- AVA → Runtime API: uses shared API (evidence: `README.md`)
- Bun → Runtime API: uses shared API (evidence: `packages/allure-bun/src/wrappers.ts`)
- CodeceptJS → Runtime API: uses shared API (evidence: `README.md`)
- CucumberJS → Reporter SDK: records results (evidence: `packages/allure-cucumberjs/src/reporter.ts`)
- Cypress → Runtime API: uses shared API (evidence: `README.md`)
- Jasmine → Reporter SDK: records results (evidence: `packages/allure-jasmine/src/index.ts`)
- Jest → Runtime API: uses shared API (evidence: `README.md`)
- Mocha → Reporter SDK: records results (evidence: `packages/allure-mocha/src/AllureMochaReporter.ts`)
- Node test → Reporter SDK: records results (evidence: `packages/allure-node-test/src/reporter.ts`)
- Playwright → Runtime API: uses shared API (evidence: `README.md`)
- TestCafe → Reporter SDK: records results (evidence: `packages/testcafe-reporter-allure/src/reporter.ts`)
- Vitest → Runtime API: uses shared API (evidence: `README.md`)
- Axios → Runtime API: uses shared API (evidence: `README.md`)
- Fetch → Runtime API: uses shared API (evidence: `README.md`)
- Newman → Reporter SDK: records results (evidence: `packages/newman-reporter-allure/src/index.ts`)
- Chai → Runtime API: uses shared API (evidence: `README.md`)
- Runtime API → Reporter SDK: feeds reporting
- Reporter SDK → Result writer: resolves writer (evidence: `packages/allure-js-commons/src/sdk/reporter/ReporterRuntime.ts`)
- Result writer → allure-results: writes files (evidence: `README.md`)
- allure-results → Allure generator: generates report (evidence: `README.md`)
