CipherStudio is a real-time React code editor and compiler featuring live preview, file management, and cloud storage support — designed for developers who love to code on the go 🚀
✅ Live React Compilation — Real-time code execution with instant preview ✅ Multi-File Management — Create, edit, and manage multiple files easily ✅ Auto-Save — Automatic local saving every 2 seconds ✅ Cloud Storage — Sync your projects via MongoDB ✅ Theme Modes — Switch between Light 🌞 and Dark 🌙 ✅ Error Detection — Built-in syntax and runtime error tracking ✅ Project Management — Rename, navigate, and organize your projects
- React (Vite) – Fast and modular UI
- SandPack – Powerful live code editor
- Axios – API communication
- Lodash – Utility functions
- Node.js + Express – RESTful API framework
- MongoDB + Mongoose – Cloud data storage
- CORS – Secure cross-origin requests
- dotenv – Environment configuration
cd client
npm install
npm run devcd server
npm installCreate a .env file in the server directory:
MONGODB_URI=your_mongodb_connection_string
PORT=5000Start the backend server:
node server.js📦 ReactComplier/
├── client/ # Frontend
│ ├── src/
│ │ ├── components/ # Reusable components
│ │ ├── services/ # API and autosave logic
│ │ ├── assets/ # Images & static files
│ │ └── App.jsx # Main App component
│ └── package.json
└── server/ # Backend
├── models/ # MongoDB schemas
├── server.js # Express setup
└── package.json
- Saves locally every 2 seconds
- Manual cloud save to MongoDB
- Prevents save conflicts between local and cloud
- Syntax highlighting
- Error feedback in real time
- Live React preview
- Multiple files + closable tabs
- Unique Project IDs
- Rename and navigate files easily
- Theme and layout customization
| Method | Endpoint | Description |
|---|---|---|
POST |
/api/projects |
Create or update a project |
GET |
/api/projects/:projectId |
Retrieve a project by its ID |
- Fork the repo
- Create a branch —
git checkout -b feature/YourFeature - Commit your changes —
git commit -m "Add YourFeature" - Push to your branch —
git push origin feature/YourFeature - Submit a Pull Request 🎉
Licensed under the ISC License — free to use, modify, and share.