Skip to content

ibrahimraimi/api-key-validator

Repository files navigation

API Key Validator

A web app to securely validate API keys for multiple providers.

API Key Validator

Features

  • Multi-Provider Validation: Supports OpenAI, Stripe, and GitHub.
  • Secure: Keys are validated server-side and never stored.

Getting Started

Prerequisites

  • Node.js (v18+ recommended)
  • npm, pnpm, or yarn

Installation

  1. Clone the repository:

    git clone https://github.com/ibrahimraimi/api-key-validator
    cd api-key-validator
  2. Install dependencies:

    npm install
    # or
    pnpm install
  3. Start the development server:

    pnpm dev

Project Structure

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

Supported Providers

  • OpenAI: Validates keys starting with sk-.
  • Stripe: Validates keys starting with sk_test_ or sk_live_.
  • GitHub: Validates keys starting with ghp_ or github_pat_.

About

A web app to securely validate API keys for multiple providers.

Topics

Resources

Stars

Watchers

Forks