Skip to content

Install

Every install path for the Sightmap toolchain. Pick the one that matches your role.

PackageInstallWhat it gives you
@sightmap/sightmappnpm add -D @sightmap/sightmapCore library + sightmap CLI. init (zero-to-one installer), fmt (canonical formatter), validate, lint, check, match, explain.
@sightmap/reactpnpm add @sightmap/react @sightmap/sightmapReact Router 7 adapter. <SightmapProvider>, Vite plugin, sightmap-react CLI.
@sightmap/mcppnpm add -D @sightmap/mcpMCP server with browser tools and curation tools. Wraps @playwright/mcp.
@sightmap/playwrightpnpm add -D @sightmap/playwright @playwright/cliSightmap-aware wrapper around @playwright/cli. Same enriched snapshots as @sightmap/mcp, no MCP protocol overhead.
@sightmap/agent-browserpnpm add -D @sightmap/agent-browser agent-browserSightmap-aware wrapper around Vercel’s agent-browser CLI. Same four enriched commands; passes through -p <provider> for hosted Chrome (Browserless, Browserbase, Kernel, …).
@sightmap/plugin/plugin marketplace add sightmap/plugin then /plugin install sightmap@sightmapClaude Code plugin: slash commands, skills, curator subagents, and advisory hooks. Multi-host manifests for Codex, Cursor, OpenCode.

@sightmap/sightmap is a peer dep of @sightmap/react — install it alongside.

The packages ship four CLIs:

BinShips inCommands
sightmap@sightmap/sightmapinit, fmt, validate, lint, check, match, explain, check-conventions
sightmap-playwright@sightmap/playwrightsnapshot, match, act, network, plus full @playwright/cli passthrough
sightmap-agent-browser@sightmap/agent-browsersnapshot, match, act, network, plus full agent-browser passthrough (incl. -p <provider>)

All commands accept --json for machine-readable output and --cwd <dir> to run from outside the project. See CLI reference for the full command list.

The plugin ships through the Claude Code marketplace. In Claude Code:

/plugin marketplace add sightmap/plugin
/plugin install sightmap@sightmap

Plugin source lives in sightmap/plugin. Per-harness manifests under .claude-plugin/, .codex-plugin/, .cursor-plugin/, and .opencode/ mean the same plugin installs across all four hosts.

Each manifest declares a compatibleMcpVersion field. When sightmap init runs the manual path, or when the plugin spawns its bundled MCP, that field pins the @sightmap/mcp version — see Plugin (Claude Code) for details.

For local plugin development:

Terminal window
git clone https://github.com/sightmap/plugin
cd plugin
# follow the plugin repo's README for the symlink dev setup

The hook scripts shell out to npx --no-install sightmap by default. Override with SIGHTMAP_BIN if you need a pinned binary path.

Add this header to your .sightmap/ YAML files for in-editor validation in VS Code (yaml-language-server):

# yaml-language-server: $schema=https://raw.githubusercontent.com/sightmap/spec/main/spec/v1/sightmap.schema.json
  • Node 20+
  • pnpm 10+ (or npm / yarn — pnpm is what we test against)
  • TypeScript ~5.7 if you’re consuming the library types
  • Quickstart — install through populated .sightmap/, agent-driven against your running app.
  • Authoring overview — once everything is installed.