Vibecode Playground

Vibecode Editor is a fullstack, web-based IDE built with Next.js and Monaco Editor. It features real-time code execution using WebContainers, AI-powered code suggestions via locally running Ollama models, multi-stack templates, an integrated terminal, and a developer-focused UI for seamless coding in the browser.

Aestheticsuraj234
作者 Aestheticsuraj234
编程 · TypeScript · 更新时间: 6 months ago
138
星标
60
Forks
社区
BBB
安全:
中等
BBB
质量:
ai-autocompletebrowser-idecode-editordeveloper-toolsfullstackjavascript-editorlocal-llmmonaco-editornextauthnextjsollamashadcn-uitailwindcsstypescriptweb-idewebcontainersxtermjs

🧠 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


🧱 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
├── components/              # UI components
├── editor/                 # Monaco, File Explorer, Terminal
├── lib/                     # Utility functions
├── public/                  # Static files (incl. thumbnail)
├── utils/                   # AI helpers, WebContainer logic
├── .env.example             # Example env vars
└── README.md

🎯 Keyboard Shortcuts


✅ Roadmap


📄 License

This project is licensed under the MIT License.


🙏 Acknowledgements


🔓 登录解锁更多
使用 GitHub 登录