Solve mysteries through SQL.
See the code➡️ Play the game online at sqlnoir.com
Step into the shoes of a real detective and solve crimes using SQL! SQL Noir is an interactive mystery-solving game where you crack cases by writing SQL queries.
SQLNoir is available in:
Welcome to SQL Noir, where you're a data detective solving criminal cases through the power of SQL. Each case file presents you with a unique crime scenario and a database full of evidence. Your mission is to:
Prerequisite: Node.js 18.17+ (Next.js requirement).
Clone this repository
Install dependencies:
npm install
Go to Supabase and create a new project
Copy the generated anon public key and Project URL from the project
Create a .env.local file at the root of the project and set the following environment variables:
NEXT_PUBLIC_SUPABASE_ANON_KEY=your_anon_key
NEXT_PUBLIC_SUPABASE_URL=your_supabase_url
(Legacy VITE_ variables are still read, but using NEXT_PUBLIC_ is recommended.)
Install Supabase CLI:
Login to Supabase:
supabase login
Link your project ( You need to be in the root of the project to run this command ):
supabase link
Run database migrations:
supabase db push
Start the development server:
npm run dev
Open your browser and navigate to http://localhost:3000
Each case in SQL Noir is a unique crime that needs solving. Cases range from simple thefts to complex murders, organized by difficulty level. Put your SQL skills to the test and climb the ranks from rookie to master detective.
We welcome new detectives! Whether you want to:
Check the Contributing Guidelines to join the force and help make SQL Noir even better.
1,620 followers · starred Jun 2025
17 followers · starred Feb 2025
102 followers · starred Feb 2025
61 followers · starred Mar 2025
Solve mysteries through SQL.
See the code➡️ Play the game online at sqlnoir.com
Step into the shoes of a real detective and solve crimes using SQL! SQL Noir is an interactive mystery-solving game where you crack cases by writing SQL queries.
SQLNoir is available in:
Welcome to SQL Noir, where you're a data detective solving criminal cases through the power of SQL. Each case file presents you with a unique crime scenario and a database full of evidence. Your mission is to:
Prerequisite: Node.js 18.17+ (Next.js requirement).
Clone this repository
Install dependencies:
npm install
Go to Supabase and create a new project
Copy the generated anon public key and Project URL from the project
Create a .env.local file at the root of the project and set the following environment variables:
NEXT_PUBLIC_SUPABASE_ANON_KEY=your_anon_key
NEXT_PUBLIC_SUPABASE_URL=your_supabase_url
(Legacy VITE_ variables are still read, but using NEXT_PUBLIC_ is recommended.)
Install Supabase CLI:
Login to Supabase:
supabase login
Link your project ( You need to be in the root of the project to run this command ):
supabase link
Run database migrations:
supabase db push
Start the development server:
npm run dev
Open your browser and navigate to http://localhost:3000
Each case in SQL Noir is a unique crime that needs solving. Cases range from simple thefts to complex murders, organized by difficulty level. Put your SQL skills to the test and climb the ranks from rookie to master detective.
We welcome new detectives! Whether you want to:
Check the Contributing Guidelines to join the force and help make SQL Noir even better.
1,620 followers · starred Jun 2025
17 followers · starred Feb 2025
102 followers · starred Feb 2025
61 followers · starred Mar 2025