๐ 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
| Action | Points |
|---|---|
| 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
- React 19 - UI library
- Vite - Build tool and dev server
- React Router v7 - Client-side routing
- Tailwind CSS v4 - Utility-first CSS framework
- Radix UI - Accessible component primitives
- Lucide React - Icon library
Backend
- Convex - Real-time backend (database, server functions, file storage)
- Convex Auth - Authentication with GitHub OAuth
Deployment
- Cloudflare Pages - Edge deployment via Wrangler
๐ 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
-
Clone the repository
git clone https://github.com/yourusername/leakhub.git cd leakhub -
Install dependencies
npm install -
Set up Convex
npx convex devThis will prompt you to log in and create a new Convex project.
-
Configure GitHub OAuth
Set up GitHub OAuth credentials in your Convex dashboard and configure the environment variables.
-
Start the development server
npm run devThis runs both the Vite frontend and Convex backend concurrently.
Available Scripts
| Script | Description |
|---|---|
npm run dev | Start frontend and backend in development mode |
npm run dev:frontend | Start only the Vite dev server |
npm run dev:backend | Start only the Convex dev server |
npm run build | Build for production |
npm run preview | Preview production build locally |
npm run deploy | Build and deploy to Cloudflare Pages |
npm run lint | Run TypeScript and ESLint checks |
๐๏ธ Database Schema
Tables
leaks
Stores system prompt leaks with verification status.
| Field | Type | Description |
|---|---|---|
targetName | string | Name of the AI system |
provider | string | Provider/company name |
targetType | enum | Type: model, app, tool, agent, plugin, custom |
leakText | string | The actual system prompt |
leakContext | string? | Additional context |
url | string? | Source URL |
isFullyVerified | boolean | Verification status |
submittedBy | Id<users>? | Submitter reference |
verifiedBy | Id<users>[]? | Verifiers references |
requiresLogin | boolean? | Access requirements |
isPaid | boolean? | Paid service flag |
hasToolPrompts | boolean? | Has tool/function prompts |
requests
Stores community requests for specific system prompts.
| Field | Type | Description |
|---|---|---|
targetName | string | Requested AI system name |
provider | string | Provider/company name |
targetType | enum | Type: model, app, tool, agent, plugin, custom |
targetUrl | string | URL to the target |
closed | boolean | Whether request is fulfilled |
leaks | Id<leaks>[] | Associated leak submissions |
submittedBy | Id<users> | Requester reference |
users
User profiles with points tracking.
| Field | Type | Description |
|---|---|---|
name | string | Display name |
image | string | Profile picture URL |
email | string | Email address |
points | number | Accumulated points |
leaks | Id<leaks>[]? | Submitted leaks |
requests | Id<requests>[]? | Created requests |
๐ Verification Algorithm
LeakHub uses a consensus-based verification system:
- Submission - Users submit leaks linked to requests
- Similarity Detection - Text similarity is calculated using:
- Shingle-based cosine similarity (fast filter)
- Levenshtein distance (precise matching)
- Consensus - When 2+ unique users submit similar content (โฅ85% similarity), the leak is verified
- Rewards - Points are distributed to submitter, verifiers, and request creator
๐ค Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
๐ License
This project is licensed under the Apache License 2.0 - see the LICENSE.txt file for details.