---
title: "Documentation · vortex"
description: "The vortex documentation: compatibility with piscina, design notes, the core specification and the benchmark method and results."
canonical: "https://vortex.avarok.net/docs/"
lastmod: "2026-11-29T00:43:55Z"
tokens: 1174
---

# vortex documentation

Every page here is generated from the markdown in the repository's docs/ directory, so it says what the source says.

@avarok/vortex 0.1.0 · Updated 2026-11-28

- [Compatibility with piscina 5.3.2](https://vortex.avarok.net/docs/compat/): Vortex is a drop-in replacement for piscina 5.3.2. piscina's own test suite runs unmodified against vortex (compat/piscina-5.3.2/, files pinned by compat/piscina-5.3.2.sha256): Result on Node.js…
- [vortex: design](https://vortex.avarok.net/docs/design/): vortex is a worker thread pool whose core (queues, scheduling, worker accounting, backpressure, timing) is Rust compiled to wasm32-unknown-unknown with shared memory, and whose public interface is a…
- [1\. The interface vortex matches](https://vortex.avarok.net/docs/design/01-interface/): vortex matches piscina 5.3.2 (npm latest on 2026-11-27; tag v5.3.2, commit 6c7e54630a8c28a96ce5c0625b463d849d21171c; engines.node >= 20). Source of truth for this chapter is that tag's src/ and the…
- [2\. Architecture](https://vortex.avarok.net/docs/design/02-architecture/): One WebAssembly.Memory({shared: true}) is created by the main thread, passed to each worker once at startup (the only per-worker postMessage in steady state besides fallbacks), and every thread…
- [3\. Where the speed comes from](https://vortex.avarok.net/docs/design/03-speed/): Everything here is a hypothesis until the phase-3 harness measures it (load < 15 written beside every number). The first act of phase 2 is a per-task cost breakdown of piscina itself, so effort goes…
- [4\. Proof plan](https://vortex.avarok.net/docs/design/04-proof/): Mechanism: copy test/ and test/fixtures/ from tag v5.3.2 into compat/piscina-5.3.2/ byte-for-byte (sha256 manifest committed beside them, MIT licence notice kept), and resolve their imports…
- [5\. Phased plan and owner questions](https://vortex.avarok.net/docs/design/05-plan/): Sizes: S ≈ half a day, M ≈ 1–2 days, L ≈ 3–5 days of lane time. Vortex is the lowest priority on the machine: builds only when load < 30, never a release lane's build slot or the hook lock;…
- [6\. Where piscina 5.3.2 spends per-task time (profile, phase 2a)](https://vortex.avarok.net/docs/design/06-piscina-profile/): These are CPU-profile shares, not benchmark results. Nothing here is a throughput claim. Tools: tools/profile-piscina/run.cjs (drives empty tasks) and tools/profile-piscina/analyze.cjs (self-time…
- [7\. The Rust core as built (phase 2b)](https://vortex.avarok.net/docs/design/07-core/): Crates: crates/vortex-core: no\_std, no allocator, no thread\_local!, no I/O. Waiting goes through the Futex trait and time arrives through the Clock trait or as now\_us arguments (SBIO). Every…
- [8\. The Node.js shim as built (phase 2c)](https://vortex.avarok.net/docs/design/08-node-shim/): The shim is strict TypeScript in js/src/, compiled to CommonJS in dist/ (as piscina ships), plus a generated dist/esm-wrapper.mjs. It passes piscina 5.3.2's suite unmodified; COMPAT.md lists every…
- [09 — Phase 3 benchmarks](https://vortex.avarok.net/docs/design/09-bench/): Branch phase-3-bench. Harness: bench/ (cell, run, report, impls, mini/). Raw data: bench/results/bench-results-t{4,8}.jsonl, one line per cell with the Node version, CPU and 1-min load before and…
- [10\. Core specification: one layout, two cores](https://vortex.avarok.net/docs/design/10-core-spec/): The shim talks to a pool's shared region only through CoreApi (js/src/core/api.ts). Two cores implement it over the layout and protocol below: This chapter is the single source of truth.…

```json
{
  "@context": "https://schema.org",
  "@graph": [
    {
      "@id": "https://thomaspbraun.com/#person",
      "@type": "Person",
      "name": "Thomas Braun",
      "sameAs": [
        "https://github.com/tbraun96"
      ],
      "url": "https://thomaspbraun.com",
      "worksFor": {
        "@type": "Organization",
        "name": "Avarok",
        "url": "https://avarok.net"
      }
    },
    {
      "@id": "https://vortex.avarok.net/docs/",
      "@type": "WebPage",
      "author": {
        "@id": "https://thomaspbraun.com/#person"
      },
      "dateModified": "2026-11-29T00:43:55Z",
      "description": "The vortex documentation: compatibility with piscina, design notes, the core specification and the benchmark method and results.",
      "inLanguage": "en",
      "isPartOf": {
        "@id": "https://vortex.avarok.net/#website",
        "@type": "WebSite",
        "name": "vortex",
        "url": "https://vortex.avarok.net/"
      },
      "name": "Documentation · vortex",
      "url": "https://vortex.avarok.net/docs/"
    }
  ]
}
```
