Esposter
    Preparing search index...

    Module @esposter/shared-node - v2.31.1

    @esposter/shared-node

    Apache-2.0 licensed

    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
    • Node-only: depends on Node built-ins (fs, os) โ€” must not be bundled into the browser app.
    • Depends on @esposter/shared for shared types and utilities.
    • Wired into 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.

    Interfaces

    BenchmarkFile
    BenchmarkGroup
    BenchmarkReport
    BenchmarkResult
    BenchmarkTaskNode

    Variables

    benchmarkFileSchema
    benchmarkGroupSchema
    benchmarkReportSchema
    benchmarkResultSchema

    Functions

    buildBenchmarkFileReport
    createStableBench
    formatBenchmarkMarkdown
    readBenchmarkEnvironment
    writeBenchmarkReport