A real-time collaborative code editor with integrated code execution and AI-powered reviews
π Website β’ π Documentation β’ β¨ Features β’ π§© Core Components β’ π Getting Started β’ π Usage β’ ποΈ Architecture β’ π₯ Contributing β’ πΊοΈ Roadmap
For a comprehensive breakdown of the project, visit our DeepWiki covering topics like Technology Stack, Workspace Management, Code Execution, AI Integration, and more.
lumenly.dev is a cloud coding platform that makes collaboration effortless, with no setup required. It's like Google Docs for coding, but smarter and built specifically for developers.
- Live Collaborative Editing: Multiple users can edit code simultaneously, with real-time updates
- Cursor and Selection Tracking: See where your collaborators are working in real-time
- Presence Indicators: Know who's online and actively working
- Activity Tracking: View your coding activity with GitHub-style contribution graphs
- One-Click Execution: Run your code directly in the browser with a single click
- 30+ Languages Support: Code in JavaScript, TypeScript, Python, Java, C++, Rust, and many more
- Real-time Output: View execution results, errors, and compilation messages instantly
- Performance Metrics: Track execution time and resource usage
- Code Reviews: Get AI-powered feedback on your code quality, performance, and best practices
- Suggestions & Improvements: Receive actionable suggestions for making your code better
- Issue Detection: Automatically identify potential bugs, security issues, and performance bottlenecks
- Smart Code Analysis: Benefit from deep code understanding across multiple languages
- Syntax Highlighting: Beautiful, language-specific code highlighting
- Customizable Editor: Light and dark themes with professional coding environments
- Shareable Workspaces: Easily share workspace links with collaborators
- Persistent Storage: Your code is automatically saved in real-time
Lumenly.dev is built around several key subsystems that work together to provide a seamless coding experience:
- Handles creation, joining, and management of collaborative workspaces
- Generates unique 6-character codes for easy sharing
- Maintains workspace state and synchronizes between users
- Based on Monaco Editor (same as VS Code)
- Integrates with real-time collaboration features
- Provides syntax highlighting for 30+ programming languages
- Includes editor toolbar with actions for running code and requesting AI reviews
- Monitors user coding activity with GitHub-style contribution graphs
- Tracks presence information for all collaborators
- Shows cursor positions and selections in real-time
- Built on Convex's real-time database
- Synchronizes code changes instantly across all connected users
- Provides presence indicators and cursor tracking
- Ensures conflict-free collaborative editing
- Connects with Nebius API for code analysis
- Provides intelligent code reviews and suggestions
- Identifies potential bugs and performance issues
- Offers best practice recommendations
- Node.js (v18 or newer)
- npm or yarn
- A Convex account for the backend
- API keys for AI services (optional)
- Clone the repository:
git clone https://github.com/takitajwar17/lumenly.dev.git
cd lumenly.dev- Install dependencies:
npm install- Create and configure a Convex project:
npx convex login
npx convex init- Create a
.envfile with your environment variables:
CONVEX_DEPLOYMENT=
CONVEX_NEBIUS_API_KEY= # Optional, for AI code reviews
- Run the development server:
npm run devThe application will start at http://localhost:5173
The typical user flow in lumenly.dev follows these paths:
-
Authentication Flow:
- User visits lumenly.dev
- Authentication check determines if already signed in
- If not authenticated, user proceeds to sign in
-
Workspace Selection:
- After authentication, user arrives at the Workspace Hub
- Options include:
- Creating a new workspace
- Joining an existing workspace via code
- Opening a previously saved workspace
-
Coding Environment:
- Inside the workspace, users interact with the Code Editor
- Multiple users can collaborate simultaneously
- Real-time changes are visible to all participants
- Visit the application and sign in
- Click "Create a Workspace" to start a new coding space
- Choose your preferred programming language
- You'll receive a 6-character workspace code that you can share with collaborators
- Share your workspace code or URL with others
- Collaborators can join by entering the 6-character code on the home screen
- You'll see real-time presence indicators and cursor positions as people join
- Write or paste your code in the editor
- Click the "Run" button in the toolbar
- View the execution results, including any output, errors, and execution time
- Write your code in the editor
- Click the "AI Review" button to get feedback
- Review the suggestions, issues, and improvements identified by the AI
lumenly.dev is built with modern web technologies and a focus on real-time collaboration.
- Frontend: React, TypeScript, TailwindCSS, Monaco Editor (VS Code's editor)
- Backend: Convex (real-time database and backend functions)
- Code Execution: Piston API (secure code execution environment)
- AI Services: Nebius API for code analysis and reviews
The high-level architecture of lumenly.dev consists of several interconnected layers:
- Frontend Layer: React-based UI components and hooks
- Core Components: Workspace hub, code editor, toolbars, and panels
- Backend Layer: Convex backend for data management and real-time synchronization
- External Services: Piston API for code execution and Nebius API for AI code reviews
- Real-time Collaboration: Built on Convex's real-time database for instant updates
- Monaco Editor Integration: Professional code editing with syntax highlighting
- Presence System: Track user activity and cursor positions in real-time
- Code Execution Engine: Secure, isolated environment for running code in 30+ languages
During typical workflows like code execution and AI review:
-
Code Execution Flow:
- User clicks "Run Code" in the editor toolbar
- Code is sent to the Convex backend
- Convex sends the code to Piston API for execution
- Results are returned to the frontend and displayed to the user
-
AI Review Flow:
- User clicks "AI Review" in the editor toolbar
- Code is sent to the Convex backend
- Convex forwards the code to Nebius API for analysis
- AI feedback is formatted and displayed to the user
The real-time collaboration features are powered by Convex backend:
- Convex database synchronizes changes between all connected users
- Custom hooks like
useCodeSyncanduseEditorPresencemanage real-time state - API endpoints in rooms.ts and userActivity.ts handle data operations
- Updates propagate automatically to all connected clients
The codebase follows a standard React application structure with Convex backend integration:
- /src: Frontend React components and hooks
/components: UI components including editor, toolbar, and panels/hooks: Custom React hooks for real-time synchronization/utils: Helper functions and utilities
- /convex: Backend functions, schema definitions, and APIs
- API endpoints for rooms, user activity, and code execution
- Data schema and validation
- /public: Static assets and resources
Contributions are welcome! Here's how you can help:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Please read our Contributing Guide for details on our code of conduct and development process.
Our plans for future development include:
- GitHub Integration: Import projects directly from GitHub
- Multifile Support: Work with and execute complex projects with multiple files
- Collaborative Code Reviews: Request and provide reviews with inline comments
- Advanced AI Features: Code completion, refactoring suggestions, and more
- Custom Themes: Personalize your coding environment
- Mobile Support: Better experience on tablets and mobile devices
This project is licensed under the MIT License - see the LICENSE file for details.
- Convex for the powerful real-time backend
- Monaco Editor for the code editing experience
- Piston API for secure code execution
Made with β€οΈ by Taki Tajwaruzzaman Khan


