Codexpa is an open-source, web-based coding workspace platform (like Replit) that allows developers to run, write, and contribute to projects directly from their browser — powered by containerized environments and VS Code UI.
- Next.js (App Router)
- Tailwind CSS
- Monaco Editor / code-server (VS Code UI)
- tRPC (for type-safe API calls)
- tRPC (internal logic)
- Express (container runtime APIs)
- Docker (for sandboxed code execution)
- Optional: Firecracker (for microVM-based isolation)
- Turborepo
apps/web
→ Next.js frontend with tRPCapps/runtime-api
→ Express server for running code in containerspackages/ui
→ Shared UI componentspackages/config
→ Shared configpackages/trpc
→ Shared tRPC logic
- OAuth via
next-auth
(GitHub, Google, etc.)
- Connect GitHub repo directly (no local clone needed)
- Run and edit code in the browser
- Support for multiple languages (Node.js, Python, Go, etc.)
- Terminal + code editor
- Auto-deployable environments
- Option to self-host or use hosted Codexpa instance
apps/
web/ # Next.js app with tRPC routes
runtime-api/ # Express backend to execute code
packages/
ui/ # Shared UI components (Tailwind)
trpc/ # Shared types and routers
config/ # tsconfig, eslint, etc.
git clone https://github.com/your-org/codexpa.git
cd codexpa
pnpm install
pnpm run dev
- Frontend connects to tRPC APIs for user/project actions
- Backend (Express) manages Docker containers to compile & run code
- Users can launch projects in isolated environments
- All code execution is sandboxed
You can deploy the full stack to:
- Vercel (Frontend)
- Render / Fly.io / DigitalOcean (Express backend)
- Docker containers for code runners
- Local (free) — all runs on user machine
- Cloud (low cost) — metered per usage or per machine
Codexpa — "Code + Experience Platform"
A playground for developers. (A Replit alternative)
- Handled via NextAuth with GitHub or Google providers
- Redirects back to Express APIs with secure tokens
- Collaborative coding (like Live Share)
- AI-assisted code completion
- Persistent environments
- Pay-per-use metering
- Plugin support
MIT License
Open to contributors.
Built with ❤️ by the Codexpa team.
Feel free to open PRs or issues!