Using devlanes? Please consider donating to support my open source work ❤️
Help devlanes grow! Star and share this amazing repository with your friends and co-workers!
Runnable projects that each show one devlanes feature.
Small apps that run under devlanes. Each folder has its own devlanes.yaml and is a separate devlanes project named example-<name>, so you can start one example or several at once, and every Git worktree of this repository runs its own lane of each. The examples double as a test bed for devlanes itself, locally or on a remote box.
- devlanes (install), then
devlanes setuponce so browsers andcurltrust the HTTPS hostnames - Git with symbolic links enabled: every example links to the shared CSS and logo in
_internal/brand. macOS and Linux need nothing. On Windows, turn on Developer Mode and clone withgit clone -c core.symlinks=true .... - What each example lists under Requirements: Node, Docker, uv, Rust and so on
git clone https://github.com/devlanes-run/examples
cd examples/basics-hello-node
devlanes startdevlanes start opens the TUI on the lane and follows the start. Open https://example-hello-node.localhost to see which lane, branch, service and port answered. devlanes stop stops the lane, and devlanes lane clean 0 --yes also removes its data.
A worktree is a lane. Add one and start the same example there:
git worktree add ../examples-checkout -b feat/checkout
cd ../examples-checkout/basics-hello-node
devlanes startBoth lanes run side by side, each with its own ports and hostnames (example-hello-node.localhost and example-hello-node1.localhost). The TUI lists both, and devlanes url ls prints every routed hostname on the machine.
Without a worktree, devlanes lane new --name hello-node-review --start adds a second lane to the same folder. Every example in a checkout shares that folder's lane names, so give each example's extra lane its own name.
Clone this repository on the box, start an example there, and connect from your machine:
# on the box
git clone https://github.com/devlanes-run/examples
cd examples/basics-hello-node && devlanes start --no-ui
devlanes daemon pair
# on your machine
devlanes remote connect my-box --code XXXX-XXXXThe box's hostnames then open in your local browser. remote-docker-box does the same with a container as the box, and Prepare a box and the guides next to it cover SSH, Tailscale and Cloudflare.
catalog.json lists every example and generates the tables below. Status is planned until the example runs as its README describes.
| Example | What it teaches | Needs | Status |
|---|---|---|---|
| basics-hello-node | Start here: one TypeScript server that gets its port and HTTPS hostname from devlanes. | node | ready |
| basics-ready-checks | Tell devlanes when each service is up, with an http, tcp, log or cmd ready check. | node, curl | ready |
| Example | What it teaches | Needs | Status |
|---|---|---|---|
| languages-python-fastapi | Run a FastAPI app under uv behind the HTTPS proxy, and call other HTTPS services from it. | uv | ready |
| languages-rust-axum | Run the services of a Cargo workspace, with a ready timeout long enough for the first build. | rust | ready |
| languages-java-maven | Run two Spring Boot apps from one Maven multi-module build, one calling the other over HTTPS with the devlanes CA trusted. | java | ready |
| languages-go-api | Run two Go programs from one module, one with go run and one rebuilt by air, and call one from the other over HTTPS. | go, task | ready |
| languages-polyglot | Run Node, Bun, Deno, Python and Rust services in one lane through every run_script runner. | node, bun, deno, uv, rust, just, make | planned |
| Example | What it teaches | Needs | Status |
|---|---|---|---|
| web-frontend-api | Point a React frontend at its lane's API, with CORS and a session cookie that work on the lane's domain. | node | ready |
| web-next-app | Run Next.js with the next preset and call an HTTPS API in the same lane from a server component. | node | ready |
| web-realtime-ws | Serve WebSockets and server-sent events through the proxy, and give a service's second port its own hostname. | node | ready |
| web-wildcard-tenants | Serve every tenant on its own subdomain with a wildcard host, while exact hostnames and a fallback gateway take the rest. | node | ready |
| web-provider-stubs | Swap SMS and email providers for local fakes, so each lane's messages land in its own inbox. | node | ready |
| Example | What it teaches | Needs | Status |
|---|---|---|---|
| frameworks-wrangler-workers | Run two Cloudflare Workers with the wrangler preset, joined by a service binding that resolves inside the lane. | node | ready |
| frameworks-cloudflare-vite | Run a React app and a Worker in one Vite server, with an inspector port and stored state of its own in each lane. | node | ready |
| frameworks-quarkus-gradle | Run Quarkus dev mode from Gradle with its own Postgres container and debugger port in each lane. | java, docker | ready |
| frameworks-tauri-desktop | Run a Tauri 2 desktop app with a different identifier in each lane, against a Vite frontend devlanes starts. | node, rust, tauri | planned |
| Example | What it teaches | Needs | Status |
|---|---|---|---|
| infra-postgres-shared | Share one Postgres container between lanes and give each lane its own database, migrated on every start. | node, docker | ready |
| infra-postgres-per-lane | Give each lane its own Postgres container while Redis stays shared, and delete a lane's container together with its data. | node, docker | ready |
| infra-multi-database | Share Postgres, Redis, ClickHouse, RabbitMQ and an S3 store across lanes, with a namespace in each one for every lane. | node, docker | ready |
| infra-plain-containers | Run containers without Compose, such as a mock OIDC provider for each lane, and route a hostname to a server you start yourself. | node, docker | ready |
| Example | What it teaches | Needs | Status |
|---|---|---|---|
| workflows-profiles-tags | Group the seven services of an npm workspace with tags and templates, and start a different set of them with each profile. | node | ready |
| workflows-queue-workers | Run two replicas of a worker that has no port and finishes the job in hand before it stops. | node, docker | ready |
| workflows-pnpm-monorepo | Run a pnpm and turbo monorepo with a service for each package, next to a second project in a subdirectory. | node, pnpm | ready |
| workflows-dev-and-prod | Switch a lane between dev servers and a production build with a profile, and keep personal settings in devlanes.local.yaml. | node | ready |
| workflows-dotenv | Read values from a gitignored .env that every worktree shares, and build each URL from the lane's domain. | node | ready |
| workflows-mprocs-migration | Move a project from mprocs, Caddy and a hand-made port script to devlanes, one piece at a time. | node | ready |
| workflows-ci-with | Wrap a test run in devlanes with, which starts a lane, gives the tests its HTTPS URLs and stops it afterwards. | node | ready |
| workflows-tool-versions | Pin each lane's tool versions and variables with mise and direnv files in the worktree root. | node, mise, direnv | planned |
| Example | What it teaches | Needs | Status |
|---|---|---|---|
| showcase-tui-tour | Walk through the TUI key by key, on the same stack as the demo on devlanes.run. | node, docker | ready |
| showcase-many-services | Start 40 services at once and watch the start gate queue them, with CPU and memory shown for each one. | node | ready |
| showcase-broken | Break services on purpose and read what devlanes and the proxy's error pages say about each failure. | node | ready |
| Example | What it teaches | Needs | Status |
|---|---|---|---|
| remote-docker-box | Run lanes on a box inside a Docker container and open them from your machine under the same hostnames. | docker | ready |
| remote-ssh-box | Prepare a Linux server as a devlanes box and connect to it over SSH, Tailscale or Cloudflare Tunnel. | a linux box, ssh, node | ready |
npm install # once, for Prettier
./format.sh # Prettier, cargo fmt and ruff over every example; --check only reports
./build.sh # installs and builds every example; ./build.sh basics-hello-node builds oneTo add an example, start with AGENTS.md, which has the rules every example follows, for people and coding agents alike. IDEAS.md lists examples for devlanes features that are planned but not shipped.
Licensed under the MIT License. See LICENSE for more information.