Dayever Labs
All apps

Code editor for iPad Coming soon

PadCode

The editor you know, on iPad

Status
Coming to the App Store
Devices
iPad
Links

Overview

PadCode is an editor for writing code on iPad with the habits you already have from the desktop. The layout and shortcuts match VS Code, and builds, which cannot run on an iPad, run on your own server over SSH.

It is an iPad-only app written in Swift. The TextMate grammar engine used for highlighting and the pieces needed to unlock encrypted OpenSSH keys were ported to Swift. There are no ad, analytics or tracking SDKs.

Stack

App
  • Swift
  • SwiftUI
Highlighting
  • TextMate grammars
  • Oniguruma
Remote
  • SwiftNIO SSH
  • SwiftTerm
  • SFTP
Key storage
  • Keychain
  • Secure Enclave

Architecture

  1. PadCode (iPad)
  2. SSH · SFTP
  3. Your server

Problems and fixes

Highlighting identical to VS Code

Problem
When an editor colours code differently, even familiar code looks foreign.
Fix
The grammar engine was ported to Swift so it reads the same TextMate grammars and themes VS Code uses, with regular expressions handled by the same Oniguruma library. The language of untitled files is guessed by a model that runs on the device.
Result
46 language grammars and 19 colour themes render in the same colours as on the desktop.

Run it on your own server

Problem
A compiler cannot run on an iPad.
Fix
Connect over SSH and build in tabbed terminals, and open remote folders over SFTP to edit them like local files. Leave the app and come back, and it reattaches to the same tmux session. Remote file search and remote Git work too.
Result
An iPad, a keyboard and one server cover everything from editing to building.

Keeping SSH keys safe

Problem
Server keys are the most sensitive thing the app handles.
Fix
Ed25519 and ECDSA keys can be generated and RSA keys imported, and the key derivation function needed to unlock encrypted OpenSSH keys was ported to Swift. Keys and passwords stay in the iPad keychain, and Secure Enclave keys never leave the device. Unknown servers are checked against known_hosts.
Result
Nothing is sent to the developer.

Shortcuts your hands remember

Problem
One different shortcut is enough to break your flow, and shortcuts often fail in the middle of typing Korean.
Fix
The default macOS shortcuts of VS Code, including chords like ⌘K ⌘S, work as they are and can be changed in keybindings.json. ⌘S works even while a Korean syllable is being composed.
Result
The command palette, quick open and multiple cursors open with the same keys as on the desktop.

Numbers

Language grammars
46
Colour themes
19
Tracking SDKs
0
One-time purchase, no subscription
₩4,900

PadCode is not affiliated with Microsoft. Visual Studio Code is a trademark of Microsoft Corporation.