A Chrome DevTools extension that detects and tracks API schema changes in real-time.
API Inspector helps frontend developers catch breaking API changes early by comparing live API responses against previously saved schemas — directly inside Chrome DevTools.
APIs evolve constantly during development:
- New fields get added
- Fields get removed silently
- Data types change unexpectedly
- Backend updates break UI without warning
Manually tracking these changes is difficult and error-prone.
API Inspector provides:
✔ Automatic schema generation
✔ Real-time schema diff detection
✔ Breaking vs minor change classification
✔ Manual approval workflow
✔ Per-domain API tracking
All processed locally in the browser.
- 🔍 DevTools panel integration
- 📦 Automatic JSON schema extraction
- 🔁 Schema comparison engine
⚠️ Breaking change detection- 🗂 Per-origin storage isolation
- 🎯 Custom URL-based API filtering
- 🧹 Clear APIs per site
- 🌙 Dark & Light theme support (matches DevTools)
- The extension listens to network requests inside DevTools.
- Only JSON responses with HTTP
200status are processed. - The response body is converted into a structural schema.
- The schema is flattened and compared against the stored version.
- Differences are categorized as:
breakingminorunchanged
- If changes are detected, they must be manually approved.
All processing happens locally.
No API data is sent externally.
When a schema change is detected:
- API status updates to
breakingorminor - A pending update indicator appears in the DevTools panel
- The new schema is displayed side-by-side with the current schema
- Differences are highlighted (added, removed, type changes)
- Click "Update Schema" to approve the changes
- The approved schema replaces the previous version in Chrome storage
This prevents silent contract drift and ensures intentional schema updates.
Configuration is available per domain via the popup.
- Add URL patterns (e.g.
/xhr,/settings) - Only matching requests are tracked
- Multiple patterns supported
- Optionally track all JSON responses
- Useful during exploration
- Can later be restricted using filters
- Reset all stored schemas for the current domain
- Useful if filters were added late
- Does not affect other domains
- Only HTTP
200responses are processed. - Cached responses (
304) are ignored. - Third-party APIs are only captured if the request referrer starts with the inspected page's origin.
- Changing filters does not remove previously captured APIs.
- DevTools may need to be reopened after theme changes.
API Inspector:
- Does NOT collect user data
- Does NOT transmit API responses
- Does NOT modify network requests
- Stores schema data locally using
chrome.storage
All analysis is performed locally inside the browser.
- Manifest V3
- Background service worker
- DevTools panel integration
- Content script (origin detection)
- Per-origin schema registry
- Schema flattening + diff engine
- Manual approval workflow
- Safe dynamic rendering
api-inspector/
│
├── manifest.json
├── background.js
├── popup/
│ ├── popup.html
│ ├── popup.js
│ └── popup.css
│
├── devtools/
│ ├── devtools.html
│ ├── devtools.js
│ ├── panel.html
│ ├── panel.js
│ └── panel.css
│
└── icons/
- Clone the repository
- Open
chrome://extensions - Enable Developer Mode
- Click Load Unpacked
- Select the project folder
- Schema version history
- Snapshot timeline
- Regex-based filtering
- Field ignore rules
- Schema export
- CI contract validation integration
Vaishali
Frontend Developer
Building tools that improve developer workflows.