Skip to content
Dwarkesh edited this page Apr 21, 2026 · 1 revision

๐Ÿ“š MiniCode Wiki

Welcome to the official MiniCode Wiki โ€” a complete documentation hub for understanding, using, developing, and deploying the MiniCode platform.

MiniCode is a full-stack coding ecosystem that integrates GitHub workflows, AI-powered evaluation, gamification, and academic management tools into a single platform.


๐Ÿงญ Table of Contents

  1. Overview
  2. System Architecture
  3. Core Concepts
  4. User Roles & Workflows
  5. Submission & AI Judge Pipeline
  6. Deployment Guide
  7. Backend Developer Guide
  8. Design & UX Vision
  9. Troubleshooting
  10. Future Scope

๐Ÿ“Œ 1. Overview

MiniCode is designed for:

  • ๐ŸŽ“ Colleges and universities
  • ๐Ÿ’ป Coding clubs
  • ๐Ÿ† Hackathons and competitions

It enables:

  • Real GitHub-based coding
  • AI-assisted evaluation (Gemini)
  • Role-based access control
  • Events, leaderboards, and XP systems

Unlike traditional platforms, MiniCode focuses on real-world development workflows instead of isolated code editors.


๐Ÿ—๏ธ 2. System Architecture

Frontend (Next.js)
   โ†“
Backend API (FastAPI)
   โ†“
Redis (Cache + Queue)
   โ†“
Database (PostgreSQL / SQLite)
   โ†“
Celery Workers (Async Processing)
   โ†“
External APIs (GitHub, Google OAuth, Gemini AI)

๐Ÿงฉ 3. Core Concepts

GitHub-Based Coding

  • Each problem creates a private repository
  • Students write and commit code locally
  • Submission uses commit history as context

AI-Based Judging

  • Uses Gemini API

  • Evaluates:

    • Correctness
    • Code quality
    • AI probability
  • Returns structured feedback

โš ๏ธ Code is NOT executed in a sandbox.

Gamification

  • XP system
  • Levels
  • Leaderboards
  • Events and rewards

๐Ÿ‘ฅ 4. User Roles & Workflows

๐ŸŽ“ Student

  • Login via GitHub
  • Start problems โ†’ repo created
  • Write code and commit
  • Submit โ†’ AI evaluation
  • Earn XP and climb leaderboard

๐Ÿ‘จโ€๐Ÿซ Faculty

  • Create problems
  • Monitor student performance
  • Award XP
  • Manage events

๐Ÿ› ๏ธ Admin

  • Manage users and roles
  • View system analytics
  • Maintain platform operations

Detailed workflow reference: ๎ˆ€filecite๎ˆ‚turn1file3๎ˆ


๐Ÿ”„ 5. Submission & AI Judge Pipeline

  1. Student starts problem
  2. Repo created via GitHub API
  3. Student commits code
  4. Submission created (pending)
  5. Celery worker processes submission
  6. AI judge analyzes code
  7. Score and feedback stored

Key Notes:

  • Async processing ensures scalability
  • AI judging is probabilistic

๐Ÿš€ 6. Deployment Guide

MiniCode supports both free-tier deployment and production-scale hosting.

Free Deployment Stack ($0/month)

  • Frontend: Vercel
  • Backend: Render
  • Database: Supabase
  • Redis: Upstash
  • AI: Google Gemini Free Tier

Production Deployment

  • Scalable backend instances
  • Dedicated database
  • Paid AI usage

Full deployment guide: ๎ˆ€filecite๎ˆ‚turn1file1๎ˆ


๐Ÿง  7. Backend Developer Guide

Responsibilities

  • Authentication & authorization
  • API management
  • Submission pipeline
  • Database handling

Key Components

  • FastAPI backend
  • SQLModel ORM
  • Celery workers
  • Redis caching

Important Files

  • main.py โ†’ API entry point
  • worker.py โ†’ async tasks
  • judge.py โ†’ AI evaluation
  • auth.py โ†’ authentication

Full developer reference: ๎ˆ€filecite๎ˆ‚turn1file4๎ˆ


๐ŸŽจ 8. Design & UX Vision

MiniCode follows a modern SaaS + Gen-Z developer experience philosophy.

Principles

  • Zero friction navigation
  • Gamified engagement
  • Clean, premium UI
  • AI-assisted feedback instead of harsh errors

Visual Style

  • Dark theme (glassmorphism + neon accents)
  • Smooth animations
  • Dashboard-driven experience

Full design vision: ๎ˆ€filecite๎ˆ‚turn1file2๎ˆ


๐Ÿ› ๏ธ 9. Troubleshooting

Common Issues

Submission stuck

  • Worker not running
  • Redis connection failed

OAuth errors

  • Incorrect callback URL
  • Invalid client credentials

Repo issues

  • Problem not started correctly
  • GitHub auth expired

AI errors

  • Invalid API key

๐Ÿ”ฎ 10. Future Scope

  • Code execution sandbox
  • Advanced plagiarism detection
  • AI mentorship system
  • Mobile app support

๐Ÿ“Œ Conclusion

MiniCode is more than a coding platform โ€” it is a complete development ecosystem that prepares students for real-world engineering workflows.

By combining GitHub, AI, and gamification, it bridges the gap between:

๐Ÿ“š Learning ๐Ÿ’ป Development ๐Ÿ† Competition