create-salt-inspector
v0.3.0
Published
Install Salt Inspector in your project (React or Angular)
Readme
Salt Inspector Prompt
A dev-only tool for visually inspecting UI elements, attaching prompts, and triggering AI-assisted fixes via Claude Code CLI.
Quick Start
npx create-salt-inspectorWhat It Does
Salt Inspector enables a visual workflow for marking UI issues in your browser and having Claude fix them:
- Inspect elements in browser with overlay
- Add prompts describing what needs to change
- Save structured context to
.salt-inspector/session.json - Run
claude "fix salt-inspector"to apply fixes
Demo

Installation
The CLI installer will:
- Detect your framework (Vite, Next.js, Angular, etc.)
- Install required packages
- Configure the Vite plugin
- Create the
.salt-inspector/directory - Add
<DevInspector />to your entry file
Manual Installation
If you prefer manual setup:
React
# Install packages
npm install salt-inspector-react
npm install -D salt-inspector-vite
# Add to vite.config.ts
import reactInspector from 'salt-inspector-vite'
export default defineConfig({
plugins: [react(), reactInspector()]
})
# Add to your app (main.tsx or App.tsx)
import { DevInspector } from 'salt-inspector-react'
function App() {
return (
<>
{import.meta.env.DEV && <DevInspector enabled={false} />}
{/* Your app */}
</>
)
}Angular
# Install package
npm install salt-inspector-angular
# For Standalone Apps (app.config.ts):
import { InspectorPrompt } from 'salt-inspector-angular'
export const appConfig: ApplicationConfig = {
providers: [
provideRouter(routes),
InspectorPrompt,
]
}
# Add to app.component.html:
<inspector-prompt></inspector-prompt>
# For Module-based Apps (app.module.ts):
import { InspectorPromptModule } from 'salt-inspector-angular'
@NgModule({
imports: [BrowserModule, InspectorPromptModule],
// ...
})
export class AppModule { }Usage
Start dev server and look for the 🔍 button in bottom-right
Click the inspector button to enable, then hover over elements
Click an element to open the prompt modal
Describe the issue and save
Run Claude:
claude "fix salt-inspector"
Features
- Interactive Toggle Menu - Toggle inspector, view issues panel, copy issues
- Component Detection - Shows React/Angular component names
- DOM Path Generation - Stable CSS selectors
- Issues Panel - View all saved issues in a scrollable list
- Session Persistence - Auto-saves to
.salt-inspector/session.json - Dev-Only - Tree-shaken in production, never shipped to users
CLI Options
npx create-salt-inspector [path] [options]
# Options:
-d, --debug Enable debug output
--yes Skip prompts and use defaultsSession Schema
Issues are saved to .salt-inspector/session.json:
{
"version": "1.0.0",
"project": "my-app",
"issues": [
{
"id": "uuid",
"timestamp": 1709000000000,
"url": "http://localhost:5173",
"viewport": { "width": 1920, "height": 1080 },
"element": {
"tag": "button",
"classList": ["primary"],
"domPath": "#root > button.primary",
"componentName": "SubmitButton"
},
"prompt": "Make this button larger"
}
]
}Packages
salt-inspector-core- Shared utilities, DOM helpers, session I/Osalt-inspector-react- DevInspector React component & overlay UIsalt-inspector-angular- Angular 17+ inspector componentsalt-inspector-vite- Vite plugin for dev middlewarecreate-salt-inspector- CLI installer (this package)
Requirements
React:
- React 18+ or React 19
- Vite 5+ (for plugin functionality)
Angular:
- Angular 17+ (Angular 18+ recommended)
- TypeScript 5+
General:
- Node.js 18+
- pnpm 8+ (for development)
Development
# Clone repo
git clone https://github.com/rickovirnanda/salt-inspector-prompt.git
cd salt-inspector-prompt
# Install dependencies
pnpm install
# Build all packages
pnpm build
# Run tests
pnpm testSecurity
- Dev-only: All components are tree-shaken in production
- Local-only: Data never leaves your machine
- Vite middleware: Only active in dev mode, rejects production requests
License
MIT
Contributing
Contributions welcome! This is an open-source project for improving the developer workflow.
Built with ❤️ for the Salt + Claude ecosystem
