Skip to main content

Directory layout


CLI (cli/)

Entry point and terminal user interface.
  • bin/ — executable entry point
  • src/ — command implementations (tx, simulate, batch, config, login)
  • dist/ — compiled output (tsup bundle)
Output: Single open.js bundle, installed globally as opendev

Services (services/)

Analysis engine and supporting utilities.
  • Analysis engine — CPI tree building, compute unit tracking, state diffs
  • RPC layer — Solana RPC client wrappers
  • Decoders — Program-specific instruction/state decoders
  • IDL cache — Local cache of program IDLs
  • AI integration — MCP client for LLM calls

Scripts (scripts/)

Validation and benchmarking.
  • validate-decoders.ts — Verify decoder coverage
  • benchmark.ts — Performance and latency tests
  • audit.ts — Supply chain and dependency checks
Run before opening PRs:

Docs (docs/)

Developer documentation.

Web (web/)

Web frontend (work in progress).

Workspaces

This is an npm monorepo. Install dependencies once at the root:
To build a single workspace:

Build artifacts

After npm run build:

Contributing

See CONTRIBUTING.md. Before opening a PR: