Edit JSON. Get an API. Instantly.
A local mock server with a live editor—no backend, no redeploy, no save button. Build frontends without the wait.
npx view-api dev
How it Works
1. Run command
Launch the server with a single terminal command in your project root.
2. Edit JSON in browser
Modify your data in real-time with the built-in Monaco editor. No manual saves.
3. Call localhost:4000
Instant GET, POST, PUT, DELETE endpoints available for your local dev environment.
Built for Speed
Live Reload
Every edit in the JSON UI instantly reflects in the API response. Zero downtime.
Auto-save
Changes are persisted to your local `db.json` automatically. Never lose a mock again.
Error Simulation
Simulate 404, 500, or network delays to test your frontend's resilience.
Zero Config
No complex setup. It just works with any valid JSON file out of the box.
Why choose View API?
| Feature | View API |
|---|---|
| Real-time Live Editing | check_circle |
| Local Data Control | check_circle |
| Zero Save Button | check_circle |
| Relationship Embedding | check_circle |
Start mocking in seconds
Install the CLI globally and get your first API running before your coffee is ready.
npm install -g view-api
content_copy