A web app to securely validate API keys for multiple providers.
- Multi-Provider Validation: Supports OpenAI, Stripe, and GitHub.
- Secure: Keys are validated server-side and never stored.
- Node.js (v18+ recommended)
- npm, pnpm, or yarn
-
Clone the repository:
git clone https://github.com/ibrahimraimi/api-key-validator cd api-key-validator -
Install dependencies:
npm install # or pnpm install -
Start the development server:
pnpm dev
src/
├── lib/
│ ├── api-providers/ # Provider-specific validation logic
│ │ ├── github.ts
│ │ ├── openai.ts
│ │ └── stripe.ts
│ └── components/ui/ # shadcn-svelte components
├── routes/
│ ├── api/
│ │ └── validate/ # Server-side validation endpoint
│ ├── +layout.svelte # Main layout
│ └── +page.svelte # Main application page
└── app.css # Tailwind CSS v4 entry point- OpenAI: Validates keys starting with
sk-. - Stripe: Validates keys starting with
sk_test_orsk_live_. - GitHub: Validates keys starting with
ghp_orgithub_pat_.
