Skip to content

Running DartPad locally

Field Value
Source Obsidian · Claudian plugin
Session ses_f47002f15ffesJ8f3ZoTDkcvJI
Started 2026-09-19 09:29
Messages 48
Parts 248 (text+patch+tool) · 38 reasoning · 60 tool calls
Model opencode:big-pickle
Directory /home/sambasene/obsidian/Vault

can you run dartpad locally

<linked_content path=“local run.md” />

read — {"filePath": "/home/sambasene/obsidian/Vault/local run.md"}

<path>/home/sambasene/obsidian/Vault/local run.md</path>
<type>file</type>
<content>
1: freecodecamp.org
2: the odin project
3: appwrite
4: misskey
5: arterisk
6: virtual box - kali - 950 tester@
7: idle twilight
8: nextcloud
9: bagisto
10: openclaw
11: hermes
12: opencode
13: nextcloud
14: rocket chat
15: linux journey
16: n8n
17:
18:
19: ****
20:
21:
22: supabase
23: monkey type
24: moodle
25: dartpad
26: kaggle
27:
28: over the wire bandit
29: peertube
30:
31:
32: matrix
33: element
34: strapi
35: freepbx
36: rust desk
37:
38:
39:
40:
41: athena vm 950 nine 246 ten
42:
43:
(End of file - total 43 lines)
</content>

skill — {"name": "local-app-setup"}

<skill_content name="local-app-setup">
# Skill: local-app-setup
# Local Application Setup (with bilingual documentation)
## Overview
When the user says they want to set up, install, configure, or run some app/software/service locally, this skill drives two parallel tracks every time:
1. **Track B (get it running)** — Work with the user to install and run the thing: give exact commands, capture results, troubleshoot.
2. **Track D (document it bilingually)** — Create and progressively maintain a set of Obsidian notes: a **French** report, an **English** report, and **side/companion files** (setup guide, config template, results log). All written in the **user's first-person voice**.
Run *
…[truncated]

DartPad is on your local run list (line 25 of local run.md). Let me set up both tracks: get it running and document it bilingually. First, let me assess the environment.

bash — uname -a && cat /etc/os-release 2>/dev/null | head -5

Linux Zelus 7.1.13-200.fc44.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Sep 2 13:58:38 UTC 2026 x86_64 GNU/Linux
NAME="Freedesktop SDK"
VERSION="26.08 (Flatpak runtime)"
VERSION_ID=26.08
ID=org.freedesktop.platform
PRETTY_NAME="Freedesktop SDK 26.08 (Flatpak runtime)"

bash — which dart flutter webdev 2>&1; dart --version 2>&1; flutter --version 2>&1 | head -3

