diff --git a/apps/web/public/favicon.svg b/apps/web/public/favicon.svg new file mode 100644 index 0000000..b9283fa --- /dev/null +++ b/apps/web/public/favicon.svg @@ -0,0 +1,44 @@ + + + + + diff --git a/apps/web/public/llms.txt b/apps/web/public/llms.txt new file mode 100644 index 0000000..09fdaf0 --- /dev/null +++ b/apps/web/public/llms.txt @@ -0,0 +1,63 @@ +# airship + +> A visual editor for the web app you are already running. Airship puts an +> infinite design canvas in front of your dev server — no plugin, no config. +> Point at any element, describe the change in plain English, and Claude Code, +> OpenAI Codex or OpenCode edits the source file, with streaming status, inline +> diffs and undo. + +## What it is + +A CLI. `npx @airshiplabs/cli --target 3000` starts a universal reverse proxy in +front of the dev server you already have and opens the editor on the next port. +Nothing is added to your dependencies, your config or your bundle. + +## How it works + +- **Reverse proxy, not a plugin.** Works with Vite, Next, Remix, Rails — + anything serving HTML over HTTP. `--target` is the only flag most projects + need, and it is detected from your package.json when you leave it off. +- **Frames are real viewports.** Each frame is a same-origin iframe at a device + size, so a 393px frame reports `innerWidth === 393` at any zoom. Media and + container queries fire per frame. +- **Edits go to source.** A picked element resolves back to the file and line + that rendered it. Your prompt, the selection and any inspector tweaks reach + the agent, which edits the file; you get the diff and an undo. +- **Inline mode.** `?__airship=inline` injects the overlay straight into the + app's own page instead of the canvas shell. + +## Agents + +Selected with `--agent`, or switched per turn from the composer. They are not +equivalent: + +- **claude** (default) — token-level streaming, hook-based diff capture, + `--max-turns` and `--max-budget` enforced, native file checkpointing. +- **codex** — the only backend that confines writes at the OS level under + `--safe`. Whole-message streaming; diffs reconstructed from the git HEAD blob. +- **opencode** — native session fork and snapshot-backed revert; ignores + `--effort`. A separate install, found on PATH. + +## Safety + +By default there is no sandbox: the agent can write anywhere you can and reach +the network. `--safe` confines edits to the project and screens destructive +commands — but only `codex` enforces this at the OS level. On claude and +opencode the screen matches paths and command patterns rather than parsing +shell, so a write redirected out of the project is not caught. + +## Privacy + +Airship runs entirely on localhost and adds no service of its own: no account, +no telemetry, no server. Whatever your chosen agent sends to its provider is +what it would send from your terminal, under credentials you already gave it. + +## Requirements + +Node 22.13 or later, and one of Claude Code, OpenAI Codex or OpenCode. + +## Links + +- Source: https://github.com/0xnyn/airship +- Issues: https://github.com/0xnyn/airship/issues +- Releases: https://github.com/0xnyn/airship/releases diff --git a/apps/web/public/og.png b/apps/web/public/og.png new file mode 100644 index 0000000..447765d Binary files /dev/null and b/apps/web/public/og.png differ diff --git a/apps/web/public/robots.txt b/apps/web/public/robots.txt new file mode 100644 index 0000000..f71e92b --- /dev/null +++ b/apps/web/public/robots.txt @@ -0,0 +1,4 @@ +User-agent: * +Allow: / + +Sitemap: https://airship.design/sitemap.xml diff --git a/apps/web/public/sitemap.xml b/apps/web/public/sitemap.xml new file mode 100644 index 0000000..1520213 --- /dev/null +++ b/apps/web/public/sitemap.xml @@ -0,0 +1,13 @@ + + + + + https://airship.design/ + weekly + 1.0 + + diff --git a/apps/web/public/wallpaper-day.avif b/apps/web/public/wallpaper-day.avif new file mode 100644 index 0000000..3f69b27 Binary files /dev/null and b/apps/web/public/wallpaper-day.avif differ diff --git a/apps/web/scripts/og.mjs b/apps/web/scripts/og.mjs new file mode 100644 index 0000000..60fa6de --- /dev/null +++ b/apps/web/scripts/og.mjs @@ -0,0 +1,157 @@ +/* + * Regenerates public/og.png. + * + * The card used to be a hand-made binary with the headline and the install + * command painted into it, which is exactly how it ended up advertising + * "The visual editor for the app you're already running" and `npx airship` + * long after the page had stopped saying either. A picture of copy is still + * copy, and nothing checks it. + * + * So the two strings that actually drift — the heading and the install + * command — are read from the same content files the page renders from, and + * the card is a screenshot. Change the copy, run `make web:og`, commit the png. + * + * The blurb below is NOT read from content on purpose: a social card has room + * for about a dozen words, and every descriptive string in content/ is written + * for a page that can afford three lines. Keeping it here, short, beats + * force-fitting hero.sub into a space it does not fit. + */ + +import { readFileSync } from "node:fs"; +import { dirname, join } from "node:path"; +import { fileURLToPath } from "node:url"; +import pw from "playwright"; + +const HERE = dirname(fileURLToPath(import.meta.url)); +const WEB = join(HERE, ".."); +const TOKENS = join(WEB, "../../packages/site-tokens/dist"); + +const WIDTH = 1200; +const HEIGHT = 630; + +/** The one line of copy this file owns. See the note above. */ +const BLURB = + "Point at any element, describe the change, and Claude Code, Codex or OpenCode edits the source file."; + +const site = JSON.parse( + readFileSync(join(WEB, "src/content/site.json"), "utf8") +); +const hero = JSON.parse( + readFileSync(join(WEB, "src/content/hero.json"), "utf8") +); + +/** The install command, with hero.json's `{{installCommand}}` resolved. */ +const install = hero.installCommand.replace( + /\{\{installCommand\}\}/g, + site.installCommand +); + +function font(file) { + try { + return readFileSync(join(TOKENS, "fonts", file)).toString("base64"); + } catch (cause) { + throw new Error( + `Missing ${file}. Build the tokens first: pnpm turbo run build --filter=@airship/site-tokens`, + { cause } + ); + } +} + +const inter = font("inter-variable.woff2"); +const mono = font("jetbrains-mono-400.woff2"); + +/* + * The brand mark, inlined from assets/logo.svg. The +
+ + + + ${site.name} +
+

${hero.heading}.

+

${BLURB}

+${install} +`; + +const browser = await pw.chromium.launch(); +const page = await browser.newPage({ + deviceScaleFactor: 1, + viewport: { height: HEIGHT, width: WIDTH }, +}); +await page.setContent(html, { waitUntil: "load" }); +await page.evaluate(() => document.fonts.ready); + +const out = join(WEB, "public/og.png"); +await page.screenshot({ path: out }); +await browser.close(); + +process.stdout.write(`og: wrote ${out} (${WIDTH}x${HEIGHT})\n`);