Vendored Encore toolchain: rust core + js runtime via napi-rs, no CLI
008-vendored-encore-toolchain
The enrahitu fork point: the Encore runtime is vendored (upstream encoredev/encore @ v1.57.9) and driven directly via napi-rs, removing the encore CLI from every flow. vendor/encore/ carries the rust core (runtimes/core), the napi bindings crate (runtimes/js, built into encore-runtime.node), the TS parser/compiler (tsparser, the tsparser-encore binary), miniredis (a core path dependency), and the published encore.dev JS runtime package (the app's encore.dev dep is a file: link into it). The build drivers (build, dev run, esbuild bundling, infra-config augmentation, linux cross-build) were relocated to @enrahitu/toolchain (packages/toolchain/, spec 018); this spec retains the vendored source of record they build from.
- Depends on
- Establishes
- vendor/encore/ (directory)
- infra.config.dev.json
- docker/Dockerfile.base
- Sections
- 008: Vendored Encore toolchain
- 1. Purpose
- 2. Territory
- 3. Behavior
- 4. Out of scope
- Source
- specs/008-vendored-encore-toolchain/spec.md @ dc4c9237e12aas of 2026-07-21 ยท shard d41f158a4b80