Enables containerized development environments with dockerized templates for language-specific scaffolds
Supports GitHub OAuth authentication for user login and account management
Provides dynamic orchestration of REPL environments with per-repl deployments, services, and ingress resources
Integrates with Let's Encrypt via cert-manager for automatic TLS certificate provisioning
Uses Mermaid for diagram generation and visualization in documentation
Provides a Next.js-based web frontend for the development environment
Uses Ingress NGINX Controller for traffic routing to REPL environments
Supports Node.js as one of the available REPL templates
Supports Python as one of the available REPL templates
Leverages React for building the interactive web frontend
Leverages Redis for in-memory session tracking and REPL state management
Uses Tailwind CSS for styling the web interface
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@DevEx MCP Servercreate a new Python REPL with the latest Django template"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
DevEx is an open-source platform to spin up cloud-based development environments (REPLs) that work like your local setup β but in the browser, anywhere, anytime.
Built for flexibility, you can code in your preferred stack, connect over SSH, or run sessions with AI agents via our MCP server. We also support sandboxing AI-generated code securely, letting you test real changes in isolated environments.
Unlike Gitpod or E2B, DevEx is lightweight, self-hostable, and production-grade out of the box β with a developer-first CLI, seamless AI integration, and Kubernetes-native design for infinite scale.
π£ Want to add your own REPL template? It's easy! π Read the Contributing Guide to get started.
β¨ Features
π GitHub OAuth authentication
πͺ Create, Start, Stop, Delete REPLs via Core API
πΎ S3-backed file persistence
π¦ Kubernetes Deployments per REPL (Dynamic)
π‘ WebSocket-based Editor & Terminal
π§Ή Ephemeral containers for cleanup and sync
π HTTPS & TLS via Let's Encrypt & Cert Manager
π¨ Beautiful Next.js + Tailwind frontend
Related MCP server: Magic Component Platform
βοΈ How It Works
graph TB
User[π€ User] --> Web[π Web Frontend<br/>React/Next.js Application]
Web --> Core[π§ Core Backend<br/>β’ User Authentication<br/>β’ Repl Management<br/>β’ S3 Integration<br/>β’ K8s Orchestration]
Core --> S3[(ποΈ S3 Storage<br/>username/repl-id/<br/>βββ templates/<br/>βββ user-files/)]
subgraph K8sCluster["βΈοΈ Kubernetes Cluster"]
direction TB
IngressController[πͺ Traefik Ingress Controller<br/>Traffic Routing]
CertManager[π Cert Manager<br/>TLS Certificate Management]
subgraph ReplResources["π¦ Per-Repl Resources"]
Deployment[π Deployment<br/>Repl Container Instance]
Service[π Service<br/>Internal Network Access]
Ingress[π Ingress<br/>External Access Route]
end
subgraph Pod["π Repl Pod"]
MainContainer[π³ Runner Container<br/>β’ WebSocket Server<br/>β’ File Operations<br/>β’ PTY/Terminal Access<br/>β’ Code Execution]
EphemeralContainer[β‘ Ephemeral Container<br/>File Sync Back to S3<br/>π Cleanup Process]
end
Deployment --> Pod
Service --> Pod
Ingress --> Service
IngressController --> Ingress
end
Core --> K8sCluster
Core -.->|Create Resources<br/>Deploy β Service β Ingress| ReplResources
Web -.->|π WebSocket Connection<br/>β’ File Management<br/>β’ Terminal Access<br/>β’ Real-time Collaboration| MainContainer
Core -.->|π Copy Template<br/>to user directory| S3
EphemeralContainer -.->|πΎ Sync Files Back<br/>Before Cleanup| S3
MainContainer -.->|π Load Files<br/>on Session Start| S3π Session Lifecycle
sequenceDiagram
participant U as User
participant W as Web Frontend
participant C as Core Service
participant K as Kubernetes
participant S as S3 Storage
participant R as Runner Container
U->>W: Create New Repl
W->>C: POST /repl/create
C->>S: Create user directory<br/>Copy template files
U->>W: Start Session
W->>C: POST /repl/start
C->>K: Create Deployment<br/>Service & Ingress
K->>R: Initialize Container
R->>S: Download files
R->>W: WebSocket Connection
Note over U,R: Development Session Active
U->>R: File operations via WebSocket
R->>R: Real-time file editing
U->>W: Close Session
W->>C: POST /repl/stop
C->>K: Inject Ephemeral Container
K->>S: Upload modified files
C->>K: Delete Resourcesπ© Key Components
apps/web/ β Frontend
Built with Next.js + Tailwind CSS
GitHub OAuth login
GUI for File Tree, Editor, Terminal
WebSocket hooks to interact with Runner
apps/core/ β Backend API
Written in Go
Handles user auth, S3 ops, Kubernetes deployments, cleanup
Redis for REPL session state
π See apps/core/README.md for detailed architecture & deployment steps
apps/runner/ β REPL Runtime Container
Lightweight Go server
WebSocket API for:
File tree and file content access
Terminal (PTY) sessions
π See apps/runner/README.md for event list and package internals
infra/k8s/ β Kubernetes Bootstrap & TLS
Contains:
Traefik (hostNetwork) setup
cert-manager+ Letβs Encrypt for auto TLS
π See infra/k8s/README.md for full setup instructions
templates/
Base folders (e.g. Node.js, Python) copied on REPL creation
Language-specific dockerized scaffolds
π¦ Want to add your own template? See the Contribution Guide
π§± Infrastructure
βΈοΈ Kubernetes cluster for REPL pods
π Cert Manager + Letβs Encrypt for TLS
ποΈ S3-compatible storage for persistence
π³ Docker images for runtime environments
βοΈ Redis for in-memory session tracking
π¦ Deployment Flow
User logs in and creates a REPL
apps/core/copies a template intousername/repl-id/on S3apps/core/deploys a pod, service, ingress in Kubernetesapps/runner/connects via WebSocket and serves FS + TerminalOn session end:
Ephemeral container uploads updated files to S3
All K8s resources are cleaned up
π» Tech Stack
Layer | Stack |
Frontend | Next.js, Tailwind, WebSockets |
Backend | GoLang (Echo/Fiber), Redis, S3 SDK |
Runner | GoLang + PTY + WebSocket |
Orchestration | Kubernetes, Docker, Docker Swarm |
Networking | Traefik + cert-manager |
Auth | GitHub OAuth |
π Per-Component Docs
π For deeper implementation details:
π§ Why I Built This
βThis project is my deep dive into Cloud Infrastructure, DevOps, and FullStack Engineering β wrapped in a real-world application.β β Parth Kapoor
π Demo & Links
π§ͺ Live
π§βπ» Portfolio
π GitHub Repo
π€ Contributing
This project is under active development. Want to contribute a template, fix, or feature? Start here π CONTRIBUTING.md
Pull requests, suggestions, and feedback are always welcome!
π License
Licensed under the MIT License