Skip to main content

Quick Install

Install the Node package:
This ships the base runtime (Workspace, RAM resource, Disk resource, the shell executor) and is enough to follow the TypeScript Quickstart. npm install and yarn add work identically; examples below use pnpm because the FUSE binding’s install script needs pnpm’s onlyBuiltDependencies allow-list.

Optional Peer Dependencies

Mirage keeps native and network-heavy dependencies as optional peers so consumers who don’t use those features don’t pay the download or build cost. Mirage imports each library lazily, so unused peers cost nothing at runtime either.
Expose a workspace as a real OS filesystem.
Then follow the TypeScript FUSE setup for the pnpm onlyBuiltDependencies allow-list and the macOS 4+ symlink workaround.

Verify

If this prints hello, the base install is wired up correctly.

Install From Source

Contributing to Mirage or exploring the examples directly:
The examples in examples/typescript/ link to the workspace packages via pnpm’s workspace protocol, so changes in packages/core or packages/node are picked up on the next pnpm build.