Try describing what you need:

LiveCodes logo

LiveCodes

★ 1.5k
MIT LicenseOpen Source — No Paywall3 Containers — 3 containers — light hosting footprintDocker · Binary · PackageNo external DB5+ active committers (12mo)

About

LiveCodes is an open-source, client-side code playground aimed at developers who want an in-browser environment for experimenting with code across many languages and frameworks. It supports React,...

Community Ratings

No ratings yet

Features

  • 90+ languages/frameworks/processors
  • Browser-based client-side execution
  • Embedded playgrounds
  • Import/export projects
  • Share links
  • Starter templates
  • Assets support
  • Themes
  • Broadcast and sync
  • Backup/restore

Details

Last Updated
Nov 23, 2026
Created
Jan 10, 2021
Install Methods
dockerbinarypackage-manager
Requirements
A static file server for self-hosting
Authentication
local
Backup & Export
native-exportfile-backup
Runtime / Stack
Nodejs
Privacy & Independence
No Cloud RequiredOffline Capable
Theming
Custom themes
Deployment

Deployment: Docker Compose ✓3 Containers — light hosting footprintRuns as 3 containers

Run LiveCodes yourself

Pick how much you want to manage.

1 more way to host

Some links earn us a commission. netcup pays us one and is our preferred VPS host.

Is this your project? Sponsor a listing

Run LiveCodes with Docker Compose

Compose file from the LiveCodes project repository.

3 services · infra: valkey, caddy

no resource limits declared

needs persistent storage (6 volumes)

docker-compose.yml · @ 7470548 · scanned Nov 3, 2026

services:
  app:
    build:
      context: .
      dockerfile: Dockerfile
      args:
        - SELF_HOSTED=true
        - SELF_HOSTED_SHARE=${SELF_HOSTED_SHARE:-true}
        - SELF_HOSTED_BROADCAST=${SELF_HOSTED_BROADCAST:-true}
        - BROADCAST_PORT=${BROADCAST_PORT:-3030}
        - SANDBOX_HOST_NAME=${SANDBOX_HOST_NAME:-${HOST_NAME:-livecodes.localhost}}
        - SANDBOX_PORT=${SANDBOX_PORT:-8090}
        - FIREBASE_CONFIG=${FIREBASE_CONFIG:-}
        - DOCS_BASE_URL=null
        - LOCAL_MODULES=${LOCAL_MODULES:-false}
        - NODE_OPTIONS=--max-old-space-size=8192
    restart: unless-stopped
    environment:
      - SELF_HOSTED=true
      - HOST_NAME=${HOST_NAME:-livecodes.localhost}
      - PORT=${PORT:-443}
      - SELF_HOSTED_SHARE=${SELF_HOSTED_SHARE:-true}
      - SELF_HOSTED_BROADCAST=${SELF_HOSTED_BROADCAST:-true}
      - BROADCAST_PORT=${BROADCAST_PORT:-3030}
      - BROADCAST_TOKENS=${BROADCAST_TOKENS:-}
      - SANDBOX_HOST_NAME=${SANDBOX_HOST_NAME:-${HOST_NAME:-livecodes.localhost}}
      - SANDBOX_PORT=${SANDBOX_PORT:-8090}
      - LOG_URL=${LOG_URL:-null}
      - VALKEY_HOST=valkey
      - VALKEY_PORT=6379
      - NODE_OPTIONS=--max-old-space-size=8192
    volumes:
      - ./assets:/srv/build/assets
    depends_on:
      - valkey

  valkey:
    image: valkey/valkey:8.1.2-alpine3.22
    restart: on-failure
    volumes:
      - valkey-data:/data
    command:
      [
        "sh",
        "-c",
        'if [ "$SELF_HOSTED_SHARE" != "false" ]; then valkey-server --save 60 1 --loglevel warning; fi',
      ]

  server:
    image: caddy:2.10.0-alpine
    entrypoint: ["/bin/sh", "./entrypoint.sh"]
    command:
      [
        "caddy",
        "run",
        "--config",
        "/etc/caddy/Caddyfile",
        "--adapter",
        "caddyfile",
      ]
    restart: unless-stopped
    ports:
      - "80:80"
      - "${PORT:-443}:${PORT:-443}"
      - "${SANDBOX_PORT:-8090}:${SANDBOX_PORT:-8090}"
      - "${BROADCAST_PORT:-3030}:${BROADCAST_PORT:-3030}"
    environment:
      - HOST_NAME=${HOST_NAME:-livecodes.localhost}
      - PORT=${PORT:-443}
      - SANDBOX_HOST_NAME=${SANDBOX_HOST_NAME:-${HOST_NAME:-livecodes.localhost}}
      - SANDBOX_PORT=${SANDBOX_PORT:-8090}
      - BROADCAST_PORT=${BROADCAST_PORT:-3030}
    volumes:
      - ./server/caddy/entrypoint.sh:/srv/entrypoint.sh
      - ./server/caddy/Caddyfile:/etc/caddy/Caddyfile
      - ./server/data/caddy/data:/data
      - ./server/data/caddy/config:/config
    depends_on:
      - app

