Node-only shared tooling for Esposter โ benchmark reporting and dev scripts reused across packages. Server/build environment only; never import in browser code.
We highly recommend you take a look at the documentation to level up.
The benchmark reporting toolkit consumed by the repo's vitest bench runs (see the bench skill).
| Export | Description |
|---|---|
BenchmarkMarkdownReporter |
Vitest bench reporter โ writes results.md beside results.json |
buildBenchmarkFileReport |
Aggregates raw bench tasks into a structured BenchmarkReport |
formatBenchmarkMarkdown |
Renders a BenchmarkReport to Markdown tables |
writeBenchmarkReport |
Persists the JSON + Markdown report artifacts |
readBenchmarkEnvironment |
Captures CPU/OS/runtime metadata for reproducible results |
BenchmarkFile ยท BenchmarkGroup ยท BenchmarkReport ยท BenchmarkResult ยท BenchmarkTaskNode |
Report data models |
fs, os) โ must not be bundled into the browser app.@esposter/shared for shared types and utilities.vitest bench via BenchmarkMarkdownReporter; the CodSpeed dashboard layer reads the emitted artifacts.Run from packages/shared-node/:
pnpm build # compile to dist/
pnpm test # vitest watch mode (coverage is run from the repo root)
pnpm lint:fix # auto-fix lint
pnpm typecheck # type check
This project is licensed under the Apache-2.0 license.