Installation
Installing the Package
Section titled “Installing the Package”Install effect-analyzer using your preferred package manager:
# npmnpm install effect-analyzer
# pnpmpnpm add effect-analyzer
# yarnyarn add effect-analyzerts-morph ships with the analyzer.
Global CLI Installation
Section titled “Global CLI Installation”If you want the effect-analyze command available globally, install with the -g flag:
npm install -g effect-analyzerThis lets you run effect-analyze from any directory without npx.
Verify Installation
Section titled “Verify Installation”Confirm everything is set up correctly:
npx effect-analyze --helpnpx effect-analyze --versionYou should see the CLI help output listing all available flags and formats, and the installed version.
TypeScript Configuration
Section titled “TypeScript Configuration”The analyzer auto-detects your tsconfig.json for type information. If you need to point it at a specific config, use the --tsconfig flag:
npx effect-analyze ./src/program.ts --tsconfig ./tsconfig.app.jsonGitHub Action
Section titled “GitHub Action”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:
name: Effect reviewon: pull_request:permissions: contents: read pull-requests: writejobs: 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: srcSee GitHub Action for every input, version pinning, monorepos and gating.
Next Steps
Section titled “Next Steps”Head to the Quick Start to analyze your first Effect program, or the GitHub Action to put the review on every PR.