antfu

dev-container

Run any agent, orchestrator or command in a network-caged container whose tokens never enter it.

by antfu

TypeScript

TypeScript68.9%
Vue22.1%
Python7.6%
Shell0.8%
JavaScript0.4%
Dockerfile0.1%
Other0.1%

Commit activity

Last 12 weeks · 51 commits

Full graph →

Community health

5 of 6 standards met

Community profile →
85
✓README✓License✓Contributing✓Code of Conduct○Issue Template✓PR Template
antfu

Summary A port is served only as HTTPS. A client that cannot use TLS has no way in, and a second port entry for the same service is rejected as a duplicate. A port object can now set , a second tailnet port that serves the same service as plain HTTP: This gives HTTPS on 443 and HTTP on 80. In the generated serve config, adds and a handler that proxies to the same target. It requires . The tailnet port check now covers both ports, so a clash on 80 with another service on the same node fails with . The dashboard still lists only the HTTPS link. Without , nothing changes. Verification , , (87 passed, including a new test for the 443 + 80 serve config): pass. The pre-push hook also ran knip, build and the broker tests. Not run: a live tailnet. The serve config shape is checked in , not against Tailscale.

antfu · 3w ago
antfu

Summary is one address for every published port. A stack that wants one service on the LAN has to expose all of them there. A port object can now set its own , which overrides the top-level for that port only: Without it, nothing changes: a port uses the top-level (default ). The relay's published-port mapping reads the per-port address, and IPv6 addresses are still bracketed. Verification , , (87 passed, including a new test that mixes the default and an overriding ), : pass. : ran, printed only an unocss "config file not found" warning. Not run against a live Docker stack; the output is checked through generation in .

antfu · 3w ago
antfu

Problem I keep my dev-container configs in a private repo and deploy them on an always-on home machine. Today, getting a config change onto the machine means ssh + + , or a hand-written launchd/cron script. Proposal A first-class sync feature, for example (one-shot) and an installable background mode: the config repo. Run only for stacks whose generated config or inputs changed. Leave running stacks untouched when nothing changed. Report failures (dirty tree, non-fast-forward, failed ) and keep the last good state running. Optional installer for the host scheduler (launchd on macOS, systemd timer on Linux). Notes Secrets stay in the host-only , never in the repo. Related: #2 (multiple Tailscale nodes), which would let one config hold several services.

antfu · 4w ago
Structured data for AI agents

Repository: antfu/dev-container. Description: Run any agent, orchestrator or command in a network-caged container whose tokens never enter it. Stars: 10, Forks: 0. Primary language: TypeScript. Languages: TypeScript (68.9%), Vue (22.1%), Python (7.6%), Shell (0.8%), JavaScript (0.4%). License: MIT. Topics: agent-security, container, docker. Latest release: v0.1.3 (1w ago). Open PRs: 0, open issues: 0. Last activity: 1w ago. Community health: 85%. Top contributors: antfubot, antfu.