Browser_Based_API_Playground

Test APIs in browser. No CORS, login, or setup.

Visit Repo
Browser_Based_API_Playground banner

About

## Challenges we ran into

1. CORS: Calling third-party APIs directly from the browser fails because of CORS. We solved this by building a backend request engine that proxies requests server-side, where CORS doesn't apply, and returns a normalized response (status, headers, time, size).

  • Security (SSRF): A naive proxy can be abused to hit internal services like the cloud metadata endpoint (169.254.169.254) and leak secrets. We added an SSRF guard that resolves the target host and blocks private/loopback/link-local IPs, plus rate limiting and a body-size cap.
  • Measuring response time & size accurately: We fetch responses as raw bytes on the server to measure exact size, and time the request with high-resolution timers before parsing.
  • Two-domain integration: Frontend (Vercel) and backend (Render) live on different domains, so we made the backend stateless with open CORS, keeping all history/collections in the browser's localStorage.

## The problem it solves

Testing APIs usually means installing heavy desktop apps like Postman or fighting CORS errors when you try to call APIs straight from the browser. For quick checks during fast-paced hackathons, that's overkill.

Browser-Based API Playground is a lightweight, login-free tool to send GET/POST/PUT/PATCH/DELETE requests, set custom headers, params and bodies, and view clean, color-coded JSON responses — all from the browser.

The key part: a secure backend proxy makes the actual requests server-side, so CORS never blocks you. It also reports response time and size, generates ready-to-paste cURL/fetch/axios code, and saves your history and collections locally — no account needed.

Screenshots

Browser_Based_API_Playground screenshot 1Browser_Based_API_Playground screenshot 2Browser_Based_API_Playground screenshot 3Browser_Based_API_Playground screenshot 4

Team

From the public Devfolio project page. Votes, swipes and the judge score are hackfeed's own.

AI judge

Not judged yet. A free model reads this page, compares it with similar projects and this event's winners, then scores it and says what would make it win.

Still being built?

Not checked yet.

Swipe stats

0upvotes
0skips
0saves

Discussion 0

No comments yet. Ask the team something, or say what you'd use it for.

Posting as a guest. Plain text, 1,000 characters max.

Already built nearby

Closest projects by meaning and shared words. Similar isn't the same as copied: read them.