Quick Install
For Node applications, use Node 22.20+ on Node 22, 24.12+ on Node 24, or 25+. Install the Node package: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. Install a peer withpnpm add <package> when you use the feature that needs it:
The FUSE binding also needs pnpm’s
onlyBuiltDependencies allow-list and, on macOS, the macFUSE 4+ symlink workaround described in the TypeScript FUSE setup.
For a browser application, install @struktoai/mirage-browser instead and
follow the browser quickstart.
Install From Source
Contributing to Mirage or exploring the examples directly: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.