ShadowAPI is an open-source development gateway that enables frontend teams to work without waiting for backend APIs.
It generates mock APIs from contracts and seamlessly switches to real backend services when available.
Below is a demonstration of the ShadowAPI DevTools extension.
- Parallel frontend and backend development
- Contract-first API workflow
- Automatic fallback to mock APIs
- Seamless switching to real backend
- Local-first development (no cloud dependency)
- Dynamic mock API generation
- Stateful request/response simulation
- Proxy forwarding to real backend
- Automatic fallback handling
- API request logging and inspection
- Chrome DevTools extension
npm install -g shadowapi
shadowapi init
shadowapi start --contract api-spec.yaml
shadowapi connect --backend http://localhost:8080A sample frontend project is included:
examples/demo-app/index.htmlSteps:
- Open the demo page
- Click "Load Users"
- Open DevTools → ShadowAPI tab
- Inspect API requests
Detailed usage instructions:
docs/devtools-guide.md
docs/example-usage.md
shadowapi/
├ engine/
├ gateway/
├ cli/
├ extension/
├ examples/
├ docs/
├ CONTRIBUTING.md
├ LICENSE
└ README.md
Active Development — Week 2/4
Current focus: Mock server and DevTools integration
- Mock engine improvements
- Gateway proxy integration
- DevTools enhancements
- CLI improvements
- Documentation completion
Contributions are welcome.
See:
CONTRIBUTING.md
MIT License
