Build Swift Web Playground for Fun
summary
A web playground called swiftfeeder.com runs Swift code server-side: front end uses Ace editor for Swift and xterm-style output rendering, backend is Vapor + Leaf, and code executes inside a Docker per-request sandbox with timeout. Containers enforce resource limits (256 MB memory, pids 10, cpu 60), support multiple Swift versions and nightly snapshots via different images and Docker Compose, link Swift Package libraries into a dynamic target, store snippets in Firebase Firestore, and deploy daily builds with GitHub Actions to Google Compute Engine.
AI-written summary · about
chapters (7)
- 0:00Introduction to playgrounds
- 4:50Core application architecture
- 10:51Frontend and backend logic
- 16:01Sandboxing and security
- 20:10Advanced features
- 23:24Sharing and integration
- 26:48Automation and conclusion








