Paste any JSON schema → get a live, documented REST API in seconds.
Every time I start a new frontend project, I waste 20–30 minutes setting up a mock API server just so I can fetch something. Tools like json-server are clunky to configure, and hosted solutions lock features behind paywalls. I wanted a dead-simple SaaS that lets anyone paste a JSON object and immediately get shareable, hittable REST endpoints — no setup, no config files, no nonsense.
🔗 snapapi-pi.vercel.app — Live Demo
- Instant API generation — paste JSON, get 5 REST endpoints immediately
- Live mock server — endpoints actually respond with data (in-memory, resets on redeploy)
- Auto-generated docs — each endpoint shows method, path, and sample response
- Copy URL — one-click copy to paste into Postman, frontend fetch calls, etc.
- Freemium model — free tier for side projects, Pro tier for teams
| Layer | Tech |
|---|---|
| Framework | Next.js 14 (App Router) |
| Language | TypeScript |
| Styling | Tailwind CSS |
| API Routes | Next.js Route Handlers |
| Font | JetBrains Mono |
| Deployment | Vercel |
git clone https://github.com/Matt-10z/snapapi
cd snapapi
npm install
npm run dev- User pastes a JSON schema into the editor
- They name their resource (e.g.
users,products) generateEndpoints()creates 5 standard REST endpoints (GET all, GET by ID, POST, PUT, DELETE)- The Next.js API route
/api/mock/[resource]handles actual requests using an in-memory store - Endpoints are rendered as interactive cards with copy-URL and preview functionality
All mock APIs are served under:
https://snapapi-pi.vercel.app/mock/{resource}
https://snapapi-pi.vercel.app/mock/{resource}/:id
Supported methods: GET, POST, PUT, DELETE
- Persistent storage (Redis or PlanetScale)
- Auth tokens per API
- Swagger/OpenAPI export
- Custom response delays (simulate latency)
- Webhook support
- Team workspaces
| Plan | Price | Limits |
|---|---|---|
| Free | $0/mo | 3 APIs, 1k req/mo |
| Pro | $12/mo | Unlimited APIs, 100k req/mo, custom domain |
| Team | $49/mo | Everything in Pro + team seats + SSO |
Target market: frontend developers, QA engineers, bootcamp students, and indie hackers building MVPs.
MIT