volumes:
  valkey-data:
    name: livecodes-share-data

This file may be out of date. Check the LiveCodes documentation for current setup steps.

Track your self-hosted stack

Bookmark software to try, rate tools you've used, and keep your collection in one place.

Metadata extracted from README on Nov 5, 2026

Alternatives to LiveCodes

code-server logo

code-server

79.9k
Runs VS Code in the browser so it can be accessed from any machine anywhere.
IDE ToolsPermissive LicenseSelf Hosting Solutions+1
Details
Atheos logo

Atheos

680
Atheos IDE is a web-based IDE framework and cloud-based editor with a small footprint and minimal requirements.
IDE ToolsPermissive LicenseWeb File Managers+1
Details
JupyterLab logo

JupyterLab

15.4k
An extensible web-based environment for interactive and reproducible computing, built on the Jupyter Notebook architecture.
IDE ToolsPermissive LicenseSelf Hosting Solutions
Details
Livebook logo

Livebook

6.0k
Livebook is a web application for writing interactive, collaborative code notebooks with Elixir execution.
Note Taking AppsPermissive LicenseIDE Tools+2
4 Containers
Details

Related Software

Judge0 CE logo

Judge0 CE

4.5k
Judge0 is an open-source online code execution system for running, compiling, and evaluating code in a sandboxed environment.
IDE ToolsCopyleft LicenseTesting Tools+1
4 Containers
Details
t3code logo

t3code

75.1k
T3 Code is an agent control surface for managing coding agents on a local machine from mobile, web, or desktop clients.
Self Hosting SolutionsIDE ToolsAI Coding Assistant+1
2 Containers
Details
asciinema logo

asciinema

2.5k
asciinema server is a self-hostable hosting platform for terminal session recordings and live streaming, with a web interface and HTTP API.
Miscellaneous ToolsPermissive LicenseSelf Hosting Solutions+1
Details
RapidForge logo

RapidForge

43
RapidForge is a lightweight self-hosted platform for building and deploying webhooks, APIs, scheduled tasks, and dynamic pages using simple scripts.
IDE ToolsPermissive LicenseAutomation Tools+4
Details
INGInious logo

INGInious

242
INGInious is an intelligent grader for secure, automated testing of student code, with a backend for grading and a frontend for submissions and teacher administration.
Learning ManagementCopyleft LicenseTesting Tools+2
10 Containers
Details
Coolify logo

Coolify

66.4k
Coolify is an open-source, self-hostable platform for managing servers, applications, and databases as an alternative to Heroku, Netlify, and Vercel.
Platform as a ServiceSelf Hosting SolutionsPermissive License+3
4 Containers
Details