MCPcopy Index your code
hub / github.com/aj47/chaos-coder

github.com/aj47/chaos-coder @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
80 symbols 197 edges 34 files 1 documented · 1%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Chaos Coder

Chaos Coder Demo

Overview

Chaos Coder is a Next.js application that generates five variations of web applications simultaneously using AI. This tool helps developers quickly explore different implementation possibilities for their web application ideas.

Note: All the code for this project is located in the nextjs-web-app folder.

Purpose

The purpose of Chaos Coder is to accelerate the development process by providing multiple variations of code solutions for web applications. By generating five different approaches at once, developers can compare and choose the best implementation for their specific needs.

Features

  • Generates five unique web application variations
  • Real-time code preview for each variation
  • Interactive interface with theme toggling
  • Voice input support for hands-free prompting
  • Keyboard shortcuts for quick access to tools

Tech Stack

  • Next.js 14
  • TypeScript
  • Tailwind CSS
  • Framer Motion
  • Hugging Face Inference API

Setup

1. Clone the repository

git clone https://github.com/aj47/chaos-coder.git
cd chaos-coder/nextjs-web-app

2. Install dependencies

npm install

3. Set up environment variables

Create a .env.local file in the project root:

HF_API_TOKEN=your_huggingface_api_token

4. Run the development server

npm run dev

Usage

  1. Access the application in your web browser at http://localhost:3000
  2. Enter your web application requirements or ideas in the input form
  3. View and compare the five different application variations
  4. Use the code preview panel to inspect and edit the generated code
  5. Use keyboard shortcuts for quick access to tools:
  6. Shift+L: Open prompt input
  7. Shift+P: Open performance metrics

Development

To start the development server:

npm run dev

To build for production:

npm run build

To start the production server:

npm start

Note

For best results, be as specific as possible when describing your application requirements. The more detailed your input, the more tailored the generated solutions will be.

Demo

Check out the demo GIF at the top of this README to see Chaos Coder in action.

Community

Join our Discord community for support, discussions, and updates:

Join the Discord Server

Extension points exported contracts — how you extend this code

CodePreviewPanelProps (Interface)
(no doc)
nextjs-web-app/src/components/CodePreviewPanel.tsx
AppTileProps (Interface)
(no doc)
nextjs-web-app/src/components/AppTile.tsx
FrameworkInfo (Interface)
(no doc)
nextjs-web-app/src/components/AppTile.tsx
SignupModalProps (Interface)
(no doc)
nextjs-web-app/src/components/SignupModal.tsx
DeployButtonProps (Interface)
(no doc)
nextjs-web-app/src/components/DeployButton.tsx

Core symbols most depended-on inside this repo

cn
called by 7
nextjs-web-app/src/components/ui/utils.ts
useTheme
called by 6
nextjs-web-app/src/context/ThemeContext.tsx
stopListening
called by 3
nextjs-web-app/src/components/DevTools/VoiceInput.tsx
generate_web_app
called by 1
app.py
deploy
called by 1
nextjs-web-app/deploy.ts
handleStyleSelect
called by 1
nextjs-web-app/src/components/AppTile.tsx
truncateFromStart
called by 1
nextjs-web-app/src/components/DevTools/VoiceInput.tsx
startListening
called by 1
nextjs-web-app/src/components/DevTools/VoiceInput.tsx

Shape

Function 66
Interface 14

Languages

TypeScript99%
Python1%

Modules by API surface

nextjs-web-app/src/components/AppTile.tsx12 symbols
nextjs-web-app/src/app/results/page.tsx8 symbols
nextjs-web-app/src/components/DevTools/VoiceInput.tsx7 symbols
nextjs-web-app/src/app/page.tsx5 symbols
nextjs-web-app/src/context/ThemeContext.tsx4 symbols
nextjs-web-app/src/components/MockDeployButton.tsx4 symbols
nextjs-web-app/src/components/FullscreenPreview.tsx4 symbols
nextjs-web-app/src/lib/supabase/server-client.ts3 symbols
nextjs-web-app/src/components/DevTools/PromptInput.tsx3 symbols
nextjs-web-app/src/components/DeployButton.tsx3 symbols
nextjs-web-app/src/components/ui/shape-landing-hero.tsx2 symbols
nextjs-web-app/src/components/ui/rainbow-button.tsx2 symbols

For agents

$ claude mcp add chaos-coder \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact