Skip to content

About

iVisual-Studio — pocket IDE for GitHub Codespaces, OpenVSCode Server, and SSH DevContainers on iOS

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

iVisualStudio — Pocket VS Code, GitHub Codespaces & Cloud IDE for iOS

Website (GitHub) · Website (GitLab) · Try the interactive studio · Read the iOS roadmap

GitHub Pages deployment GitLab Pages pipeline status

A native workspace for code, Git, and remote development on iPhone and iPad.

GitHub Codespaces GitLab Web IDE OpenVSCode Server SSH hosts including dev containers Visual Studio (desktop only)

Edit and export the buttons · Original glyphs, not provider logos. Not affiliated with or endorsed by these providers.

GITLAB is a trademark of GitLab Inc. in the United States and other countries and regions. Microsoft and Visual Studio are trademarks of the Microsoft group of companies.


iVisualStudio

Visual Studio Code, GitHub Codespaces, OpenVSCode Server, JetBrains Gateway & SSH DevContainers — re-engineered for one-handed iOS touch.

Built under Groove Labs // YkZ21. One repository, two configured remotes:


Interactive Playground & Brand Studio

<Open the product site

Visit the GitHub Pages site or the GitLab Pages mirror, open the interactive design studio, or edit the connection buttons.

Use the interactive studio in any browser to:

  1. Play with the Live iPhone 16 Pro Pocket VS Code Simulator:
    • Tap the Dynamic Island Tunnel Pill (demo label codespace-main · 14ms, not a measurement) to switch live between GitHub Codespaces, OpenVSCode Server, SSH DevContainers, and JetBrains Gateway.
    • Tap the 48pt Ergonomic Thumb-Zone Coding Bar ({ }, =>, ⌘P, RUN ▶, lpBOT, 3000, GIT, SSH) to insert snippets, open the iOS Bottom-Sheet Command Palette, run builds in the pull-up terminal sheet, or invoke lpBOT AI refactoring.
    • Toggle the Fitts' Law Thumb-Zone Heatmap (H) and test OLED True-Black (#000000), Machined Obsidian (#05080E), VS Code Dark+, and Outdoor Sunlight High-Contrast themes.
  2. Customize & Export the iVisualStudio & lpBOT Icon Suite:
    • Switch between 8 structural icon variants (4 shipped + 4 new), tweak colors/tilt/squircle radius, inspect the 16×16 8× pixel loupe, and export SVGs or PNGs (1024px, 512px, 180px, 1200×630 OG, 1280×360 Repo Banner).

Native iOS app (./ios/)

A SwiftUI shell with a native editor. The iOS roadmap records the remaining device, provider, and release gates.

open ios/iDE.xcodeproj    # Xcode 26+, iOS 18+
Surface What it does
Workspaces Sample, imported folders (security-scoped bookmarks), GitHub clones, SSH hosts — all persisted across relaunch
Editor Native UITextView editing, line numbers, indent engine, find & replace with regex, autosave with a 0.9 s debounce
Thumb bar 48 pt cursor cluster, brackets, symbols page, undo/redo, above the keyboard
Git Changes → unified diff (glyph + rule, never colour alone) → commit, pushed through GitHub's blobs → tree → commit → ref API
SSH swift-nio-ssh, pinned host keys, mirrored tree with per-file push-back, terminal sheet, task runner, port list
Diagnostics Minimal LSP client over the session (completion, definition, publishDiagnostics)
lpBOT Selection-scoped assist against a model endpoint you name; off until configured
Connections The signature pill: host · protocol · live round trip, text only, no pulsing

Credentials live in the Keychain. No code executes on device by design (build plan §5); the webview runs remote VS Code only behind the Advanced toggle.

To enable provider sign-in, register a GitHub OAuth App named iVisual-Studio with Device Flow enabled and enter its public Client ID in Connections (GitHub REST Git requests repo and offline_access; Codespaces requests codespace and offline_access; the callback URL is unused by device flow — any HTTPS address works). Tapping Sign in copies the verification code, opens github.com/login/device in a secure browser sheet, and completes when you approve there. Register a GitLab.com OAuth application also named iVisual-Studio with the read_user scope and the redirect URI ivede://oauth/gitlab; sign-in uses the authorization code flow with PKCE, so no client secret is ever entered or stored. Each provider's page is what asks for authorization, so the app name on that page is the name you registered. The app validates the identity with /user before saving each credential and refreshes tokens where refresh tokens are issued. The external browser may already know your account, but its cookies cannot be imported; the Web IDE reuses only this app's own WebKit cookie store. A native GitLab.com OAuth session does not automatically sign into GitLab Web IDE.


Mobile UX & UI Design System (@mobile-design + @ui-design-system)

Principle Desktop VS Code Problem on Phone iVisualStudio iOS Solution
Fitts' Law & Thumb Zone Menu bar, file tabs, and activity bar sit in the top-left stretch zone with <28px targets. 48pt × 46pt (≥8pt gap) Thumb-Zone Coding Bar + pull-up Terminal & ⌘P Bottom Sheets in the bottom 35% arc.
OLED Battery & Outdoor Legibility Washed-out gray themes drain OLED power and fail in sunlight. OLED True-Black (#000000) & Machined Obsidian (#05080E) surfaces + contrast-checked syntax tokens (per-token ratios in docs/DESIGN-PLAN.md §7) and an outdoor sunlight mode.
iOS HIG & Safe Areas Web wrappers clip under the Dynamic Island and Home Indicator. Dynamic Island becomes the live SSH/Codespace latency pill; SF Pro / SF Mono Dynamic Type (11pt–34pt) + native haptic feedback (.light, .medium, .success).

Complete Brand, Xcode & Workspace Asset Pack (./brand/)

See ./brand/README.md for the full inventory:

  • Xcode AppIcon.appiconset: ./brand/ios/AppIcon.appiconset/ (1024, 180, 167, 152, 120, 87, 80, 60, 58, 40 opaque 24-bit RGB PNGs + Contents.json).
  • Master & Micro Vectors: ide-icon.svg, ide-icon-micro.svg, ide-icon-mono.svg, ide-wordmark-{dark,light,compact}.svg.
  • Announcements & Social: og-image.png (1200×630), social-announcement-square.png (1080×1080), repo-banner.png (1280×360).
  • Workspace & iPhone OLED Wallpapers: backgrounds/ide-workspace-bg-4k.png (3840×2160), ide-workspace-bg-fhd.png (1920×1080), and ide-ios-wallpaper.png (1179×2556).
  • Design Tokens: brand/tokens.css & brand/design-tokens.json (W3C DTCG format).

Current Implementation Status (Source Review)

The iVisualStudio SwiftUI application targets iOS 18 on iPhone and iPad and uses Swift 5 language mode. The Xcode project resolves SwiftNIO, swift-nio-ssh, swift-crypto, and SwiftTerm from its package lock.

Implemented native app

  • Workspace library: bundled sample project, imported folders, GitHub repositories, and SSH workspaces. Remote workspaces can be archived and restored with their local mirrors. The archive keeps connection metadata and edits together.
  • Share into a workspace: the Share extension queues a UTF-8 file in the app inbox. Open Shared Files in the app and choose a destination. Import keeps any existing file with the same name.
  • Code editor: native UITextView with syntax colouring, line numbers, find and replace, jump to line, save shortcuts, crash-recovery drafts, and a 48 pt coding bar. The iPad file list can open an editor in a side pane. Export to Files writes a snapshot of the editor contents.
  • GitHub transport: OAuth device sign-in stores access/refresh credentials in Keychain. The app can list repositories, clone a selected repository/branch, pull text-file changes, show unified diffs, and commit/push selected changes using GitHub's REST Git Data API. Branch updates are non-forced; a rejected update asks the user to pull and retry. Connections offers a repository picker, not token paste. Existing Keychain-held tokens remain usable until replaced by OAuth.
  • SSH transport: SwiftNIO SSH supports password authentication and unencrypted OpenSSH Ed25519 private keys. On first contact, the app shows the SHA-256 host-key fingerprint and asks the user to verify it before sending credentials; later key changes require explicit re-trust. Workspace files are mirrored through remote shell commands and base64; SSH Git status is read-only, while local changes are sent only by an explicit sync or commit action.
  • Remote terminal and tasks: the Shell tab opens an SSH PTY in SwiftTerm with resize and interrupt support. The Tasks tab streams cancellable remote commands, loads named tasks from .ide/tasks.json or .vscode/tasks.json, and can show task status in a Live Activity.
  • SSH port preview: Ports can open an HTTP preview for a selected service on the SSH host's loopback interface. The temporary listener binds to this device's loopback interface and closes with the preview or SSH session.
  • Language assistance: a configured SSH language server receives versioned document updates. The language sheet shows diagnostics, completions, hover, definitions, and quick fixes that edit the current file.
  • Selection-scoped AI: lpBOT can call a manually configured OpenAI-compatible endpoint/model and optional Keychain-held key. It sends only the selected text plus the instruction, and the user applies the proposed replacement. No endpoint or model is bundled, so this feature is inactive until configured.
  • Codespaces discovery and Web IDE access: in Connections, enter the public client ID of a GitHub OAuth App (named iVisual-Studio) with device flow enabled; sign-in opens the verification page in a browser sheet with the code pre-copied. Complete verification at GitHub to list the signed-in account's Codespaces. This credential is stored separately from REST Git. GitLab.com sign-in uses the authorization code flow with PKCE in a browser sheet; the GitLab application (named iVisual-Studio) is registered with the read_user scope and redirect URI ivede://oauth/gitlab, and no client secret is involved. OAuth tokens are refreshed where refresh tokens are issued. The Web IDE uses its own in-app WebKit browser session (persisted between visits, erased by Erase stored credentials); neither Safari cookies nor OAuth tokens are imported into it. Custom remote URLs remain configurable in Settings.
  • App setup and privacy: onboarding, system/light/dark appearance, and a privacy manifest. Erasing credentials clears the app's Keychain items and in-app WebKit sessions, and closes active SSH sessions.

Current boundaries and important constraints

  • GitHub REST Git requires OAuth repo scope (the GitHub OAuth App must have device flow enabled). Codespaces device-flow sign-in covers discovery; editing and execution happen in the Web IDE. GitLab OAuth (authorization code + PKCE) authenticates profile only, not native Git operations or the Web IDE browser. The native Codespaces and GitLab Git transports remain pending; Safari or another app's cookies cannot be imported.
  • GitHub and SSH workspaces mirror text, not a complete repository/filesystem. GitHub clone/pull skips symlinks and blobs over 400 KB and only keeps readable UTF-8 text. SSH discovery is capped at 2,500 files under 400 KB and filters to recognized text paths. The local browser and Quick Open also cap enumeration.
  • Git and SSH check tracked paths directly before reporting a local deletion. A skipped directory, scan limit, or unreadable file does not count as a deletion.
  • SSH push-back uses remote shell commands and verifies the host's file digest before changing tracked content. Selected-path commits preserve unrelated staging, and a failed push can be retried from the Git screen.
  • The local-folder workspace path does not expose Git actions in the app; Git UI is available for GitHub and SSH workspaces.
  • Syntax colouring is a lightweight token/regex pass, not Tree-sitter or a language-aware parser. The editor is not Runestone-based.
  • The macOS CI workflow builds the simulator app and runs the five SwiftPM suites against controlled transports and temporary workspaces. Device editing, live GitHub and SSH round trips, and signed distribution are separate acceptance gates.

Repository state and source of truth

The single live HTML studio, ide-mobile-studio.html, is an interactive design/playground prototype separate from the native SwiftUI implementation. The previous v1 is preserved at archive/ide-mobile-studio-v1-2026-11-30.html, not as a second entrypoint. docs/IOS-PORT-PLAN.md and docs/DESIGN-PLAN.md describe intended scope and acceptance gates, so planned items should not be read as implemented unless listed above.

For implementation details, see docs/IOS-PORT-PLAN.md, docs/DESIGN-PLAN.md, and the ios/iDE/ source directory. App Review notes are in docs/APP-REVIEW-NOTES.md.

<## Website

The repository includes a responsive product site and interactive studio, published from the main branch to both GitHub Pages (workflow) and GitLab Pages (.gitlab-ci.yml). Either deploy builds the site without installing third-party packages.

python3 scripts/build-pages.py
python3 -m http.server 8000 --directory public

Open http://localhost:8000 to preview. The build uses Python's standard library and reads SITE_URL (GitHub Actions) or CI_PAGES_URL (GitLab CI) for the canonical URL and social preview metadata.

About

iVisual-Studio — pocket IDE for GitHub Codespaces, OpenVSCode Server, and SSH DevContainers on iOS

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages