Start
Installation
Install Pax from source, verify your toolchain, and confirm the CLI and docs site run locally.
Pax runs from a pnpm monorepo. Clone the repository, install dependencies, build the packages, and run paxfx from the workspace root.
What you will learn
- Which Node and pnpm versions Pax requires
- How to install the workspace and build every package
- How to confirm
paxfxand the docs site work - What each quality gate checks before you commit
Requirements
| Requirement | Version | Notes |
|---|---|---|
| Node.js | 22 or newer | Active LTS recommended |
| pnpm | 10.x | Enabled via corepack |
| Git | any recent | Required for clone and CI |
| FFmpeg | optional | Required for video export workflows |
| Playwright browsers | optional | pnpm exec playwright install chromium for e2e and rendered checks |
Install from source
Clone, install, and build
Corepack reads the pnpm version pinned in the root
package.json, so every contributor runs the same package manager. The CLI and the web app consume built output frompackages/*/dist, which is why the build runs here rather than later.pnpmgit clone https://github.com/pax-design/pax.git cd pax corepack enable pnpm install pnpm buildVerify the CLI
paxfx doctorreports optional capabilities such as FFmpeg and Chromium, and prints the exact fix for anything missing.pnpmpnpm paxfx --help pnpm paxfx doctorOpen the documentation site
These docs run locally from the same repository. The docs site uses a Tailwind and shadcn subsystem scoped to
/docs/*, so its tokens never leak into the marketing pages.pnpm --filter @pax-sh/web dev
Expected result
pnpm paxfx --help lists the commands, pnpm paxfx doctor reports your toolchain with no fatal errors, and http://localhost:3000/docs serves this page. Optional capabilities may be listed as unavailable.
Verify quality gates
These are the same four gates CI runs. Run them before you commit.
pnpm lint
pnpm typecheck
pnpm test
pnpm buildCommon issues
corepack or pnpm not found
Run corepack enable once per machine, then reopen your shell so the shims land on your PATH.
Cannot find module errors in the web app
The web app imports built package output. Run pnpm build from the repository root, or pnpm --filter @pax-sh/web^... run build to build only its dependencies.
Video export fails with a missing FFmpeg message
Install FFmpeg with brew install ffmpeg on macOS or your platform package manager, then rerun pnpm paxfx doctor. Video rendering also needs a Playwright Chromium build: pnpm exec playwright install chromium.
You want paxfx on your PATH outside pnpm scripts
Link the CLI package globally after building:
pnpm --filter @pax-sh/cli link --global
paxfx --versionNext steps
Was this page helpful?
Answers are not recorded or transmitted. Pax has no telemetry.