How I Built an API Key Tester in 2 Weeks (React + Vercel)
2026-07-04·
Behind the ScenesDevelopment
The Idea
I was tired of copy-pasting curl commands every time I needed to check if an API key was valid. I managed keys for 10+ providers and needed a faster way.
Week 1: Core MVP
- Day 1-2: Set up Vite + React 19 + Tailwind CSS 4. Created the input component with provider auto-detection logic.
- Day 3-4: Implemented the test engine — real API requests from the browser using
fetchwith CORS proxy support. - Day 5-6: Added the provider grid (19 providers), result display with latency and response body viewer.
- Day 7: Zustand store with localStorage persistence for test history.
Week 2: Polish & Launch
- Day 8-9: Bulk testing, endpoint viewer, one-click copy.
- Day 10-11: UI polish — dark theme, responsive design, animations.
- Day 12: Added Vercel serverless function as a CORS fallback.
- Day 13: Open sourced under MIT, published as npm package.
- Day 14: Deployed to Vercel, shared on Product Hunt.
Key Technical Decisions
| Decision | Why |
|---|---|
| Client-side only | No server costs, privacy-first, no key storage |
| Vite + React 19 | Fast dev experience, React 19's new features |
| Zustand over Redux | Simpler, less boilerplate for this scale |
| Tailwind CSS 4 | Rapid UI iteration, small bundle size |
| Vercel + monorepo | Easy deployment, edge functions when needed |
Lessons Learned
- Start with the simplest version — the first version only tested OpenAI keys
- Auto-detection is harder than it looks — Stripe and OpenAI keys can look similar
- CORS is the biggest headache — a Vite proxy works locally, but production needs a proper solution
- Open source builds trust — people are more willing to paste keys when the code is auditable
🚀 Check out the code: github.com/UsmanSanawar/Api-Key-Chain