A minimal, high-performance multi-language code runner built by students for students.
- Multi-Language Support: C++, Python, Java, JavaScript, HTML, React
- ** Real-time Preview**: HTML and React components render instantly with fixed blank screen issues
- ** Lightning Fast**: Optimized for speed with zero setup time
- ** GitHub Integration**: Clone repositories directly into the editor
- ** Version History**: Save and revert code snapshots
- ** Auto-Save**: Automatic saving to browser storage every 3 seconds
- ** Keyboard Shortcuts**: Complete keyboard navigation support
- ** Responsive Design**: Works flawlessly on desktop, tablet, and mobile
- ** Light/Dark Mode**: Toggle between themes on the fly
- ** File Explorer**: Create, organize, and manage multiple files and folders
- ** Error Handling**: Real-time error display with helpful messages
Prerequisites: Node.js (16+)
- Install dependencies:
npm install- Run development server:
npm run dev- Build for production:
npm run build- Create and organize multiple files in folders
- Switch between files with instant preview
- Automatic language detection from file extension
- All files in a project auto-saved locally
code-za includes intelligent AI-powered code completion for ALL supported languages:
- JavaScript - Full ES6+ syntax support
- Python - Python 3 completion
- C++ - Modern C++ patterns
- Java - Java 8+ patterns
- HTML - DOM and element suggestions
- React - JSX and React hook completions
- Automatic: Type for 3+ characters and wait 800ms for suggestions
- Manual: Press
Ctrl+G(Mac:Cmd+G) anytime to trigger completion - Navigation:
- ↑↓ Arrow keys to browse suggestions
- Enter to accept highlighted suggestion
- Escape to close panel
- Click any suggestion to insert it
The side code-za AI badge now supports:
Auto Predictmode for inline code suggestionsChat Modefor asking questions about your code- File upload in chat mode (files are sent as text context to the backend AI endpoint)
Limits:
- Up to 8 files per chat session
- Large files are truncated before sending
| Shortcut | Action |
|---|---|
Ctrl+G / Cmd+G |
Trigger code completions |
↑ / ↓ |
Navigate suggestions (when shown) |
Enter |
Accept highlighted suggestion |
Escape |
Close suggestions panel |
Ctrl+S / Cmd+S |
Save snapshot to history |
You can clone any GitHub repository directly into code-za:
- Click the Clone Repository button in the playground
- Enter a GitHub repository URL (e.g.,
https://github.com/owner/repo) - The repository structure will be loaded into the file explorer
- Start editing and running code immediately
Supported repository types:
- Any public GitHub repository
- Multi-language projects
- Nested folder structures
- HTML: Live preview with auto-wrap for incomplete HTML
- React: Pre-loaded React 18 + ReactDOM with Babel transpilation
- Real-time: Changes update preview instantly with proper error boundaries
Create a .env file in the project root for backend settings.
# Code assistant provider: "ollama" (local LLM) or "mock" (template fallback)
CODE_ASSISTANT_PROVIDER=ollama
# Keep fallback templates enabled if the model is unavailable
CODE_ASSISTANT_FALLBACK=true
# Local Ollama configuration
OLLAMA_BASE_URL=http://127.0.0.1:11434
OLLAMA_MODEL=qwen2.5-coder:1.5b
# Optional tuning
CODE_ASSISTANT_TIMEOUT_MS=12000
CODE_ASSISTANT_MAX_SUGGESTIONS=3
# Runtime mode for Python/C++/Java execution:
# auto -> try online Piston first, then local fallback
# online -> force online runtime only
# local -> force local SDK/compiler/runtime only
CODEZA_RUNTIME_MODE=auto- Install Ollama from
https://ollama.com. - Pull a small coding model:
ollama pull qwen2.5-coder:1.5b- Start Ollama (if not already running):
ollama serve- Start this app:
npm run dev| Shortcut | Action |
|---|---|
Ctrl+G / Cmd+G |
Trigger completions manually |
↑ ↓ |
Navigate through suggestions |
Enter |
Accept highlighted suggestion |
Escape |
Close suggestions panel |
Build and run with Docker:
docker-compose up --buildThe application will be available at http://localhost:3000
If the code preview appears blank when running HTML or React:
- Check browser console for errors (F12)
- Ensure your HTML has a valid
<body>tag - For React: verify you're using valid React 18 syntax
- Click "Run" button to refresh the preview
Some languages may not be available in the web sandbox (C++, Java). For local development:
- Install the necessary compiler/runtime
- Run the development server locally with
npm run dev - Use Docker for a consistent environment across systems
For local fallback execution, install:
- Python 3 (
python/py -3) - JDK (
javacandjavain PATH) - C++ compiler (
g++from MinGW-w64 or LLVM toolchain)
Quick checks:
py -3 --version
javac -version
java -version
g++ --version| Tool | Version | Purpose |
|---|---|---|
| Framework | Web server | |
| Runtime | JavaScript runtime | |
| Tool | TypeScript executor | |
| Database | Data storage |
| Tool | Purpose |
|---|---|
| Containerization | |
| Orchestration |
- This repository was cleaned to remove AI Studio template metadata and branding.
- If you plan to use any external API keys, add them to an
.envfile and do not commit secrets to the repository.
MIT