Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

12 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🧠 Vibecode Editor – AI-Powered Web IDE

Vibecode Editor Thumbnail

Vibecode Editor is a blazing-fast, AI-integrated web IDE built entirely in the browser using Next.js App Router, WebContainers, Monaco Editor, and local LLMs via Ollama. It offers real-time code execution, an AI-powered chat assistant, and support for multiple tech stacks β€” all wrapped in a stunning developer-first UI.


πŸš€ Features

  • πŸ” OAuth Login with NextAuth – Supports Google & GitHub login.
  • 🎨 Modern UI – Built with TailwindCSS & ShadCN UI.
  • πŸŒ— Dark/Light Mode – Seamlessly toggle between themes.
  • 🧱 Project Templates – Choose from React, Next.js, Express, Hono, Vue, or Angular.
  • πŸ—‚οΈ Custom File Explorer – Create, rename, delete, and manage files/folders easily.
  • πŸ–ŠοΈ Enhanced Monaco Editor – Syntax highlighting, formatting, keybindings, and AI autocomplete.
  • πŸ’‘ AI Suggestions with Ollama – Local models give you code completion on Ctrl + Space or double Enter. Accept with Tab.
  • βš™οΈ WebContainers Integration – Instantly run frontend/backend apps right in the browser.
  • πŸ’» Terminal with xterm.js – Fully interactive embedded terminal experience.
  • πŸ€– AI Chat Assistant – Share files with the AI and get help, refactors, or explanations.
  • πŸ“¦ GitHub Import – Import any public GitHub repository directly into the editor.

🧱 Tech Stack

Layer Technology
Framework Next.js 15 (App Router)
Styling TailwindCSS, ShadCN UI
Language TypeScript
Auth NextAuth (Google + GitHub OAuth)
Editor Monaco Editor
AI Suggestion Ollama (LLMs running locally via Docker)
Runtime WebContainers
Terminal xterm.js
Database MongoDB (via DATABASE_URL)

πŸ› οΈ Getting Started

1. Clone the Repo

git clone https://github.com/your-username/vibecode-editor.git
cd vibecode-editor

2. Install Dependencies

npm install

3. Set Up Environment Variables

Create a .env.local file using the template:

cp .env.example .env.local

Then, fill in your credentials:

AUTH_SECRET=your_auth_secret
AUTH_GOOGLE_ID=your_google_client_id
AUTH_GOOGLE_SECRET=your_google_secret
AUTH_GITHUB_ID=your_github_client_id
AUTH_GITHUB_SECRET=your_github_secret
DATABASE_URL=your_mongodb_connection_string
NEXTAUTH_URL=http://localhost:3000

4. Start Local Ollama Model

Make sure Ollama and Docker are installed, then run:

ollama run codellama

Or use your preferred model that supports code generation.

5. Run the Development Server

npm run dev

Visit http://localhost:3000 in your browser.


πŸ“ Project Structure

.
β”œβ”€β”€ app/                     # App Router-based pages & routes
β”‚   β”œβ”€β”€ (auth)/              # Authentication pages
β”‚   β”œβ”€β”€ (root)/              # Landing page
β”‚   β”œβ”€β”€ api/                 # API routes
β”‚   β”œβ”€β”€ dashboard/           # Dashboard page
β”‚   β”œβ”€β”€ playground/          # Code playground
β”‚   └── settings/            # Settings page
β”œβ”€β”€ components/              # UI components
β”‚   β”œβ”€β”€ modal/               # Modal dialogs
β”‚   β”œβ”€β”€ providers/           # Context providers
β”‚   └── ui/                  # ShadCN UI components
β”œβ”€β”€ features/                # Feature modules
β”‚   β”œβ”€β”€ auth/                # Authentication logic
β”‚   β”œβ”€β”€ dashboard/           # Dashboard components
β”‚   β”œβ”€β”€ playground/          # Playground logic & components
β”‚   └── webcontainers/       # WebContainer integration
β”œβ”€β”€ hooks/                   # Custom React hooks
β”œβ”€β”€ lib/                     # Utility functions
β”œβ”€β”€ prisma/                  # Database schema
β”œβ”€β”€ public/                  # Static assets
β”œβ”€β”€ vibecode-starters/       # Starter templates
β”œβ”€β”€ .env.example             # Example env vars
β”œβ”€β”€ .gitignore               # Git ignore rules
β”œβ”€β”€ LICENSE                  # MIT License
β”œβ”€β”€ CONTRIBUTING.md          # Contributing guidelines
β”œβ”€β”€ CODE_OF_CONDUCT.md       # Code of conduct
└── README.md                # Project documentation

🎯 Keyboard Shortcuts

  • Ctrl + Space or Double Enter: Trigger AI suggestions
  • Tab: Accept AI suggestion
  • Ctrl + S: Save current file
  • Ctrl + Shift + S: Save all files

βœ… What's Included

  • βœ… Google & GitHub OAuth authentication
  • βœ… 6 project templates (React, Next.js, Express, Vue, Hono, Angular)
  • βœ… Monaco Editor with AI autocomplete
  • βœ… WebContainers for in-browser code execution
  • βœ… Interactive terminal with xterm.js
  • βœ… AI chat assistant powered by Ollama
  • βœ… GitHub repository import
  • βœ… Cloud storage for playgrounds
  • βœ… Dark/Light theme support
  • βœ… Responsive design

πŸ“„ License

This project is licensed under the MIT License.


🀝 Contributing

Contributions are welcome! Please read our Contributing Guide for details on our code of conduct and the process for submitting pull requests.


πŸ™ Acknowledgements

About

🧠VibeCode Editor - AI-Powered Web IDE built with Next.js 15, WebContainers, Monaco Editor & Ollama. Create, import, and run code directly in the browser with live preview, interactive terminal, and AI assistance. Supports React, Next.js, Express, Vue, Hono & Angular templates.

Topics

Resources

Code of conduct

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages