Self-Hosted Node.js & Bun GitHub Actions Runners
Short answer: Frontend and full-stack TypeScript CI bottlenecks on cold dependency installs and browser binaries. Strict keeps node_modules, Bun, and Playwright caches on fast local NVMe while cleaning stale store objects in Tier 2.
Run Playwright, Vitest, Bun test, lint, and typechecks on bare-metal NVMe with automatic npm/Bun cache sweeps.
Drop-in workflow YAML & zero-sudo enrollment
Enroll your host with strict add-runner and route jobs directly via GitHub's native runs-on labels:
jobs:
check:
runs-on: [self-hosted, Linux, X64]
steps:
- uses: actions/checkout@v4
- run: bun install --frozen-lockfile && bun test
curl -fsSL https://strict.ai/install.sh | sh
strict add-runner owner/web --labels self-hosted,Linux,X64
How Strict keeps Node.js & Bun runners healthy
| Subsystem | How it applies to Node.js & Bun |
|---|---|
| Disk Cleanup | Tier 2 explicitly prunes stale npm and Bun package caches once free disk drops below lowGiB, keeping install speed near-instant under normal headroom. |
| Preflight Doctor | dns-github, disk-headroom, runner-hooks, and linux-linger (or macos-sleep) ensure fast JS pipelines stay reliable 24/7. |
| Tracked Toolchains | node, bun, docker, gh, python, runner |
| Cache & Balancing | Tailnet Build Cache shares build artifacts and lockfile caches across your Mac and Linux fleet at local network speeds. |
When Strict fits vs. when hosted runners win
Use Strict for Node.js & Bun when
- Sub-second dependency restores from warm local Bun/pnpm/npm stores
- Higher single-thread NVMe and CPU speed for TypeScript/Playwright suites
- Zero monthly seat fees or per-minute billing on frequent PR commits
Use cloud-hosted runners when
- Public JavaScript OSS libraries running untrusted community PRs
- Low-volume private repos fully covered by GitHub's included minutes
Frequently asked questions
Does Strict clean stale npm and Bun caches automatically?
Yes. Tier 2 of strict_maintenance.py clears stale npm, Bun, Cargo, and Homebrew caches only when disk drops below lowGiB, stopping as soon as targetGiB is freed.
Does Strict track Node.js and Bun version drift across runners?
Yes. Both node and bun are part of Strict's 12-toolchain inventory reported on every 30-second heartbeat.
Can I mix Mac laptops and Linux boxes for frontend CI?
Yes. Use standard GitHub runner labels like [self-hosted, Linux, X64] or [self-hosted, macOS, ARM64] and Strict monitors both in one dashboard.
Try Strict on one spare Mac in under two minutes
Signed Apple Silicon app or single-line CLI · Zero accounts required