Skip to content

Repository files navigation

Dopamine Debugger

Rewrite the source code of a mind infected by brainrot.

A production-grade browser coding game. Every level is a corrupted mental process. You open a real Monaco editor, rewrite the JavaScript that represents that process, and watch the infection die — or mutate — based on the quality of your code.

Lazy code strengthens the infection. Clean, deliberate code permanently weakens it.

Stack

  • Next.js 15 (App Router) + TypeScript
  • Tailwind CSS + custom clinical design tokens
  • Monaco Editor (full VS Code engine)
  • Zustand (persisted progress)
  • Framer Motion
  • Web Worker sandbox for safe player-code execution
  • Supabase-ready (auth + cloud saves)
  • PWA manifest

Getting Started

```bash npm install npm run dev ```

Open http://localhost:3000.

Core Mechanics

  • Real code evaluation — player code runs in a restricted Web Worker with timeout.
  • Focus tracking — leave the tab and the infection gains strength.
  • Minimum focus windows — permanent writes require unbroken concentration.
  • Infection leakage — residual corruption from earlier levels affects later ones.
  • Permanent resistance — long clean sessions grant lasting defense.

Levels (v1)

  1. Infinite Scroll Loop
  2. Novelty Hijack
  3. Working Memory Leak
  4. Impulse Interrupt
  5. Reward Prediction Error
  6. Attention Fragmentation
  7. Habit Reinforcement Loop
  8. Deep Work Collapse

Design Principles

Dark, precise, clinical-tech. Deep blacks, sharp cyan accents, subtle glitch. Zero cartoon. The interface should feel like a real debugging environment that has itself been infected.

About

A production-grade browser coding game. Every level is a corrupted mental process. You open a real Monaco editor, rewrite the JavaScript that represents that process, and watch the infection die — or mutate — based on the quality of your code.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages