Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

241 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 Transform Your Coding Journey with Gamified Learning

Master DSA through interactive challenges, blockchain rewards, and real-time PvP

Quick Links: Live DemoSetup GuideTechnical MapsContribute


🏗️ Technical Architecture

⚔️ PvP Challenge Flow (Real-time)

BrainBytes uses a distributed architecture to handle code execution and real-time updates.

sequenceDiagram
    participant U as User (Frontend)
    participant A as Next.js Server Action
    participant J as Judge0 API
    participant P as Pusher
    participant DB as PostgreSQL (Drizzle)

    U->>A: Submit Solution
    A->>J: POST /submissions
    J-->>A: Execution Result

    par Sync Data & Notify
        A->>DB: Record Stats & $BYTE Rewards
        A->>P: Emit Real-time Update
    end

    P-->>U: Update UI (Result, XP, Tokens)
Loading

⛓️ Web3 Integration Map

How the platform interacts with the Sepolia Testnet for rewards.

🔗 Architecture Overview

Layer Component Description
Provider Wagmi / RainbowKit Manages wallet connections and Web3 hooks
Logic Ethers.js / Hardhat Handles smart contract interaction and gas management
Contract ByteToken (ERC-20) Deployed on Sepolia for gamified token minting and rewards


📂 Project Structure

Simplified view of the BrainBytes modular architecture.

🧱 Directory Overview

├── src/
│   ├── app/            # Next.js App Router (Pages & Layouts)
│   ├── components/     # UI components (shadcn/ui)
│   ├── actions/        # Server Actions (Logic & Mutations)
│   ├── db/             # Drizzle ORM Schema & Migrations
│   ├── lib/            # Shared utilities (Pusher, Auth0, Wagmi)
│   └── contracts/      # Solidity Smart Contracts (Hardhat)
├── documentation/      # Modular Documentation 📄
└── scripts/            # Database Seeding & Deployments


📚 Technical Deep Dives

To make it easier for contributors, we have moved detailed specs to the documentation/ folder:


🤝 Contributing

We love community help! Check our Contributing Guide for ECWOC'26 guidelines.

💙 Contributors

MIT Licensed | © 2024-2026 Gaurav Karakoti

About

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages