CodeCraft is a modern SaaS IDE platform inspired by VS Code, built with Next.js, Convex, and Clerk. It offers real-time collaborative code editing, secure payments, and a rich snippet sharing system—all wrapped in a beautiful, customizable interface.
- ⚡ Real-time code editing with multiplayer support
- 🔒 Secure payment gateway integration (Lemon Squeezy)
- 📤 Code snippet sharing system
- 🎨 VS Code-like interface customization
- 🌐 Authentication & user management (Clerk)
- 💾 Persistent storage & instant sync (Convex)
- 💬 Commenting and starring on snippets
- 🖥️ Multiple language support & Monaco editor themes
- 🏆 Profile stats, favorites, and more
- Main: Next.js, Convex, Clerk, Webhooks
- Payments: Lemon Squeezy
- Other: SaaS, Tailwind CSS, Monaco Editor, Framer Motion
Clone the repo and install dependencies:
git clone https://github.com/liuyuelin/code-craft.git
cd code-craft
npm installCreate a .env.local file with your credentials (see example in the repo):
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=...
CLERK_SECRET_KEY=...
CONVEX_DEPLOYMENT=...
NEXT_PUBLIC_CONVEX_URL=...Run the development server:
npm run devOpen http://localhost:3000 to see the app.
src/app/– Next.js app directory (pages, layouts, components)convex/– Convex backend functions (queries, mutations, webhooks)public/– Static assets (images, logos)src/store/– Zustand store for editor statesrc/types/– TypeScript types
- Themes: Easily switch between Monaco editor themes.
- Languages: Supports multiple programming languages out of the box.
- Payments: Lemon Squeezy integration for Pro upgrades.
- All authentication is handled via Clerk.
- Webhooks are verified for both Clerk and Lemon Squeezy.
- User data is securely stored and managed with Convex.
Inspired by the best features of VS Code and modern online IDEs, CodeCraft aims to make collaborative coding and sharing as seamless as possible.
If you like this project, please give it a star!
Pull requests and issues are welcome.
MIT
This project is heavily inspired by burakorkmez/code-craft and follows the excellent tutorial by Burak Orkmez on YouTube.
Most of the core code and architecture are contributed by the original author.
Special thanks for sharing such a great learning resource!
