AlgoSleuth is a cyber-themed DSA learning app that turns code analysis into a forensic investigation.
Users paste a DSA solution, choose how they want the analysis delivered, and receive a structured case-file style report with evidence boards, bug traces, complexity insights, and next-step clues.
Live site: www.algosleuth.me
- Analyzes DSA code submissions with an AI-backed forensic workflow
- Supports guest usage with a limited free trial before sign-in is required
- Lets users tune the report through Modus Operandi settings:
- Expertise Level
- Visualization style
- Detail Depth
- Stores user cases and follow-up case messages in Supabase
- Supports authentication, password reset, and account deletion flows
- Open the landing page and start an investigation
- Paste code into the Suspect Profile input
- Configure Modus Operandi
- Run the scan
- Review the generated report, evidence, and follow-up clues
- Frontend: React 19, TypeScript, Vite
- Styling: Tailwind via CDN, custom cyber UI styling
- Backend services: Supabase
- Auth: Supabase Auth
- Database: Supabase Postgres with Row Level Security
- Edge Functions: Supabase Edge Functions
- AI analysis: Gemini via a Supabase function proxy
AlgoSleuth reframes algorithm debugging as a case investigation. Instead of returning a plain answer, it generates a structured dossier with findings, reasoning, and suggested fixes.
Users can tailor the analysis before scanning:
Expertise LevelBeginnerfor more guided explanationsIntermediatefor tighter, assumption-aware feedback
VisualizationText Onlyfor a report-first experience- visual traces and evidence-style views where supported
Detail DepthBrieffor concise outputFull Reportfor deeper reasoning and context
Unauthenticated users can try the app before creating an account. Guest usage is capped so users can explore the product before signing in.
Signed-in users can persist evidence records, revisit old investigations, and continue conversations tied to a stored case.
.
|-- App.tsx
|-- components/
|-- contexts/
|-- services/
|-- supabase/
| |-- functions/
| |-- schema.sql
|-- public/
|-- index.html
|-- vite.config.ts
Create a .env file in the project root:
VITE_SUPABASE_URL=your_supabase_project_url
VITE_SUPABASE_ANON_KEY=your_supabase_anon_key
GEMINI_API_KEY=your_gemini_api_key_for_local_builds_if_neededNotes:
- The frontend directly requires
VITE_SUPABASE_URLandVITE_SUPABASE_ANON_KEY - Production Gemini requests are expected to go through the Supabase Edge Function secret
GEMINI_API_KEY
Install dependencies:
npm installRun the app:
npm run devBuild for production:
npm run buildPreview the production build:
npm run previewRun supabase/schema.sql in the Supabase SQL Editor.
This creates:
casescase_messagesprofiles
It also enables and enforces Row Level Security so users can only access their own data.
This project uses Supabase Edge Functions for server-side operations such as:
gemini-proxydelete-accounttest-email
Deploy functions with the Supabase CLI, for example:
supabase functions deploy gemini-proxy
supabase functions deploy delete-accountSet these in Supabase -> Edge Functions -> Secrets as needed:
GEMINI_API_KEYSUPABASE_SERVICE_ROLE_KEYRESEND_API_KEYif transactional email is used in functions
Recommended production settings:
- Set
Site URLto your production domain - Add redirect URLs for production and localhost
- Enable custom SMTP for reliable verification and reset emails
AlgoSleuth is deployed on Vercel.
- Connect the repository to Vercel
- Set the required environment variables
- Deploy the app
The project can be served from a custom domain such as:
https://www.algosleuth.me
This repo includes:
public/robots.txtpublic/sitemap.xml- production metadata in
index.html
After deployment, submit the sitemap to Google Search Console.
AlgoSleuth is intentionally not a generic coding dashboard. The interface uses a detective-lab visual system with:
- CRT overlays
- grid backgrounds
- evidence-themed panels
- terminal-style motion
- pinned case-file visuals
- richer algorithm visualizations
- stronger multi-level tutoring modes
- expanded evidence/timeline interactions
- improved production email delivery flow
- additional SEO and structured content pages
This project is licensed under the MIT License. See the LICENSE file for details.