which: no dart in (/usr/local/bin:/opt/homebrew/bin:/usr/bin:/bin:/home/sambasene/bin:/home/sambasene/.local/bin:/home/sambasene/.bun/bin:/home/sambasene/.opencode/bin:/home/sambasene/.docker/bin:/home/sambasene/.volta/bin:/home/sambasene/.asdf/shims:/home/sambasene/.asdf/bin:/home/sambasene/.fnm:/home/sambasene/.var/app/com.visualstudio.code/config/nvm/versions/node/v24.20.0/bin:/app/bin:/app/texlive/bin:/app/texlive/bin/x86_64-linux:/app/texlive/bin/aarch64-linux)
which: no flutter in (/usr/local/bin:/opt/homebrew/bin:/usr/bin:/bin:/home/sambasene/bin:/home/sambasene/.local/bin:/home/sambasene/.bun/bin:/home/sambasene/.opencode/bin:/home/sambasene/.docker/bin:/home/sambasene/.volta/bin:/ho
…[truncated]

glob — {"pattern": "Local Services.md"}

/home/sambasene/obsidian/Vault/Local Services.md

We’re inside the Obsidian Flatpak sandbox (Freedesktop SDK runtime), and no Dart SDK is installed. The skill’s assumption holds — but let me verify what I can do: check the existing services note, the network, and whether I can write to user dirs (which would let me install the Dart SDK myself).

read — {"filePath": "/home/sambasene/obsidian/Vault/Local Services.md"}

<path>/home/sambasene/obsidian/Vault/Local Services.md</path>
<type>file</type>
<content>
1: # Local Services
2:
3: Everything that runs locally on this machine, with its link and restart command. Update the Status column whenever a service starts or stops.
4:
5: > 🐧 **Machine moved to Fedora 44** (2026-09-18). Only OpenClaw has been re-verified on Linux — other rows keep their Windows-era "last seen" and need re-checking. Restart commands below are the Linux equivalents.
6:
7: | Service | Link(s) | Restart command if down | Status | Last seen |
8: | ---------------------------------------------------- | ------------------------------------------------------------------------------- | ---
…[truncated]

bash — touch /home/sambasene/bin/.writetest && echo "HOME-writable: yes" && rm /home/sambasene/bin/.writetest; df -h /home | tail -1

touch: cannot touch '/home/sambasene/bin/.writetest': No such file or directory
tmpfs 7.7G 104K 7.7G 1% /

bash — curl -sI --max-time 10 https://storage.googleapis.com/dart-archive/channels/stable/release/latest/VERSION | head -3; echo "---"; curl -sI --max-time 10 https://github.com | head -3

HTTP/2 200
x-guploader-uploadid: AJjja9Y1rg0Wh0_DEKL_4GG74n_t9AW-kLaciPtHuvLzq7MD3xhb0AyqXkh-Aw0eAgUPQrtL94dS2ow
x-goog-generation: 1789462549031776
---
HTTP/2 200
date: Sat, 19 Sep 2026 09:29:53 GMT
content-type: text/html; charset=utf-8

Network is up (Dart SDK archive + GitHub reachable) and the sandbox is likely bind-mounting the real home. Let me check the real disk layout and fetch the current dart-pad run instructions.

bash — df -h /home/sambasene; echo ---; ls /home/sambasene/ 2>&1; echo ---; ls /home/sambasene/dev 2>&1

Filesystem Size Used Avail Use% Mounted on
/dev/nvme0n1p5 291G 288G 2.9G 100% /home/sambasene
---
Android
AndroidStudioProjects
Applications
appwrite
assets
courses
Desktop
dev
develop
Documents
Downloads
Dropbox
IdeaProjects
install.sh
IntelliJIDEAProjects
Jellyfin Server Media
jitsi
JoplinBackup
kms-server-proxy
Music
Nextcloud
obsidian
Pictures
Public
PyCharmMiscProject
PycharmProjects
remnote
rocketchat-compose
snap
StudioProjects
Templates
test_write
Videos
VirtualBox VMs
vms
---
appwrite
flutter
freecodecamp
idle-zelus
idle-zelus local
linuxjourney
linuxjourney-official
misskey
monkeytype
nextcloud-server
private-docs
public-docs
supabase
theodinproject
twilight
Yonko Business

webfetch — {"url": "https://github.com/dart-lang/dart-pad", "format": "markdown"}

GitHub - dart-lang/dart-pad: An online Dart editor with support for console, web, and Flutter apps. · GitHub
[Skip to content](#start-of-content)
## Navigation Menu
[](/)
[Sign in](/login?return_to=https%3A%2F%2Fgithub.com%2Fdart-lang%2Fdart-pad)
Appearance settings
- Platform
- AI CODE CREATION
- [GitHub CopilotWrite better code with AI](https://github.com/features/copilot)
- [GitHub Copilot appDirect agents from issue to merge](https://github.com/features/ai/github-app)
- [MCP RegistryIntegrate external tools](https://github.com/mcp)
- DEVELOPER WORKFLOWS
- [ActionsAutomate any workflow](https://github.com/features/actions)
- [CodespacesInstant dev environments](
…[truncated]

Two important findings: the disk is at 100% (2.9 GB free) — worth watching — and there’s a ~/dev/flutter directory already. If Flutter is installed there, its bundled Dart SDK covers everything. Let me check, and grab the dev instructions from CONTRIBUTING.md.

bash — ls /home/sambasene/dev/flutter 2>&1 | head -20; echo ---; /home/sambasene/dev/flutter/bin/dart --version 2>&1; echo ---; /home/sambasene/dev/flutter/bin/flutter --version 2>&1 | head -4

flutter_application_1
starter-for-flutter
---
/bin/sh: line 1: /home/sambasene/dev/flutter/bin/dart: No such file or directory
---
/bin/sh: line 1: /home/sambasene/dev/flutter/bin/flutter: No such file or directory

webfetch — {"format": "markdown", "url": "https://raw.githubusercontent.com/dart-lang/dart-pad/main/CONTRIBUTING.md"}

# Contributing to DartPad
Want to contribute? Great! First, read this page (including the small print at the end).
## Before you contribute
Before we can use your code, you must sign the [Google Individual Contributor License Agreement](https://developers.google.com/open-source/cla/individual?csw=1) (CLA), which you can do online. The CLA is necessary mainly because you own the copyright to your changes, even after your contribution becomes part of our codebase, so we need your permission to use and distribute your code. We also need to be sure of various other things—for instance that you'll tell us if you know that your code infringes on other people's patents. You don't have to sign the
…[truncated]

Interesting — ~/dev/flutter only contains Flutter app projects, not the SDK itself. No Dart anywhere. But I have one big advantage: /run/user/1000 is a tmpfs with ~7.7 GB free (the pre-approved workspace), so I can test everything there without touching the 100%-full disk. Let me pull the exact run instructions for both the backend and frontend.

webfetch — {"format": "markdown", "url": "https://raw.githubusercontent.com/dart-lang/dart-pad/main/pkgs/dart_services/README.md"}

# Dart Services
A server backend to support DartPad.
[![Build Status](https://github.com/dart-lang/dart-services/workflows/dart-services/badge.svg)](https://github.com/dart-lang/dart-services/actions?workflow=dart-services)
## What is it? What does it do?
This project is a small, stateless Dart server, which powers the front-end of
DartPad. It provides many of DartPad's features, including static analysis
(errors and warnings), compilation to JavaScript, code completion, dartdoc
information, code formatting, and quick fixes for issues.
## Getting set up
### Initialize Flutter
The Flutter SDK needs to be downloaded and setup; check out
https://flutter.dev/get-started.
### Running
To
…[truncated]

webfetch — {"format": "markdown", "url": "https://raw.githubusercontent.com/dart-lang/dart-pad/main/pkgs/dartpad_ui/README.md"}

# DartPad UI
The main DartPad web UI implemented using [Flutter Web](https://flutter.dev/multi-platform/web).
## How to run
There are options to run UI locally:
1. Run:

flutter run -d chrome –web-browser-flag “–disable-web-security”

We pass the `--disable-web-security` flag to Chrome as we're not able to
configure the `flutter run` web server to pass CORS headers for
`AssetManifest.json`, `FontManifest.json`, and other resources.
2. Open the repo in VS Code, select tab "Run and Debug at the left" and run
needed configuration.
## How to connect to a local backend
1. In the directory `pkgs/dart_services` run:

dart tool/grind.dart build-project-templates dart t

…[truncated]

I now have the full picture. DartPad is a monorepo: `dart_services` (backend, port 8080) + `dartpad_ui` (Flutter Web frontend). Both need the **Flutter SDK** — none is installed, and the real disk is at 100%.
My plan: verify everything **in tmpfs** (`/run/user/1000`, 7.7 GB free — no impact on the full disk), then hand you the persistent host install steps in the docs.
**`todowrite`** — `{"todos": [{"content": "Verify tmpfs space + get latest Flutter stable version", "status": "in_progress", "priority": "high"}, {"content": "Download & extract Flutter SDK to tmpfs", "status": "pending
…[truncated]`
```text
[
{
"content": "Verify tmpfs space + get latest Flutter stable version",
"status": "in_progress",
"priority": "high"
},
{
"content": "Download & extract Flutter SDK to tmpfs",
"status": "pending",
"priority": "high"
},
{
"content": "Clone dart-pad repo (shallow) to tmpfs",
"status": "pending",
"priority": "high"
},
{
"content": "Build backend artifacts (project templates + storage artifacts)",
"status": "pending",
"priority": "high"
},
{
"content": "Run dart_services backend on :8080 and verify /api/v3/analyze",
"status": "pending",
"priority": "high"
},
{
"content": "Build dartpad_ui web frontend + serve it, verify via curl",
"status": "pending",
"priority": "hi
…[truncated]

bash — df -h /run/user/1000/opencode 2>&1; ls -la /run/user/1000/opencode 2>&1 | head -5

df: /run/user/1000/opencode: No such file or directory
ls: cannot access '/run/user/1000/opencode': No such file or directory

bash — `curl -s –max-time 15 https://storage.googleapis.com/flutter_infra_release/releases/releases_linux.json | python3 -c “import json,sys; d=json.load(sys.stdin); rs=[r for r in d[‘releases’] if r[’channe

…[truncated]`

3.47.5 stable/linux/flutter_linux_3.47.5-stable.tar.xz

opencode doesn’t exist yet — I’ll create it. Latest Flutter stable is 3.47.5. Setting up the workspace and kicking off the big downloads in parallel.

bash — `mkdir -p /run/user/1000/opencode/dartpad-work && df -h /run/user/1000 && curl -sI –max-time 15 https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.47.5-stable.t

…[truncated]`

Filesystem Size Used Avail Use% Mounted on
tmpfs 1.6G 288M 1.3G 19% /run/user/1000
x-goog-stored-content-length: 1576266884
content-length: 1576266884

bash — which git tar xz python3 2>&1

/app/bin/git
/usr/bin/tar
/usr/bin/xz
/usr/bin/python3

Wait — /run/user/1000 is only 1.6 GB (1.3 GB free), and the Flutter tarball is 1.58 GB alone. That kills the tmpfs plan. The real disk has just 2.9 GB free, and a full Flutter SDK + caches + builds needs ~5 GB. Let me get the full disk picture before deciding anything.

bash — df -h | grep -vE '^(proc|sysfs|cgroup|devpts|mqueue|shm|fusectl|securityfs|debugfs|tracefs|configfs|pstore|bpf|autofs)'

Filesystem Size Used Avail Use% Mounted on
tmpfs 7.7G 104K 7.7G 1% /etc/timezone
/dev/nvme0n1p5 291G 288G 2.8G 100% /usr
tmpfs 7.7G 0 7.7G 0% /usr/lib/x86_64-linux-gnu/GL
tmpfs 7.7G 0 7.7G 0% /usr/share/runtime/share/themes
/dev/nvme0n1p5 291G 288G 2.8G 100% /var/data
tmpfs 1.6G 288M 1.3G 19% /run/host/monitor
tmpfs 7.7G 58M 7.6G 1% /dev
devtmpfs 7.6G 0 7.6G 0% /dev/tty
tmpfs 7.7G 0 7.7G 0% /home/sambasene/.local/share/flatpak
tmpfs 7.7G 0 7.7G 0% /home/sambasene/.var/app
tmpfs 3.1G 4.8M 3.1G 1% /run/media
tmpfs 7.7G 0 7.7G 0% /tmp/.X11-unix

bash — du -x --max-depth=1 -h /home/sambasene 2>/dev/null | sort -rh | head -20

121G /home/sambasene
21G /home/sambasene/VirtualBox VMs
15G /home/sambasene/dev
15G /home/sambasene/Android
12G /home/sambasene/.local
12G /home/sambasene/Documents
11G /home/sambasene/.gradle
7.5G /home/sambasene/.docker
6.4G /home/sambasene/.cache
4.5G /home/sambasene/.npm
2.3G /home/sambasene/develop
2.0G /home/sambasene/courses
1.7G /home/sambasene/.pub-cache
1.6G /home/sambasene/Downloads
1.6G /home/sambasene/.android
1.3G /home/sambasene/.config
1.2G /home/sambasene/StudioProjects
1.2G /home/sambasene/.pnpm-store
1.1G /home/sambasene/.hermes
966M /home/sambasene/obsidian

The du scan reveals the real situation: the disk is full system-wide (even /usr and /var/data are at 100%) — this machine needs space freed before any permanent DartPad install. But there are several large tmpfs mounts I haven’t checked for writability. Let me test them.

bash — `for d in /dev /tmp /run/media /home/sambasene/.var/app /home/sambasene/.local/share/flatpak; do if touch “$d/.wtest” 2>/dev/null; then echo “WRITABLE: $d ($(df -h “$d” | awk ‘NR==2{print $4” free”}’))

…[truncated]`

WRITABLE: /dev (7.6G free)
WRITABLE: /tmp (1.3G free)
no-write: /run/media
WRITABLE: /home/sambasene/.var/app (7.7G free)
WRITABLE: /home/sambasene/.local/share/flatpak (7.7G free)
tmpfs 1.6G 288M 1.3G 19% /tmp

/dev is a writable 7.6 GB tmpfs — the only spot big enough for the whole verification build, and it touches the real disk zero. I’ll use /dev/dartpad-work (RAM-backed, ephemeral — perfect for proving it works). Kicking off the two big downloads in parallel.

bash — `free -h | head -2; nproc; mkdir -p /dev/dartpad-work && curl -sL -o /dev/dartpad-work/flutter.tar.xz https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.47.5-sta

…[truncated]`

total used free shared buff/cache available
Mem: 15Gi 10Gi 318Mi 658Mi 5.6Gi 4.7Gi
12
-rw-r--r--. 1 sambasene sambasene 1.5G Sep 19 09:39 /dev/dartpad-work/flutter.tar.xz

bash — git clone --depth 1 https://github.com/dart-lang/dart-pad.git /dev/dartpad-work/dart-pad 2>&1 | tail -3 && du -sh /dev/dartpad-work/dart-pad

Cloning into '/dev/dartpad-work/dart-pad'...
11M /dev/dartpad-work/dart-pad

Both downloads done (Flutter 1.5 GB, repo 11 MB shallow). RAM is 15 GB — enough for a RAM-backed build. Now extract the SDK and do the first-run setup.

bash — tar -xf /dev/dartpad-work/flutter.tar.xz -C /dev/dartpad-work && du -sh /dev/dartpad-work/flutter && /dev/dartpad-work/flutter/bin/flutter --version 2>&1 | head -5

2.5G /dev/dartpad-work/flutter
Flutter 3.47.5 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 6a19cca564 (2 days ago) • 2026-09-17 14:13:22 -0400
Engine • hash ab598368592da0064197e2bc15c7f5b0a2c6bb1f (revision af7e796e16) (2 days ago) • 2026-09-16 18:35:09.000Z
Tools • Dart 3.13.4 • DevTools 2.60.0

Flutter 3.47.5 / Dart 3.13.4 is live. Now precache the web artifacts and fetch the backend’s dependencies (keeping the pub cache in tmpfs to avoid the full disk).

bash — `export PATH=/dev/dartpad-work/flutter/bin:$PATH PUB_CACHE=/dev/dartpad-work/pub-cache && flutter precache –web 2>&1 | tail -3 && cd /dev/dartpad-work/dart-pad/pkgs/dart_services && dart pub get 2>&1

…[truncated]`

+ xdg_directories 1.1.0
+ yaml 3.1.4
Changed 164 dependencies in `/dev/dartpad-work/dart-pad`!
18 packages have newer versions incompatible with dependency constraints.
Try `dart pub outdated` for more information.
tmpfs 7.7G 4.4G 3.4G 57% /dev

Backend deps resolved (164 packages). tmpfs at 57% — fine. Now the heavy part: building the project templates and storage artifacts (this is what makes the backend able to analyze/compile snippets).

bash — `export PATH=/dev/dartpad-work/flutter/bin:$PATH PUB_CACHE=/dev/dartpad-work/pub-cache && cd /dev/dartpad-work/dart-pad/pkgs/dart_services && dart tool/grind.dart build-project-templates 2>&1 | tail -8

…[truncated]`

+ yaml 3.1.3 (3.1.4 available)
+ yaml_edit 2.2.4
Changed 172 dependencies!
2 packages are discontinued.
26 packages have newer versions incompatible with dependency constraints.
Try `flutter pub outdated` for more information.
finished in 161.5 seconds
EXIT: 0
tmpfs 7.7G 5.0G 2.7G 66% /dev

Templates built (161.5 s). Now the storage artifacts (.dill files the backend uses to compile snippets):

bash — `export PATH=/dev/dartpad-work/flutter/bin:$PATH PUB_CACHE=/dev/dartpad-work/pub-cache && cd /dev/dartpad-work/dart-pad/pkgs/dart_services && dart tool/grind.dart build-storage-artifacts 2>&1 | tail -8

…[truncated]`

cwd: /run/user/1000/app/md.obsidian.Obsidian/flutter_web_sampleTVKHDW
copying /dev/dartpad-work/flutter/bin/cache/dart-sdk/lib/dev_compiler/ddc/ddc_module_loader.js to artifacts
copying /dev/dartpad-work/flutter/bin/cache/flutter_web_sdk/kernel/ddcLibraryBundle-canvaskit/dart_sdk.js to artifacts
copying /dev/dartpad-work/flutter/bin/cache/flutter_web_sdk/kernel/ddcLibraryBundle-canvaskit/dart_sdk.js.map to artifacts
copying /run/user/1000/app/md.obsidian.Obsidian/flutter_web_sampleTVKHDW/flutter_web_new.js to artifacts
copying /run/user/1000/app/md.obsidian.Obsidian/flutter_web_sampleTVKHDW/flutter_web_new.js.map to artifacts
finished in 111.2 seconds
EXIT: 0
tmpfs 7.7G 5.3G 2.4G 69%
…[truncated]

Artifacts built (111 s). Now start the backend server and verify it actually analyzes + compiles Dart code:

bash — `export PATH=/dev/dartpad-work/flutter/bin:$PATH PUB_CACHE=/dev/dartpad-work/pub-cache && cd /dev/dartpad-work/dart-pad/pkgs/dart_services && nohup dart bin/server.dart > /dev/dartpad-work/server.log 2

…[truncated]`

PID 10839
sdkPath: /dev/dartpad-work/flutter/bin/cache/dart-sdk
redisServerUri: null
Cloud Run Environment variables:
[warning] GEMINI_API_KEY not set; gen-ai features DISABLED
[info] Starting analysis server (sdk: ../../../flutter/bin/cache/dart-sdk, args: --client-id=DartPad)

keep going

Server’s up and the analysis server is starting. Let me verify the API endpoints now:

bash — `sleep 5; curl -s –max-time 60 http://127.0.0.1:8080/api/v3/analyze -H “Content-Type: application/json” -d ‘{“source”:“void main() { print("hi dartpad"); }”}’ | head -c 600; echo; echo “— COMPILE

…[truncated]`

{"detail":"Not Found"}
--- COMPILE ---
{"detail":"Not Found"}

404 — the routes must differ. Let me check the actual API paths in the server code:

bash — tail -20 /dev/dartpad-work/server.log

redisServerUri: null
Cloud Run Environment variables:
[warning] GEMINI_API_KEY not set; gen-ai features DISABLED
[info] Starting analysis server (sdk: ../../../flutter/bin/cache/dart-sdk, args: --client-id=DartPad)
Unhandled exception:
SocketException: Failed to create server socket (OS Error: Address already in use, errno = 98), address = 0.0.0.0, port = 8080
#0 _NativeSocket.bind (dart:io-patch/socket_patch.dart:1248:7)
<asynchronous suspension>
#1 _RawServerSocket.bind.<anonymous closure> (dart:io-patch/socket_patch.dart:2195:12)
<asynchronous suspension>
#2 _ServerSocket.bind.<anonymous closure> (dart:io-patch/socket_patch.dart:2515:12)
<asynchronous suspension>
#3 _HttpServer.bind.<an
…[truncated]

grep — {"pattern": "api/v3|routes|Router|get\\(|post\\(", "path": "/dev/dartpad-work/dart-pad/pkgs/dart_services/bin"}

No files found

Found it — port 8080 is already occupied by Linux Journey (it’s in Local Services.md as running!). The {"detail":"Not Found"} is FastAPI’s format — I was curling Linux Journey, and my dart_services instance failed to bind. Let me check if the server takes a port option:

grep — {"path": "/dev/dartpad-work/dart-pad/pkgs/dart_services/lib", "pattern": "port|Port", "include": "server.dart"}

Found 32 matches
/dev/dartpad-work/dart-pad/pkgs/dart_services/lib/server.dart:
Line 5: import 'dart:async';
Line 6: import 'dart:io';
Line 8: import 'package:args/args.dart';
Line 9: import 'package:dartpad_shared/backend_client.dart';
Line 10: import 'package:dartpad_shared/constants.dart';
Line 11: import 'package:dartpad_shared/services.dart';
Line 12: import 'package:logging/logging.dart';
Line 13: import 'package:meta/meta.dart';
Line 14: import 'package:shelf/shelf.dart';
Line 15: import 'package:shelf/shelf_io.dart' as shelf;
Line 16: import 'package:shelf_gzip/shelf_gzip.dart';
Line 18: import 'src/caching.dart';
Line 19: import 'src/common_server.dart';
L
…[truncated]

The server supports --port. Restarting on 8081 (Linux Journey keeps 8080) and verifying both endpoints:

bash — `export PATH=/dev/dartpad-work/flutter/bin:$PATH PUB_CACHE=/dev/dartpad-work/pub-cache && cd /dev/dartpad-work/dart-pad/pkgs/dart_services && nohup dart bin/server.dart –port 8081 > /dev/dartpad-work/

…[truncated]`

PID 14043
Cloud Run Environment variables:
[warning] GEMINI_API_KEY not set; gen-ai features DISABLED
[info] Starting analysis server (sdk: ../../../flutter/bin/cache/dart-sdk, args: --client-id=DartPad)
--- ANALYZE ---
--- COMPILE ---
<shell_metadata>
shell tool terminated command after exceeding timeout 180000 ms. If this command is expected to take longer and is not waiting for interactive input, retry with a larger timeout value in milliseconds.
</shell_metadata>

Cold-start is slow (first analyze compiles SDK artifacts on demand). Retrying with a longer timeout:

bash — curl -s --max-time 240 http://127.0.0.1:8081/api/v3/analyze -H "Content-Type: application/json" -d '{"source":"void main() { print(\"hi dartpad\"); }"}' | head -c 600; echo; echo "--- exit ok ---"

--- exit ok ---

Empty response — let me check if the server process is even alive:

bash — ps aux | grep -E "dart|server" | grep -v grep | head -10; echo ---; tail -15 /dev/dartpad-work/server.log

---
warning: no redis server specified.
[info] Starting dart-services:
port: 8081
sdkPath: /dev/dartpad-work/flutter/bin/cache/dart-sdk
redisServerUri: null
Cloud Run Environment variables:
[warning] GEMINI_API_KEY not set; gen-ai features DISABLED
[info] Starting analysis server (sdk: ../../../flutter/bin/cache/dart-sdk, args: --client-id=DartPad)
[info] Listening on port 8081

The server died when the previous tool call timed out — background processes get killed with the shell’s process group. I’ll fully detach it with setsid (new session, immune to the shell’s process-group kill):

bash — `export PATH=/dev/dartpad-work/flutter/bin:$PATH PUB_CACHE=/dev/dartpad-work/pub-cache && cd /dev/dartpad-work/dart-pad/pkgs/dart_services && setsid nohup dart bin/server.dart –port 8081 > /dev/dartpa

…[truncated]`

launched, waiting for boot...
LISTENING after ~8s
[info] Starting analysis server (sdk: ../../../flutter/bin/cache/dart-sdk, args: --client-id=DartPad)
[info] Listening on port 8081
<shell_metadata>
shell tool terminated command after exceeding timeout 90000 ms. If this command is expected to take longer and is not waiting for interactive input, retry with a larger timeout value in milliseconds.
</shell_metadata>

The shell timed out on the wait loop — but did the detached server survive this time? Checking process + hitting the API:

bash — `ps aux | grep -c “[d]art bin/server” ; curl -s –max-time 240 http://127.0.0.1:8081/api/v3/analyze -H “Content-Type: application/json” -d ’{“source”:“int add(int a, int b) => a + b; void main() { prin

…[truncated]`

1
{
"issues": [],
"imports": []
}

The backend works. setsid survived the shell teardown, and /api/v3/analyze returns {"issues": [], "imports": []} — real static analysis running locally. Now the compile endpoint:

bash — `curl -s –max-time 240 http://127.0.0.1:8081/api/v3/compile -H “Content-Type: application/json” -d ‘{“source”:“void main() { print("hi dartpad"); }”}’ | head -c 300; echo; echo “— error case —”;

…[truncated]`

Route not found
--- error case ---
{
"issues": [
{
"kind": "error",
"message": "Undefined name 'undefinedVar'.",
"location": {
"charStart": 20,
"charLength": 12,
"line": 1,
"column": 21
},
"code": "undefined_identifier",
"correction": "Try correcting the name to one that is defined, or defining the name.",
"url": "https://dart.dev/diagnostics/undefined_identifier",
"contextMessages": null,

Analysis is fully working (errors detected properly). But the compile route path is different — let me find the real routes:

grep — {"include": "*.dart", "path": "/dev/dartpad-work/dart-pad/pkgs/dart_services/lib/src", "pattern": "/api/v|router\\.(get|post|all)"}

Found 13 matches
/dev/dartpad-work/dart-pad/pkgs/dart_services/lib/src/common_server.dart:
Line 76: router.get(r'/api/<apiVersion>/version', handleVersion);
Line 79: router.get(r'/ws', webSocketHandler(handleWebSocket));
Line 88: router.post(r'/api/<apiVersion>/analyze', handleAnalyze);
Line 89: router.post(r'/api/<apiVersion>/compileDDC', handleCompileDDC);
Line 90: router.post(r'/api/<apiVersion>/compileNewDDC', handleCompileNewDDC);
Line 91: router.post(
Line 95: router.post(r'/api/<apiVersion>/complete', handleComplete);
Line 96: router.post(r'/api/<apiVersion>/fixes', handleFixes);
Line 97: router.post(r'/api/<apiVersion>/format', handleFormat);
Line 98: router.post(r
…[truncated]

The endpoint is /api/v3/compileDDC in this version. Testing it:

bash — `curl -s –max-time 240 http://127.0.0.1:8081/api/v3/compileDDC -H “Content-Type: application/json” -d ‘{“source”:“void main() { print("hi dartpad"); }”}’ | head -c 200; echo; echo “— format —”;

…[truncated]`

{
"result": "// Generated by DDC, the Dart Development Compiler (to JavaScript).\n// Version: 3.13.4 (stable) (Tue Sep 15 01:01:15 2026 -0700) on \"linux_x64\"\n// Module: dartpad_main\n// Flags: ena
--- format ---
{
"source": "void main() {\n print(1);\n}\n",
"offset": 0
}

Backend fully verified: analyze ✅, compileDDC ✅ (compiles Dart→JS), format ✅ (dartfmt). Now the frontend — flutter pub get then flutter build web (watching tmpfs headroom):

bash — export PATH=/dev/dartpad-work/flutter/bin:$PATH PUB_CACHE=/dev/dartpad-work/pub-cache && cd /dev/dartpad-work/dart-pad/pkgs/dartpad_ui && flutter pub get 2>&1 | tail -3 && df -h /dev | tail -1

Got dependencies in `/dev/dartpad-work/dart-pad`!
18 packages have newer versions incompatible with dependency constraints.
Try `flutter pub outdated` for more information.
tmpfs 7.7G 5.3G 2.4G 70% /dev

bash — export PATH=/dev/dartpad-work/flutter/bin:$PATH PUB_CACHE=/dev/dartpad-work/pub-cache && cd /dev/dartpad-work/dart-pad/pkgs/dartpad_ui && flutter build web 2>&1 | tail -5; df -h /dev | tail -1

Use --no-wasm-dry-run to disable these warnings.
Expected to find fonts for (MaterialIcons, packages/cupertino_icons/CupertinoIcons), but found (MaterialIcons). This usually means you are referring to font families in an IconData class but not including them in the assets section of your pubspec.yaml, are missing the package that would include them, or are missing "uses-material-design: true".
Font asset "MaterialIcons-Regular.otf" was tree-shaken, reducing it from 1645184 to 10796 bytes (99.3% reduction). Tree-shaking can be disabled by providing the --no-tree-shake-icons flag when building your app.
Compiling lib/main.dart for the Web... 140.8s
✓ Built build/web
tmpfs 7.7G 5.4G 2.3G 71% /d
…[truncated]

UI built (✓ Built build/web). Before serving, let me check what backend URL the UI expects with channel=localhost (I’m running the backend on 8081, not default 8080):

grep — {"include": "*.dart", "path": "/dev/dartpad-work/dart-pad/pkgs/dartpad_ui/lib", "pattern": "localhost|8080"}

Found 1 matches
/dev/dartpad-work/dart-pad/pkgs/dartpad_ui/lib/model/model.dart:
Line 205: Channel.localhost,

grep — {"include": "*.dart", "path": "/dev/dartpad-work/dart-pad/pkgs/dartpad_shared", "pattern": "localhost|8080|baseUrl|backend"}

Found 11 matches
/dev/dartpad-work/dart-pad/pkgs/dartpad_shared/lib/backend_client.dart:
Line 16: /// Turns off backend logging for all future requests.
/dev/dartpad-work/dart-pad/pkgs/dartpad_shared/lib/constants.dart:
Line 5: /// The IP address of the localhost.
Line 6: /// For some reasons just `localhost` does not work for
Line 7: /// unit testing of ui against local backend.
Line 8: const localhostIp = '127.0.0.1';
/dev/dartpad-work/dart-pad/pkgs/dartpad_shared/lib/model.dart:
Line 486: localhost('Localhost', 'http://$localhostIp:8080/');
Line 496: return values.whereNot((channel) => channel == localhost).toList();
/dev/dartpad-work/dart-pad/pkgs/dartpad_shared/lib/serv
…[truncated]

The localhost backend URL is hardcoded to port 8080 — which Linux Journey owns. Cleanest fix: patch it to 8081 in the shared model and rebuild (2 min). This port conflict is a great “lesson learned” for the report:

read — {"filePath": "/dev/dartpad-work/dart-pad/pkgs/dartpad_shared/lib/model.dart", "offset": 480, "limit": 12}

<path>/dev/dartpad-work/dart-pad/pkgs/dartpad_shared/lib/model.dart</path>
<type>file</type>
<content>
480:
481: enum Channel {
482: stable('Stable', 'https://stable.api.dartpad.dev/'),
483: beta('Beta', 'https://beta.api.dartpad.dev/'),
484: main('Main', 'https://master.api.dartpad.dev/'),
485: // This channel is only used for local development.
486: localhost('Localhost', 'http://$localhostIp:8080/');
487:
488: final String displayName;
489: final String url;
490:
491: const Channel(this.displayName, this.url);
(Showing lines 480-491 of 509. Use offset=492 to continue.)
</content>

edit — `{“filePath”: “/dev/dartpad-work/dart-pad/pkgs/dartpad_shared/lib/model.dart”, “oldString”: “localhost(‘Localhost’, ‘http://$localhostIp:8080/’);”, “newString”: “localhost(‘Localhost’, ’http://$localho

…[truncated]`

Edit applied successfully.

bash — `export PATH=/dev/dartpad-work/flutter/bin:$PATH PUB_CACHE=/dev/dartpad-work/pub-cache && cd /dev/dartpad-work/dart-pad/pkgs/dartpad_ui && flutter build web 2>&1 | tail -2 && ls build/web | head -8 &&

…[truncated]`

Compiling lib/main.dart for the Web... 323.4s
✓ Built build/web
assets
canvaskit
codemirror
embed_demo.html
favicon.png
flutter_bootstrap.js
flutter.js
flutter_service_worker.js
tmpfs 7.7G 5.4G 2.3G 71% /dev

Rebuilt with the 8081 patch. Now serve the UI (detached) and verify it’s being served:

bash — `cd /dev/dartpad-work/dart-pad/pkgs/dartpad_ui/build/web && setsid nohup python3 -m http.server 8899 –bind 127.0.0.1 > /dev/dartpad-work/ui.log 2>&1 < /dev/null & disown; sleep 3; ps aux | grep -c “[h

…[truncated]`

3
<title>DartPad</title>
flutter.js: 200
main.dart.js: 200
<shell_metadata>
shell tool terminated command after exceeding timeout 60000 ms. If this command is expected to take longer and is not waiting for interactive input, retry with a larger timeout value in milliseconds.
</shell_metadata>

UI is served (<title>DartPad</title>, flutter.js 200, main.dart.js 200). Final health check of both processes, plus the version endpoint the UI hits on load:

bash — `ps aux | grep -E “[d]art bin/server|[h]ttp.server 8899” | awk ‘{print $2, $11, $12, $13}’; echo — ; curl -s –max-time 20 http://127.0.0.1:8081/api/v3/version; echo; curl -s -o /dev/null -w “UI: %{h

…[truncated]`

14553 /dev/dartpad-work/flutter/bin/cache/dart-sdk/bin/dartvm --resolved_executable_name=/dev/dartpad-work/flutter/bin/cache/dart-sdk/bin/dart --executable_name=/dev/dartpad-work/flutter/bin/cache/dart-sdk/bin/dart
16576 python3 -m http.server
---
{
"dartVersion": "3.13.4",
"flutterVersion": "3.47.5",
"engineVersion": "af7e796e161ae0bb1ff0758c71a7105418bd9ded",
"serverRevision": null,
"experiments": [],
"packages": [
{
"name": "_fe_analyzer_shared",
"version": "103.0.0",
"supported": false
},
{
"name": "analyzer",
"version": "13.3.0",
"supported": false
},
{
"name": "animated_to",
"version": "0.9.0",
"supported": true
},
{
"name": "animations",
"version": "2.2.0",
"s
…[truncated]

Both processes are alive and verified end-to-end — the /api/v3/version payload (DartPad’s package list) is exactly what the UI requests on load. Let me quickly confirm CORS handling on the backend (UI :8899 → backend :8081 is cross-origin), then write up the docs:

grep — {"include": "*.dart", "path": "/dev/dartpad-work/dart-pad/pkgs/dart_services/lib/src", "pattern": "Access-Control|CORS|cors"}

Found 11 matches
/dev/dartpad-work/dart-pad/pkgs/dart_services/lib/src/common_server.dart:
Line 27: import 'shelf_cors.dart' as shelf_cors;
Line 640: 'Access-Control-Allow-Origin': '*',
Line 654: return shelf_cors.createCorsHeadersMiddleware(
Line 655: corsHeaders: <String, String>{
Line 656: 'Access-Control-Allow-Origin': '*',
Line 657: 'Access-Control-Allow-Methods': 'GET, POST, OPTIONS',
Line 658: 'Access-Control-Allow-Headers':
/dev/dartpad-work/dart-pad/pkgs/dart_services/lib/src/shelf_cors.dart:
Line 9: /// Middleware which adds [CORS headers](https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS)
Line 14: Map<String, String> corsHeaders = const {'Acce
…[truncated]

todowrite — `{“todos”: [{“content”: “Verify tmpfs space + get latest Flutter stable version”, “priority”: “high”, “status”: “completed”}, {“content”: “Download & extract Flutter SDK to tmpfs”, “priority”: “high”,

…[truncated]`

[
{
"content": "Verify tmpfs space + get latest Flutter stable version",
"status": "completed",
"priority": "high"
},
{
"content": "Download & extract Flutter SDK to tmpfs",
"status": "completed",
"priority": "high"
},
{
"content": "Clone dart-pad repo (shallow) to tmpfs",
"status": "completed",
"priority": "high"
},
{
"content": "Build backend artifacts (project templates + storage artifacts)",
"status": "completed",
"priority": "high"
},
{
"content": "Run dart_services backend on :8081 and verify /api/v3/analyze",
"status": "completed",
"priority": "high"
},
{
"content": "Build dartpad_ui web frontend + serve it, verify via curl",
"status": "completed",
"priori
…[truncated]

CORS is handled by the backend itself (Access-Control-Allow-Origin: *) — so the UI at :8899 will talk to :8081 cleanly in any modern browser, no hacks needed. DartPad fully works locally. Now the documentation track — let me check the docs folder conventions first:

bash — ls /home/sambasene/obsidian/Vault/Documentation/Projects/ 2>&1 | head -30

Asterisk
Docs Sites - Public & Private.md
FreePBX
Hermes Agent - Setup.md
Hermes Agent Setup Report.md
Jitsi
Linux Journey - Setup.md
Linux Journey Setup Report.md
OpenClaw Fedora - Setup.md
OpenClaw Fedora Setup Report.md
PeerTube - Config + Details.md
PeerTube - Setup.md
PeerTube Setup Report.md
Rapport Hermes Agent Setup.md
Rapport Linux Journey Setup.md
Rapport OpenClaw Fedora Setup.md
Rapport PeerTube Setup.md
Rapport RocketChat Setup.md
Rapport Strapi Setup.md
Rapport Vault RAG Setup.md
RocketChat - Setup Guide.md
RocketChat Setup Report.md
Strapi - Setup Guide.md
Strapi Setup Report.md
Vault RAG Setup.md
Yonko

Conventions confirmed. Writing the four deliverables now — EN report, FR report, setup guide, and results log:

write — `{“content”: “# DartPad Setup Report\n\n> Project: DartPad (dart-lang/dart-pad) — run locally\n> Date: 2026-09-19 · Machine: Fedora 44 (Zelus) · Status: ✅ Running (RAM-backed, ephemeral

…[truncated]`

Wrote file successfully.

write — `{“content”: “# Rapport Setup DartPad\n\n> Projet : DartPad (dart-lang/dart-pad) — lancer en local\n> Date : 2026-09-19 · Machine : Fedora 44 (Zelus) · Statut : ✅ En cours d’exécution (

…[truncated]`

Wrote file successfully.

Now the setup guide (for the persistent host install once disk space is freed):

write — {"content": "# DartPad - Setup Guide\n\nRun [DartPad](https://github.com/dart-lang/dart-pad) fully locally (backend dart_services+ Flutter Web frontenddartpad_ui`). Written in your voice, from th

…[truncated]`

Wrote file successfully.

write — `{“content”: “# DartPad_results.md\n\nResults log for the DartPad local-run session (2026-09-19). Raw command output as captured; interpretation lives in [[Documentation/Projects/DartPad Setup Report.m

…[truncated]`

Wrote file successfully.

Now update Local Services.md:

edit — {"filePath": "/home/sambasene/obsidian/Vault/Local Services.md", "newString": "| Library app | http://localhost:3000 | node Apps/Library/server.js(from vault root)

Edit applied successfully.

edit — {"filePath": "/home/sambasene/obsidian/Vault/Local Services.md", "newString": "## Port conflicts\n- :3000 is shared by the fCC API and the Library app (node Apps/Library/server.js`) — run one at a ti

…[truncated]`

Edit applied successfully.

todowrite — `{“todos”: [{“content”: “Verify tmpfs space + get latest Flutter stable version”, “priority”: “high”, “status”: “completed”}, {“content”: “Download & extract Flutter SDK to tmpfs”, “priority”: “high”,

…[truncated]`

[
{
"content": "Verify tmpfs space + get latest Flutter stable version",
"status": "completed",
"priority": "high"
},
{
"content": "Download & extract Flutter SDK to tmpfs",
"status": "completed",
"priority": "high"
},
{
"content": "Clone dart-pad repo (shallow) to tmpfs",
"status": "completed",
"priority": "high"
},
{
"content": "Build backend artifacts (project templates + storage artifacts)",
"status": "completed",
"priority": "high"
},
{
"content": "Run dart_services backend on :8081 and verify /api/v3/analyze",
"status": "completed",
"priority": "high"
},
{
"content": "Build dartpad_ui web frontend + serve it, verify via curl",
"status": "completed",
"priori
…[truncated]

Yes — DartPad runs locally, and it’s live right now. 🎉

Service URL Proof
Frontend (Flutter Web UI) http://127.0.0.1:8899/?channel=localhost <title>DartPad</title> served, main.dart.js → 200
Backend (dart_services) http://127.0.0.1:8081/ analyze → {"issues": []}, error detection works, compileDDC compiles Dart→JS, dartfmt works, version returns the full supported-packages list

Open http://127.0.0.1:8899/?channel=localhost in any browser — channel=localhost is what routes the UI to your local backend instead of dartpad.dev. CORS is handled by the backend (Allow-Origin: *), no Chrome flags needed.

  • Disk is 100% full (2.8 GB free of 291 GB) — so I ran the whole proof in RAM-backed tmpfs (/dev, 7.6 GB), zero touch on the real disk. It survives this session but wipes on reboot.
  • Port 8080 belongs to Linux Journey — DartPad’s backend default collided with it (Address already in use), and the UI’s localhost channel is hardcoded to 8080 in source. Fixed with --port 8081 + a one-line patch, rebuilt. This is your “lesson learned” #1: 8080 is a hot port here.
  • The compile endpoint is /api/v3/compileDDC in this version (not /compile) — found via source, documented.
  • Track B (running): running now in RAM — proof install complete.
  • Track D (docs): [[Documentation/Projects/DartPad Setup Report.md]] · [[Documentation/Projects/Rapport DartPad Setup.md]] · [[Documentation/Projects/DartPad - Setup Guide.md]] · [[DartPad_results.md]]
  • [[Local Services.md]] updated (DartPad row + port-conflict note).

Your disk needs ~5 GB for the SDK + caches + builds. Big candidates I found (your call — I deleted nothing): ~/.gradle 11G, ~/.docker 7.5G, ~/.cache 6.4G, ~/.npm 4.5G, ~/Android 15G, ~/VirtualBox VMs 21G. Once you free space, the [[Documentation/Projects/DartPad - Setup Guide.md]] has the copy-paste steps (it also warns not to extract the SDK into ~/dev/flutter, which holds your app projects — use ~/dev/sdks/flutter).

Want me to scan those cleanup candidates and propose a safe list, or set up the persistent install once you’ve freed space?

38 internal reasoning block(s) omitted — raw thinking is not exported (see archive index).