Serin

Documentation

Serin Cloud IDE

One folder. Every device.

A development server in the cloud, open on your iPad, your Mac and any browser. The files never move.

It is a browser-based coding environment, built for iPad. File tree, editor, terminal, and a Run button, over a workspace directory on local disk. This page covers installing the server, keeping it running, and reaching it from your devices.

Requirements

  • Node 20 or newer. It was developed on Node 26.
  • python3 and bash on PATH, if you want to run .py and .sh files.

Install and run

Install the dependencies, then start the dev server.

npm install
npm run dev

The dev server listens on port 3000 and prints every address it can be reached on, plus a one-time pairing code:

  open      http://localhost:3000
  open      http://192.168.1.140:3000

  pair      K7QM-3XPD   (valid 30 minutes, single use)
  browser   http://192.168.1.140:3000/#pair=K7QM-3XPD
  ipad app  cloudide://pair?server=...&code=K7QM-3XPD

Nothing is reachable without pairing. Each browser or iPad redeems a code once and gets its own device token. Tokens are stored hashed in .cloud-ide/, which is gitignored.

Pairing

Print a fresh code without restarting:

npm run pair

Show paired devices:

npm run pair -- --list

Cut one device off:

npm run pair -- --revoke <id>

Production build

npm run build && npm start

npm install runs scripts/fix-pty-permissions.mjs, which restores the executable bit on node-pty's prebuilt spawn-helper. npm's tarball extraction drops it, and without it every process spawn fails with posix_spawnp failed.

Run it in the background

npm run service -- install

This builds for production and installs a LaunchAgent (macOS) or a systemd user unit (Linux) that starts the server at login and restarts it if it stops. It runs as you, with the PATH of the shell you installed it from, so terminals opened from the iPad find the same tools.

npm run service alone prints what it would install. -- status and -- uninstall do what they say:

npm run service -- status
npm run service -- uninstall

Logs go to .cloud-ide/logs/server.log.

Stop npm run dev first. Both want ports 3000 and 3001.

Reach it from anywhere

On the LAN the address changes whenever the network does. With Tailscale the server gets a stable name and a real certificate.

npm run tailscale -- --apply

This runs tailscale serve for the IDE on https port 443 and for previews on 8443 (PREVIEW_HTTPS_PORT). Pair the iPad with the https://…ts.net address. The server sees https and hands out https preview URLs on the same name.

npm run tailscale without --apply shows the commands and changes nothing. -- --reset removes them.

npm run tailscale -- --reset

Only devices signed in to your tailnet can connect. Behind any other https proxy, set PREVIEW_ORIGIN to where it exposes port 3001.

On the iPad

  1. Make sure the iPad is on the same Wi-Fi network as this machine.
  2. Open the network address the server printed (the open line with this machine's IP, not localhost) in Safari.
  3. Share, then Add to Home Screen.
  4. Launch it from the home screen. It runs standalone, with no Safari chrome.

The service worker caches the app shell so the UI loads offline. It only registers in a secure context, meaning https or localhost. Over a plain-http LAN address the browser will not register it. Add to Home Screen, standalone display, and the icon all still work. You just do not get an offline shell.

Keyboard

Open the palette with ⌘K and everything is listed with its shortcut. The main ones:

KeysAction
⌘KOpen the command palette
⌘↵Run or stop
⌘SSave
⌘FFind in file
⌃SpaceCompletions
⌘GGo to line
⌘BToggle the tree
⌘1/2/3Switch pane
⌘0Reset the split
⇧PageUp⇧PageDownScroll the terminal

Inside the editor the keymap is VS Code's, via @replit/codemirror-vscode-keymap.

If a ⌘ shortcut does nothing, hold ⌃⌥ instead. Which Cmd combinations a standalone home-screen web app can intercept on iPadOS is unresolved, so every uncertain binding has the same key under ⌃⌥ as a fallback, and every command is reachable by tap as well. ⌘N is deliberately unbound: use ⌃⌥N or the palette.

Ctrl combinations are never claimed while the terminal has focus, so Ctrl+C, Ctrl+D and Ctrl+Z always reach the shell.

Safety