Get the lay of your code.

Scan a TypeScript workspace and explore its packages, files, and dependencies in a local map.

Explore Spyglass

Start with a workspace

Point Spyglass at a directory. It analyzes the workspace, saves the result outside it, and opens a local viewer. Packages become territories, files become settlements, and dependencies connect them.

Follow a question

Explore a package, follow its dependencies, and inspect the signals that suggest a closer look. Findings are starting points for judgment, not verdicts about your code.

Take the analysis with you

Print reports, check workspace rules, or export a static viewer. A scan reads the workspace; applying a planned change requires an explicit --write.

See the CLI reference →

Run it locally

Spyglass runs on Bun and can use Git history when Git is available. The documentation covers installation, scans, and the viewer.

Read the documentation →