๐Ÿ”“ LeakHub

December 21, 2025 ยท View on GitHub

The community hub for crowd-sourced system prompt leak verification. CL4R1T4S!

LeakHub is an open-source platform where the community can submit, verify, and browse leaked AI system prompts. The platform uses a consensus-based verification system to ensure authenticity and rewards contributors with a points-based leaderboard.


โœจ Features

  • ๐Ÿ” System Prompt Library - Browse verified AI system prompts organized by provider
  • ๐Ÿ“ Submit Leaks - Contribute system prompts for AI models, apps, tools, agents, and plugins
  • โœ… Community Verification - Leaks require 2 unique users to verify before becoming "verified"
  • ๐Ÿ† Leaderboard & Points System - Earn points for contributions and climb the rankings
  • ๐ŸŽฏ Requests System - Request specific AI system prompts from the community
  • ๐Ÿ” GitHub OAuth - Secure authentication via GitHub
  • โšก Real-time Updates - Instant updates powered by Convex

Points System

ActionPoints
Submit a leak that gets verified (first submitter)+100
Verify someone else's leak+50
Create a request that gets verified+20

๐Ÿ› ๏ธ Tech Stack

Frontend

Backend

  • Convex - Real-time backend (database, server functions, file storage)
  • Convex Auth - Authentication with GitHub OAuth

Deployment


๐Ÿ“ Project Structure

leakhub/
โ”œโ”€โ”€ convex/                    # Convex backend
โ”‚   โ”œโ”€โ”€ _generated/            # Auto-generated types and API
โ”‚   โ”œโ”€โ”€ auth.config.ts         # Auth configuration
โ”‚   โ”œโ”€โ”€ auth.ts                # Auth handlers
โ”‚   โ”œโ”€โ”€ github.ts              # GitHub API integration
โ”‚   โ”œโ”€โ”€ http.ts                # HTTP endpoints
โ”‚   โ”œโ”€โ”€ leaderboard.ts         # Leaderboard queries
โ”‚   โ”œโ”€โ”€ leaks.ts               # Leak mutations and queries
โ”‚   โ”œโ”€โ”€ requests.ts            # Request mutations and queries
โ”‚   โ”œโ”€โ”€ schema.ts              # Database schema
โ”‚   โ””โ”€โ”€ users.ts               # User mutations and queries
โ”œโ”€โ”€ src/                       # React frontend
โ”‚   โ”œโ”€โ”€ components/            # Reusable UI components
โ”‚   โ”‚   โ”œโ”€โ”€ ui/                # Shadcn/Radix UI components
โ”‚   โ”‚   โ”œโ”€โ”€ leakLibrary.tsx    # Leak browser component
โ”‚   โ”‚   โ”œโ”€โ”€ navbar.tsx         # Navigation bar
โ”‚   โ”‚   โ””โ”€โ”€ submitLeakForm.tsx # Leak submission form
โ”‚   โ”œโ”€โ”€ pages/                 # Page components
โ”‚   โ”‚   โ”œโ”€โ”€ Dashboard.tsx      # User dashboard
โ”‚   โ”‚   โ”œโ”€โ”€ Leaderboard.tsx    # Points leaderboard
โ”‚   โ”‚   โ””โ”€โ”€ Requests.tsx       # Leak requests page
โ”‚   โ”œโ”€โ”€ lib/                   # Utility functions
โ”‚   โ”œโ”€โ”€ App.tsx                # Main app component
โ”‚   โ”œโ”€โ”€ main.tsx               # Entry point
โ”‚   โ””โ”€โ”€ index.css              # Global styles
โ”œโ”€โ”€ public/                    # Static assets
โ”œโ”€โ”€ dist/                      # Production build output
โ”œโ”€โ”€ package.json               # Dependencies and scripts
โ”œโ”€โ”€ vite.config.ts             # Vite configuration
โ”œโ”€โ”€ tsconfig.json              # TypeScript configuration
โ””โ”€โ”€ wrangler.jsonc             # Cloudflare deployment config

๐Ÿš€ Getting Started

Prerequisites

Installation

  1. Clone the repository

    git clone https://github.com/yourusername/leakhub.git
    cd leakhub
    
  2. Install dependencies

    npm install
    
  3. Set up Convex

    npx convex dev
    

    This will prompt you to log in and create a new Convex project.

  4. Configure GitHub OAuth

    Set up GitHub OAuth credentials in your Convex dashboard and configure the environment variables.

  5. Start the development server

    npm run dev
    

    This runs both the Vite frontend and Convex backend concurrently.

Available Scripts

ScriptDescription
npm run devStart frontend and backend in development mode
npm run dev:frontendStart only the Vite dev server
npm run dev:backendStart only the Convex dev server
npm run buildBuild for production
npm run previewPreview production build locally
npm run deployBuild and deploy to Cloudflare Pages
npm run lintRun TypeScript and ESLint checks

๐Ÿ—„๏ธ Database Schema

Tables

leaks

Stores system prompt leaks with verification status.

FieldTypeDescription
targetNamestringName of the AI system
providerstringProvider/company name
targetTypeenumType: model, app, tool, agent, plugin, custom
leakTextstringThe actual system prompt
leakContextstring?Additional context
urlstring?Source URL
isFullyVerifiedbooleanVerification status
submittedById<users>?Submitter reference
verifiedById<users>[]?Verifiers references
requiresLoginboolean?Access requirements
isPaidboolean?Paid service flag
hasToolPromptsboolean?Has tool/function prompts

requests

Stores community requests for specific system prompts.

FieldTypeDescription
targetNamestringRequested AI system name
providerstringProvider/company name
targetTypeenumType: model, app, tool, agent, plugin, custom
targetUrlstringURL to the target
closedbooleanWhether request is fulfilled
leaksId<leaks>[]Associated leak submissions
submittedById<users>Requester reference

users

User profiles with points tracking.

FieldTypeDescription
namestringDisplay name
imagestringProfile picture URL
emailstringEmail address
pointsnumberAccumulated points
leaksId<leaks>[]?Submitted leaks
requestsId<requests>[]?Created requests

๐Ÿ”’ Verification Algorithm

LeakHub uses a consensus-based verification system:

  1. Submission - Users submit leaks linked to requests
  2. Similarity Detection - Text similarity is calculated using:
    • Shingle-based cosine similarity (fast filter)
    • Levenshtein distance (precise matching)
  3. Consensus - When 2+ unique users submit similar content (โ‰ฅ85% similarity), the leak is verified
  4. Rewards - Points are distributed to submitter, verifiers, and request creator

๐Ÿค Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

๐Ÿ“„ License

This project is licensed under the Apache License 2.0 - see the LICENSE.txt file for details.


๐Ÿ™ Acknowledgments

  • Built with Convex - The fullstack TypeScript development platform
  • UI components from shadcn/ui
  • Icons from Lucide