Skip to content

Installation

Install effect-analyzer using your preferred package manager:

Terminal window
# npm
npm install effect-analyzer
# pnpm
pnpm add effect-analyzer
# yarn
yarn add effect-analyzer

ts-morph ships with the analyzer.

If you want the effect-analyze command available globally, install with the -g flag:

Terminal window
npm install -g effect-analyzer

This lets you run effect-analyze from any directory without npx.

Confirm everything is set up correctly:

Terminal window
npx effect-analyze --help
npx effect-analyze --version

You should see the CLI help output listing all available flags and formats, and the installed version.

The analyzer auto-detects your tsconfig.json for type information. If you need to point it at a specific config, use the --tsconfig flag:

Terminal window
npx effect-analyze ./src/program.ts --tsconfig ./tsconfig.app.json

To review every pull request without installing anything in the repository, add one workflow step. It posts a comment with the structural diff, railway diagrams, new lint findings and a merge-risk verdict for every Effect program the PR touched:

.github/workflows/effect-review.yml
name: Effect review
on:
pull_request:
permissions:
contents: read
pull-requests: write
jobs:
review:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- uses: jagreehal/effect-analyzer@v3
with:
path: src

See GitHub Action for every input, version pinning, monorepos and gating.

Head to the Quick Start to analyze your first Effect program, or the GitHub Action to put the review on every PR.