[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-94612":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":16,"stars30d":17,"stars90d":16,"forks30d":16,"starsTrendScore":16,"compositeScore":18,"rankGlobal":10,"rankLanguage":10,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":22,"hasPages":20,"topics":23,"createdAt":10,"pushedAt":10,"updatedAt":24,"readmeContent":25,"aiSummary":26,"trendingCount":16,"starSnapshotCount":16,"syncStatus":27,"lastSyncTime":28,"discoverSource":29},94612,"airship","0xnyn\u002Fairship","0xnyn","Figma like visual editor built for Claude Code, Codex and OpenCode","https:\u002F\u002Fairship.design",null,"TypeScript",454,42,168,1,0,286,54.9,"MIT License",false,"main",true,[],"2026-08-24 04:01:22","# Airship\n\n[![npm](https:\u002F\u002Fimg.shields.io\u002Fnpm\u002Fv\u002F@airshiplabs\u002Fcli)](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F@airshiplabs\u002Fcli)\n[![node](https:\u002F\u002Fimg.shields.io\u002Fnode\u002Fv\u002F@airshiplabs\u002Fcli)](https:\u002F\u002Fnodejs.org)\n[![license](https:\u002F\u002Fimg.shields.io\u002Fnpm\u002Fl\u002F@airshiplabs\u002Fcli)](LICENSE)\n\n**Visual editor for your codebase.**\n\nAirship puts an infinite design canvas in front of your dev server. Select an element, describe\nthe change, and watch Claude Code, Codex or OpenCode update the source — without rebuilding your\nUI in a separate design tool.\n\n![Airship mid-edit: the prompt \"Turn this into a github icon\" streaming its reads, writes and edits, a desktop and an iPhone frame side by side on the canvas, and the Edit inspector open on the selection](media\u002Finspector-edit.png)\n\n```bash\nnpx @airshiplabs\u002Fcli --target 3000\n```\n\nNo plugin. No config. Nothing added to your dependencies or your bundle.\n\n[airship.design](https:\u002F\u002Fairship.design) · [CLI reference](#cli-reference) · [Configuration](#configuration) · [Questions](#questions)\n\n---\n\n## Quick start\n\n![The Airship landing page, with the editor overlay open on a running app at localhost:3000](media\u002Fcover.png)\n\n**1. Start your app the way you always do.**\n\n```bash\npnpm dev    # http:\u002F\u002Flocalhost:3000\n```\n\nWorks with Vite, Next, Remix, Rails, or anything that serves HTML over HTTP. No plugins\nrequired.\n\n**2. Point Airship at your dev server.**\n\n```bash\nnpx @airshiplabs\u002Fcli --target 3000\n```\n\nAirship connects to the port you're already running and opens the visual editor on the next\nfree port. Or install it once and use the `airship` binary:\n\n```bash\nnpm i -g @airshiplabs\u002Fcli\nairship --target 3000\n```\n\n**3. Bring your coding agent.**\n\n```bash\nairship --target 3000 --agent codex --safe\n```\n\nPick the agent you already use and start making changes without running a separate agent\ninterface.\n\nAirship uses the authentication you already have configured for Claude Code, Codex, or\nOpenCode. Run `airship doctor` if something does not work.\n\n### Or let it start your dev server too\n\n`--exec` starts your dev server and stops it again when Airship exits. Leave `--target` off and\nit reads the port from your `package.json`:\n\n```bash\nairship --exec \"pnpm dev\"\n```\n\nRun `airship` on its own and it just asks you for the port, the agent and the mode.\n\n## What it is\n\nA CLI, and nothing else.\n\n- **Nothing goes into your project.** Airship runs in front of the dev server you already have.\n  Your build, your config and your dependencies are untouched.\n- **Every frame is a real browser window.** A phone frame behaves like a phone, however far you\n  zoom out. Mobile and desktop sit side by side — both live, both editable, one source file.\n- **Changes land in your code.** Click an element and Airship knows the file and line that drew\n  it. Describe the change, get the diff, undo it if you don't like it.\n- **Nothing leaves your machine.** No account, no telemetry, no service to sign up for.\n\n\n![The agent panel showing the diff of the file it just edited, with the element still selected on the canvas](media\u002Fagent.png)\n\n## Canvas or inline\n\nTwo ways to look at your app. Same editor either way.\n\n**`canvas`** (default) — your app on a pannable canvas, one live frame per device size.\n\n![The canvas, with a desktop frame and an iPhone frame side by side, the agent panel on the left and the inspector on the right](media\u002Fcanvas.png)\n\n**`inline`** — the editor on top of your own page, one window.\n\n![Inline mode, with the editor panels floating over the real page at localhost:3000](media\u002Finline.png)\n\nPick one at launch with `airship --mode inline`, or switch any time from the bottom bar. Your\nchoice sticks across reloads and as you click around your app. Add `?__airship=inline` to a URL\nto try the other one once, without changing your preference; `?__airship=shell` is the way back\nto the canvas — the parameter takes the internal mode name, so it is `shell`, not `canvas`.\n\nOpen any route of your app in Airship — `\u002Fpricing`, `\u002Fsettings` — and every frame opens there.\n\nOn the canvas:\n\n| Gesture | |\n| --- | --- |\n| wheel \u002F two-finger | pan |\n| ⌘\u002Fctrl-wheel, pinch | zoom at cursor |\n| space-drag, middle-drag | pan |\n| ⇧1 \u002F ⇧2 \u002F ⇧0 | fit \u002F zoom to selection \u002F 100% |\n\n## Inspector\n\nClick an element and it fills the inspector. Every tab is looking at the same thing.\n\n`Edit` is position, size, spacing and layout — the shot up in [Quick start](#quick-start). `CSS`\nis the box model, the rules that are actually hitting the element, and your own tweaks on top:\n\n![The CSS tab, showing the box model, an empty element.style block and the matched CSS rules for the selection](media\u002Finspector-css.png)\n\n`DOM` is the tree. Click a node to select it, or drag one to move it somewhere else:\n\n![The DOM tab, showing the element tree with the selected text node highlighted](media\u002Finspector-dom.png)\n\n## Agents\n\nPick one with `--agent`, or switch between them as you go. They are not equal, and Airship tells\nyou what you're giving up at startup.\n\n| | `claude` (default) | `codex` | `opencode` |\n| --- | --- | --- | --- |\n| Watch it write | word by word | the whole reply at once, at the end | word by word |\n| Pick up an old chat | yes | yes | yes |\n| Branch off a chat | yes | starts fresh, and says so | yes, history kept |\n| Shows what it cost | in dollars | tokens only | in dollars |\n| `--effort` | yes | yes | **ignored** |\n| `--max-turns`, `--max-budget` | yes | **ignored** | **ignored** |\n| `--model` | a model name | a model name | needs the `provider\u002Fmodel` form |\n| `--safe` | checks each edit and command | **real sandbox** | asks before each edit and command |\n| Install | included | included | **you install it yourself** |\n\nUndo is Airship's, not the agent's. It keeps the previous version of every file it touches, so\nundo works on all three. One catch: `codex` and `opencode` get that previous version from Git,\nso **undo needs your project to be a Git repo on those two**. Airship warns you at startup.\n\n### Authentication\n\nAirship reuses whatever the chosen agent already has, and warns at startup if it finds nothing.\n\n| Agent | Needs one of |\n| --- | --- |\n| `claude` | `ANTHROPIC_API_KEY`, `CLAUDE_CODE_OAUTH_TOKEN`, or a `claude` login (`~\u002F.claude`) |\n| `codex` | `CODEX_API_KEY`, `OPENAI_API_KEY`, or a `codex login` (`~\u002F.codex\u002Fauth.json`) |\n| `opencode` | the `opencode` binary on PATH, **plus** a provider key or an `opencode auth login` |\n\nOpenCode is a separate install — `brew install sst\u002Ftap\u002Fopencode` or `npm i -g opencode-ai` —\nand accepts `ANTHROPIC_API_KEY`, `OPENAI_API_KEY`, `OPENCODE_API_KEY`, `OPENROUTER_API_KEY`,\n`GEMINI_API_KEY`, `GOOGLE_GENERATIVE_AI_API_KEY`, `AWS_BEARER_TOKEN_BEDROCK` or\n`AWS_ACCESS_KEY_ID`.\n\n## Safety\n\n**By default the agent runs unsandboxed.** It can write anywhere you can and reach the network —\nthe same access it has when you run it from your terminal. Pass `--safe` to confine it:\n\n| | default | `--safe` |\n| --- | --- | --- |\n| `codex` | full access, network on | locked to your project folder, no network, no web search |\n| `claude` | full access, no sandbox | edits kept inside your project, dangerous commands blocked |\n| `opencode` | full access | asks before every edit and command, checked the same way; no web fetch, no web search, nothing outside your project |\n\n`--safe` is not equally strong on all three, and the CLI says so at launch:\n\n- **Only `codex` gets a real sandbox.** The operating system stops it writing outside your\n  project. On `claude` and `opencode`, Airship checks each edit and command first — a good\n  check, but a check, not a wall.\n- **That check looks for known-dangerous commands; it does not understand shell.** It catches\n  `rm -rf`. It does not catch a write pointed somewhere else, like `echo x > \u002Felsewhere`.\n- **`claude` and `opencode` can still reach the network.** Airship switches off their web tools,\n  but nothing stops a command they run from opening a connection anyway. Only a sandbox can.\n\nIf a hard guarantee matters more to you than which agent you use, run\n`airship --agent codex --safe`.\n\nDiffs and undo work the same either way — `--safe` has no effect on them.\n\n## CLI reference\n\n```\nairship [options]\nairship --target \u003Cport> [options]\nairship \u003Ccommand> [options]\n```\n\n| Command | |\n| --- | --- |\n| `airship` | Launch the visual editor against your dev server. Bare at a terminal, it asks first. |\n| `airship init` | Create an `airship.config.json` for this project. |\n| `airship doctor` | Check your environment and report what is wrong. |\n\nFlags accept `--flag value` and `--flag=value`, a camelCase spelling of any kebab name\n(`--maxTurns` ≡ `--max-turns`), and `--no-\u003Cname>` to turn any boolean off. A bare `--` stops flag\nparsing — airship takes no positional arguments, so anything after it is ignored rather than\nforwarded.\n\n### Core\n\n| Flag | | Default |\n| --- | --- | --- |\n| `-t, --target \u003Cport>` | Port your dev server is already running on. Detected from your `package.json` when omitted. | |\n| `-p, --port \u003Cport>` | Port for the airship proxy. | `target + 1` |\n| `--cwd \u003Cdir>` | Project root for edits. | current directory |\n| `--mode \u003Cname>` | Editor mode: `canvas` or `inline`. Switchable from the editor too. | `canvas` |\n| `--exec \u003Ccommand>` | Start your dev server with this command and stop it when airship exits. | |\n| `--open` | Open the editor in your browser once it is listening. | |\n\n### Agent\n\n| Flag | | Default |\n| --- | --- | --- |\n| `-a, --agent \u003Cname>` | Coding agent: `claude`, `codex`, `opencode`. | `claude` |\n| `-m, --model \u003Cid>` | Model id. | the agent's own default |\n| `--effort \u003Clevel>` | Reasoning effort: `minimal`, `low`, `medium`, `high`, `xhigh`, `max`. | |\n| `--max-turns \u003Cn>` | Cap agent turns per edit (claude only). | `24` |\n| `--max-budget \u003Cusd>` | Stop an edit if it exceeds this cost in USD (claude only). | |\n| `--commit` | Auto-commit each accepted edit (Conventional Commits). | |\n\n`-m` is `--model`, not `--mode`. `--mode` has no short alias.\n\n### Sandbox\n\n| Flag | | Default |\n| --- | --- | --- |\n| `--safe` | Confine edits to the project directory and cut network access. See [Safety](#safety). | off |\n\n### Backend\n\n| Flag | | Default |\n| --- | --- | --- |\n| `--codex-path \u003Cpath>` | Path to the `codex` binary. | bundled |\n| `--codex-config \u003Ck=v>` | Extra `codex --config` pair; repeatable. | |\n| `--opencode-path \u003Cpath>` | Path to the `opencode` binary. | found on PATH |\n| `--opencode-url \u003Curl>` | Attach to a running `opencode serve` instead of starting one. | |\n| `--opencode-agent \u003Cname>` | Run as a named opencode agent. | its own |\n| `--opencode-config \u003Cfile>` | JSON file merged into the opencode server config. | |\n\n`--codex-config` reads the shape of the value: `true`\u002F`false` become TOML booleans and anything\nnumeric becomes a number, so `--codex-config network_access=true` sends a boolean, not the string.\nQuote it — `--codex-config k='\"true\"'` — to keep a string a string.\n\n### Global\n\n| Flag | |\n| --- | --- |\n| `--json` | Machine-readable JSON on stdout, no colour and no banner. |\n| `-q, --quiet` | Suppress the launch banner. Warnings still print. |\n| `--debug` | Print stack traces on failure. |\n| `-h, --help` | Show this help. |\n| `-v, --version` | Print the version. |\n\nBanners, warnings and errors go to stderr; `--json` payloads, help and `--version` go to stdout,\nso `airship --json | jq` is reliable.\n\n### `airship init`\n\nWrites an `airship.config.json` from the same questions the bare `airship` wizard asks, so it\nstops asking. Takes `--cwd` and the global flags. Needs a terminal.\n\n### `airship doctor`\n\nChecks, in order: `node`, `airship`, `config`, `git repo`, `overlay bundle`, `agent claude`,\n`agent codex`, `agent opencode`, `dev server`. Each reports `ok`, `warn` or `fail` with a hint.\nOnly your preferred agent (`--agent`, default `claude`) can fail the run; the other two warn.\n\nExits `1` if any check failed, so `airship doctor && airship` works. Takes `--cwd`, `--target`,\n`--agent` and the global flags.\n\n### Exit codes\n\n| Code | |\n| --- | --- |\n| `0` | Fine. |\n| `1` | Something failed. |\n| `2` | Bad flag, bad value, or a terminal was needed and there wasn't one. |\n| `127` | Not an airship command. |\n| `130` | Interrupted — Ctrl-C, or a cancelled prompt. |\n\n## Configuration\n\nSettings resolve in this order, highest first:\n\n```\nflags  →  AIRSHIP_* environment  →  airship.config.json  →  defaults\n```\n\n### The config file\n\n`airship.config.json`, or an `\"airship\"` key in your `package.json`. Run `airship init` to write\none. Every key is a flag name, in either kebab or camel case:\n\n```json\n{\n  \"agent\": \"claude\",\n  \"mode\": \"canvas\",\n  \"target\": 3000,\n  \"safe\": true\n}\n```\n\nAirship looks for it from `--cwd` upwards and **stops at your repository root**, so a stray\nconfig file somewhere above your repo won't affect you. Misspell a key and it says so, with a\nsuggestion — it never quietly ignores one.\n\n### Environment\n\nEvery flag except `--help` and `--version` has an environment variable: `AIRSHIP_` plus the flag\nname uppercased, with `-` as `_`.\n\n```\nAIRSHIP_TARGET          AIRSHIP_AGENT           AIRSHIP_CODEX_PATH\nAIRSHIP_PORT            AIRSHIP_MODEL           AIRSHIP_CODEX_CONFIG\nAIRSHIP_CWD             AIRSHIP_EFFORT          AIRSHIP_OPENCODE_PATH\nAIRSHIP_MODE            AIRSHIP_MAX_TURNS       AIRSHIP_OPENCODE_URL\nAIRSHIP_EXEC            AIRSHIP_MAX_BUDGET      AIRSHIP_OPENCODE_AGENT\nAIRSHIP_OPEN            AIRSHIP_COMMIT          AIRSHIP_OPENCODE_CONFIG\nAIRSHIP_SAFE            AIRSHIP_JSON            AIRSHIP_QUIET\nAIRSHIP_DEBUG\n```\n\n`AIRSHIP_HELP` and `AIRSHIP_VERSION` are deliberately not read — exporting one would leave the\nCLI unable to run anything. Booleans take `1`\u002F`true`\u002F`yes`\u002F`on` or `0`\u002F`false`\u002F`no`\u002F`off`;\nanything else is an error rather than a guess.\n\nThree more are honoured: `AIRSHIP_EDITOR` (`vscode`, `cursor`, `windsurf` or `zed` — which\neditor \"open in editor\" prefers, otherwise probed in that order), and `NO_COLOR` \u002F `FORCE_COLOR`.\n\n### `--cwd`\n\n`--cwd` is the folder your dev server treats as its root, which is not always your repository\nroot. Airship needs it to turn the paths your dev server reports (`\u002Fsrc\u002Fapp.tsx`) into real\nfiles on disk. In a monorepo where the app lives in `apps\u002Fweb`, that's `--cwd apps\u002Fweb`.\n\n## Port detection\n\nLeave `--target` off and Airship works it out, trying each likely port in turn and taking the\nfirst one that answers:\n\n1. **The port in your dev script** — a `--port`, `-p` or `PORT=` in `scripts.dev`, `scripts.start`\n   or `scripts.serve`.\n2. **Your framework's default**, by what is in your dependencies:\n\n   | Dependency | Port |\n   | --- | --- |\n   | `next`, `nuxt`, `@remix-run\u002Fdev`, `react-scripts` | `3000` |\n   | `parcel` | `1234` |\n   | `@angular\u002Fcli` | `4200` |\n   | `astro` | `4321` |\n   | `@sveltejs\u002Fkit`, `vite` | `5173` |\n   | `storybook` (or any `@storybook\u002F*`) | `6006` |\n   | `gatsby` | `8000` |\n   | `@11ty\u002Feleventy` | `8080` |\n\n   Most specific first — a project with both `vite` and `storybook` is a Vite app that also has\n   a component catalogue, not the other way round.\n\n3. **Common ports** — `3000`, `5173`, `8080`, `4321`, `4200`.\n\nWith `--exec` it's the opposite: the port has to be *free*, since Airship is about to start your\ndev server on it. It won't start one on a port that's already taken.\n\n## Questions\n\nIncluding the ones with unflattering answers.\n\n**Do I need a plugin, or to change my build?**\nNo. Airship runs as a reverse proxy in front of your existing dev server. Nothing is added to\nyour dependencies, config, or bundle.\n\n**Does it work with Tailwind, CSS Modules or styled-components?**\nYes. Airship works with the styling system already in your project. It works with the tokens and\nstyling conventions already in your codebase, so visual changes can map back to the values your\ndesign system already uses.\n\n**How does it know which file an element came from?**\nDev builds already record where each thing on screen came from. Airship reads that to find the\nfile and line, and hands it to the agent.\n\n**What exactly gets sent to the agent?**\nWhat you clicked, the file and line it came from, anything you changed in the inspector, the\nframes you were working in — and whatever you typed.\n\n**Can I use my existing coding agent?**\nYes. Airship works with Claude Code, Codex, and OpenCode, so you don't need to change your agent\njust to use the visual editor.\n\n**Is it safe to point at a real repository?**\nAirship runs locally and works directly on the repository you point it at. By default your\ncoding agent has the same access to your files and the network that it always has. `--safe` can\nkeep edits inside your project and block dangerous commands — read [Safety](#safety) for what it\ndoes and doesn't cover on each agent.\n\n**How do I undo something?**\nEvery edit can be undone from Airship, which keeps the previous version of the file. On `claude`\nthat's all there is to it. On `codex` and `opencode` that previous version comes from Git, so\nthose two need your project to be a repository. See [Agents](#agents).\n\n**Can I see how a change affects different devices?**\nYes. Airship runs the same app at several real device sizes at once. Make a change once and\nwatch it land on desktop, tablet and mobile together, without resizing anything.\n\n**Can I use Airship without Git?**\nYes, Airship doesn't require it. But undo on `codex` and `opencode` works by asking Git for the\nprevious version of the file, so without a repository you lose undo on those two. `claude` is\nunaffected. See [Agents](#agents).\n\n**Does my code leave my machine?**\nAirship runs entirely on localhost. It has no account, telemetry, or hosted service, and your\ncode isn't sent to Airship. Your chosen coding agent handles requests using the same credentials\nand provider it would use from your terminal.\n\n## Requirements\n\nNode 22.13 or later, and one of Claude Code, OpenAI Codex or OpenCode.\n\nmacOS, Linux and Windows. Every PR is built and tested on Linux and Windows.\n\n## Links\n\n- [airship.design](https:\u002F\u002Fairship.design)\n- [Issues](https:\u002F\u002Fgithub.com\u002F0xnyn\u002Fairship\u002Fissues) · [Releases](https:\u002F\u002Fgithub.com\u002F0xnyn\u002Fairship\u002Freleases)\n- [CONTRIBUTING.md](CONTRIBUTING.md) — architecture, the packages, Storybook, CI and releases\n- [MIT](LICENSE)\n","Airship 是一个面向前端开发者的可视化代码编辑工具，支持与 Claude Code、Codex 和 OpenCode 等编程智能体协同工作。它通过 CLI 无侵入式地连接本地开发服务器（如 Vite\u002FNext.js\u002FRails），在真实浏览器环境中提供无限画布，允许用户选中 UI 元素后自然语言描述修改意图，由 AI 实时生成并应用代码变更，所有改动直接落回源文件且不修改项目依赖或构建配置。适用于前端快速原型迭代、多端（桌面\u002F移动）同步调试、AI 辅助 UI 开发等场景，强调本地化、零配置与开发流程无缝集成。",2,"2026-08-12 02:30:13","CREATED_QUERY"]