Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/publish-vscode-extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
extension:
description: Which extension
type: choice
options: [api-client, auto-rename-tag, code-guard, codesnap, docker, document-viewer, env, error-lens, garden, git-graph, live-server, mcp-studio, mongodb, npm-intellisense, path-intellisense, pets, port-manager, rewind, todo-tree, wrapped]
options: [api-client, auto-rename-tag, blast-radius, code-guard, codesnap, docker, document-viewer, env, error-lens, garden, git-graph, live-server, mcp-studio, mongodb, npm-intellisense, path-intellisense, pets, port-manager, rewind, todo-tree, wrapped]
default: live-server
target:
description: Where to publish
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ The team behind Veyra (FlightCoders) also makes free extensions for VS Code, Cur

| Extension | What it does |
| --- | --- |
| [**Veyra Blast Radius**](https://marketplace.visualstudio.com/items?itemName=flightcoders.veyra-blast-radius) | See every file, page, route and test your change can break, and run only the affected tests |
| [**Veyra Rewind**](https://marketplace.visualstudio.com/items?itemName=flightcoders.veyra-rewind) | Local history and time travel for every file; find code you deleted |
| [**Code Garden Veyra**](https://marketplace.visualstudio.com/items?itemName=flightcoders.veyra-garden) | A garden that grows while you code: saves water it, commits make flowers bloom |
| [**Veyra Live Server**](https://marketplace.visualstudio.com/items?itemName=flightcoders.veyra-live-server) | Live reload on save; CSS updates without a reload |
Expand Down
5 changes: 5 additions & 0 deletions extensions/blast-radius/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
out/
dist/
bundle/
node_modules/
.vscode-test/
10 changes: 10 additions & 0 deletions extensions/blast-radius/.vscodeignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
src/**
test/**
out/**
dist/**
node_modules/**
tsconfig.json
**/*.map
.gitignore
.vscode-test/**
media/readme/**
12 changes: 12 additions & 0 deletions extensions/blast-radius/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Changelog

## 1.0.0

- The blast radius of your uncommitted changes in Source Control: every file, test, route, page, component and config file that depends on what you changed, with a count on the view and in the status bar.
- A graph of the blast radius: changed files in the middle, one ring per import hop, hover to trace the path, click to open.
- Run only the affected tests: Vitest, Jest, Mocha, Playwright, `node --test` and pytest are detected, or set your own command.
- "Used by N files · blast radius M" at the top of every source file.
- Show the blast radius of any file from the Explorer or an editor tab.
- Deleted files still show every file that imported them.
- Copy a Markdown impact report for your pull request.
- JavaScript, TypeScript, Vue, Svelte, Astro and Python; `tsconfig`/`jsconfig` path aliases and `baseUrl`, including monorepos.
21 changes: 21 additions & 0 deletions extensions/blast-radius/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2026 Vikram Singh

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
87 changes: 87 additions & 0 deletions extensions/blast-radius/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
<p align="center">
<img src="https://raw.githubusercontent.com/fcopensource/veyraeditor/main/extensions/blast-radius/media/readme/graph.png" alt="The Blast Radius graph: the changed file db.ts in the middle, and in rings around it every file that depends on it, coloured as tests, routes and pages, components, config and other code" width="100%">
</p>

# Veyra Blast Radius

**Know what your change can break, before you commit.**

You changed one file. What else did you just change? Veyra Blast Radius follows every import in your project, backwards, and shows you every file, page, API route, component and test that depends on what you edited. Then it runs only the tests that matter. **Free, 100% local, nothing to configure.** By the makers of [Veyra Studio](https://veyraeditor.com).

- 💥 **See the blast radius of your uncommitted changes,** right next to your commit box in Source Control, with a count on the view.
- 🧭 **Grouped the way you think:** Tests to run, Routes, pages & APIs, Components, Config & middleware, and Other code.
- 🕸️ **A graph you can explore:** your changes in the middle, every ring one import further. Hover a file to trace exactly how your change reaches it.
- 🧪 **Run only the affected tests** in one click, with Vitest, Jest, Mocha, Playwright, `node --test` or pytest.
- 🔎 **"Used by 7 files · blast radius 23"** at the top of every file, before you even touch it.
- 📋 **Copy an impact report** in Markdown, ready for your pull request.
- 🗑️ **Deleted a file?** Blast Radius still shows every file that imported it, because those are the ones that break.

---

## How it works

Blast Radius reads the imports in your project, the same way your bundler would, and builds a map of who imports whom. When you change a file, it walks that map **backwards**: everything that imports your file, everything that imports those, and so on. That's your blast radius.

It understands:

| | |
| --- | --- |
| **JavaScript & TypeScript** | `import`, `export … from`, `require()`, dynamic `import()`, `import type`; `.ts`, `.tsx`, `.js`, `.jsx`, `.mjs`, `.cjs` |
| **Frameworks** | Vue, Svelte and Astro components; Next.js, Nuxt, SvelteKit and Remix routes |
| **Path aliases** | `@/components/…`, `~/lib/…` and every other `paths` / `baseUrl` from `tsconfig.json` or `jsconfig.json`, including several in a monorepo |
| **ESM TypeScript** | `import "./util.js"` that really means `util.ts` |
| **Python** | `import a.b`, `from a.b import c`, relative `from ..core import db`, packages with `__init__.py` |

Packages from `node_modules` and the standard library are outside your project, so they're not followed. Imports inside comments don't count.

## Where to find it

| | |
| --- | --- |
| **Source Control → Blast Radius** | The blast radius of your uncommitted changes (staged, unstaged and new files) |
| **The status bar** | `🔥 23 affected · 🧪 3`: click it to open the view |
| **The top of every file** | `Used by 7 files · blast radius 23`: click it to see them |
| **Right-click a file** | In the Explorer or on an editor tab: **Show Blast Radius of This File** |

The buttons at the top of the view:

| | |
| --- | --- |
| **Run Affected Tests** | Runs the tests in the blast radius in a terminal |
| **Show Graph** | Opens the graph beside your code |
| **Show Current File / Show Uncommitted Changes** | Switch between the open file and your git changes |
| **Refresh** | Read the project's imports again |
| **⋯ → Copy Impact Report** | A Markdown summary for your pull request |

Right-click a file in the view and choose **Why Is This Affected?** to see the chain of imports, one file at a time.

## Trace the path

<img src="https://raw.githubusercontent.com/fcopensource/veyraeditor/main/extensions/blast-radius/media/readme/graph-trace.png" alt="Hovering auth.ts in the graph highlights the path db.ts → users.ts → auth.ts and explains it is affected two hops away" width="100%">

Hover any file in the graph and the path from your change lights up, with the reason spelled out: *"Affected 2 hops away, through `src/lib/db.ts → src/lib/users.ts → src/lib/auth.ts`"*. Click it to open the file. Scroll to zoom, drag to move.

## Settings

| Setting | Default | |
| --- | --- | --- |
| `veyraBlast.maxDepth` | `8` | How many import hops to follow |
| `veyraBlast.testCommand` | (detected) | Your own test command, for example `pnpm vitest run ${files}` |
| `veyraBlast.exclude` | `node_modules`, `dist`, `build`, `.next`, `venv`… | Folders and files to leave out |
| `veyraBlast.codeLens` | `true` | "Used by N files" at the top of each file |
| `veyraBlast.statusBar` | `true` | The count in the status bar |
| `veyraBlast.maxFiles` | `20000` | The most source files to read in a very large project |

## Private and light

Everything happens on your computer. Blast Radius reads your files and runs `git status`, and that's all: no account, no telemetry, nothing sent anywhere. It reads only the import lines, so even a project with thousands of files is mapped in seconds, and the map is updated as you save.

In Restricted Mode it shows the blast radius of the open file, but doesn't run git or tests.

## More from Veyra

Veyra Blast Radius is part of a family of free extensions from [Veyra Studio](https://veyraeditor.com), a lightweight code editor. See them all at **[veyraeditor.com/extensions](https://veyraeditor.com/extensions)**.

## License

[MIT](LICENSE) © Flight Coders
1 change: 1 addition & 0 deletions extensions/blast-radius/media/activity.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extensions/blast-radius/media/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extensions/blast-radius/media/readme/graph.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading