Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

iCodeSwift Banner

iCodeSwift

Run Swift in your browser — no Xcode, no Mac required.

Deployed on Cloudflare Pages Swift Toolchain License Made by

Live Demo →


What is iCodeSwift?

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.


Features

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

Getting Started

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.


What You Can Build

✅ Supported

  • Console applications
  • Swift logic and algorithms
  • Data structures and standard library exploration
  • Swift 5.8 language features and syntax testing
  • Learning and experimentation

❌ Not Supported

  • GUI / SwiftUI apps (VPS environment restriction)
  • Downloading compiled Swift binaries (privacy & security constraint)
  • Networking or system-level APIs

Tech Stack

  • Frontend — Vanilla HTML/CSS/JS with custom Monaco Editor integration
  • HostingCloudflare Pages (fully static frontend)
  • Build Backend — Region-optimized VPS running the Swift 5.8 toolchain
  • StoragelocalStorage for client-side project persistence
  • EditorMonaco Editor (the engine behind VS Code)

Architecture Overview

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.


Project Structure

icodeswift/
├── index.html          # Landing page
├── resources/
│   ├── icodeswift_banner.png
│   └── orange_swift_icon.png
├── editor/             # Monaco editor integration & build logic
└── styles/             # UI and animation styles

Related Projects

  • iCodeWin — A companion project focused on iOS development tooling, built earlier and coded largely from scratch. One of the foundational projects in this series.

Roadmap

  • 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)

Contributing

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.html

Security

iCodeSwift 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.


License

MIT © 0xShadowHex


Built with passion and creativity · icodeswift.pages.dev

Swift Icon

About

run importless swift in browser using swift 5.8 toolchain

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages