iCodeSwift is a browser-based Swift playground that lets you write, build, and debug Swift code entirely in your browser — powered by region-optimized VPS instances and a custom Monaco editor integration. No Apple Silicon required.
Whether you're learning Swift, prototyping logic, or just want to test a snippet without firing up Xcode, iCodeSwift has you covered.
| Feature | Description |
|---|---|
| ⚡ Fast Builds | Region-optimized VPS instances spin up Swift builds quickly |
| 🖥️ Monaco Editor | Full-featured code editor with Swift syntax highlighting |
| 📋 Live Console | Streams native Swift build output and runtime logs in real time |
| 🔒 Secure & Private | Zero vulnerabilities on vuln tests; only your source files are sent to the build server |
| 💾 LocalStorage | Projects are persisted locally in your browser — no account needed |
| ✨ Beautiful UI | Smooth animations and a clean, minimal interface |
| 🚀 No Login | Click "Get Started" and code immediately |
Three steps and you're running Swift in the browser:
1. Visit https://icodeswift.pages.dev
2. Click "Get Started" to initialize a new project
3. Write Swift — build, run, and debug with the live console
No installation. No account. No Mac.
- Console applications
- Swift logic and algorithms
- Data structures and standard library exploration
- Swift 5.8 language features and syntax testing
- Learning and experimentation
- GUI / SwiftUI apps (VPS environment restriction)
- Downloading compiled Swift binaries (privacy & security constraint)
- Networking or system-level APIs
- Frontend — Vanilla HTML/CSS/JS with custom Monaco Editor integration
- Hosting — Cloudflare Pages (fully static frontend)
- Build Backend — Region-optimized VPS running the Swift 5.8 toolchain
- Storage —
localStoragefor client-side project persistence - Editor — Monaco Editor (the engine behind VS Code)
Browser (icodeswift.pages.dev)
│
├── Monaco Editor Instance ← User writes Swift code
├── localStorage ← Project state persisted client-side
│
└── Build Request (HTTPS POST)
│
└── Region-Optimized VPS
├── Swift 5.8 Toolchain
├── Build & Execute
└── Stream stdout/stderr back to console
The frontend is fully static and deployed to Cloudflare Pages — no backend, no auth server, no database. The only server-side component is the Swift build VPS.
icodeswift/
├── index.html # Landing page
├── resources/
│ ├── icodeswift_banner.png
│ └── orange_swift_icon.png
├── editor/ # Monaco editor integration & build logic
└── styles/ # UI and animation styles
- iCodeWin — A companion project focused on iOS development tooling, built earlier and coded largely from scratch. One of the foundational projects in this series.
- Multi-file project support
- Shareable snippet links
- Swift Package Manager (SPM) dependency support (experimental)
- Swift 5.9 / 6.0 toolchain support
- Dark/light theme toggle
- Syntax error underlining via Language Server Protocol (LSP)
Contributions, issues, and feature requests are welcome. If you find a bug or have an idea, open an issue or submit a PR.
# Clone the repo
git clone https://github.com/0xShadowHex/icodeswift.git
# Open locally — it's a static site, no build step needed
cd icodeswift
open index.htmliCodeSwift has been tested and shows zero vulnerabilities in standard security audits. Your source code is the only data transmitted to the build server. No telemetry, no tracking, no accounts.
If you discover a security issue, please report it responsibly via GitHub Issues or direct message.
MIT © 0xShadowHex
Built with passion and creativity · icodeswift.pages.dev
