aired 1.9.0 → 1.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aired",
3
- "version": "1.9.0",
3
+ "version": "1.11.0",
4
4
  "description": "Publish HTML artifacts to shareable URLs instantly",
5
5
  "type": "module",
6
6
  "bin": {
@@ -8,13 +8,17 @@ Run it with `npx aired` (no install) or install it with `npm install -g aired`.
8
8
  |---|---|
9
9
  | `aired [file]` | Publish an HTML or Markdown file, a folder with `index.html`, or stdin (the default command) |
10
10
  | `aired new [template]` | Write a starter to fill in: `deck`, `deck-html`, `report`, `one-pager` (no name lists them) |
11
- | `aired update <id> <file>` | Replace a page's content at the same link (`-m "note"` labels the version) |
11
+ | `aired update <id> <file>` | Replace a page's content at the same link (`-m "note"` labels the version). Open tabs reload by themselves |
12
+ | `aired list` | Your pages: id, title, link, last update, views (`--project`, `--limit`, `--json`; signed out: pages you have tokens for) |
13
+ | `aired pull <id>` | Download a page's current source to edit: `<id>.md` for Markdown pages, else `<id>.html` (`-o file`, `-o -` prints it) |
14
+ | `aired watch <path>` | Publish a file or folder, then update the page on every save (`--id` to update an existing page) |
12
15
  | `aired versions <id>` | A page's history: every version kept, newest first |
13
16
  | `aired restore <id> <version>` | Put an earlier version back (it goes live as a new version) |
14
17
  | `aired set <id>` | Change who can open it, its expiry, view limit or title without uploading again |
15
18
  | `aired check <id>` | Open the page in a real browser and report errors (exits 1 if broken) |
16
19
  | `aired pdf <id>` | Download the page as a PDF (a deck: one slide per page) |
17
- | `aired info <id>` | Title, size, views and expiry |
20
+ | `aired embed <id>` | Print the code to show the page on another site: the embed link, an `<iframe>`, and a linked preview image for READMEs |
21
+ | `aired info <id>` | Title, size, views and expiry; `--slides` (your own deck, Pro, signed in) adds per slide how many reached it, the typical time and where people stopped (`--days 7\|30\|90`) |
18
22
  | `aired delete <id>` | Delete a page |
19
23
  | `aired feedback` | Report a bug, friction or idea in aired itself |
20
24
  | `aired tokens` | List stored update tokens (`aired tokens prune` removes ones for pages that are gone) |
@@ -39,6 +43,21 @@ Run it with `npx aired` (no install) or install it with `npm install -g aired`.
39
43
 
40
44
  `aired update` takes `-t`, `--deck`, `--markdown` and `-m, --message`.
41
45
 
46
+ ## Pick up where you left off
47
+
48
+ ```bash
49
+ aired list # find the page
50
+ aired pull abc123 # abc123.md (or .html), as it was last published
51
+ # edit abc123.md
52
+ aired update abc123 abc123.md # a deck: add --deck
53
+ ```
54
+
55
+ `aired pull` works for your own pages (signed in or `AIRED_API_KEY`) and pages you have the update token for on this machine; nobody else can read a page's source, PIN or not. It won't overwrite a file unless you pass `--force`. Its `--json` says the `version` you pulled: if `aired versions <id>` shows a newer one before you update, someone changed it since.
56
+
57
+ Anyone who has the page open sees the update without reloading (within about 5 seconds if they opened it in the last 2 minutes, then within 15 seconds, then within a minute): a deck stays on its slide and a long page keeps its scroll position. If they've typed into the page, they get a "Reload" button instead, so nothing they typed is lost.
58
+
59
+ `aired watch page.html` publishes once and then updates the page every time you save (a folder is bundled again each time). Each save is kept as a version, so Free's last 5 turn over quickly. With `--json` it prints one line per publish or update.
60
+
42
61
  ## aired set
43
62
 
44
63
  ```bash
@@ -49,7 +68,18 @@ aired set abc123 --only alice@client.com,@client.com # only these people (each
49
68
  aired set abc123 --public # anyone with the link again
50
69
  ```
51
70
 
52
- Also `--clear-title` and `--clear-reads`, and `--allow-pdf` / `--no-allow-pdf` to give viewers a Download PDF button or take it away (off by default; not on pages with a view limit). PINs are 4–64 characters, TTLs a minute to a year (use `--permanent` beyond that), titles up to 200 characters. It uses the stored update token, else your sign-in or `AIRED_API_KEY` (your own pages only). `--only` needs sign-in and a page in your account.
71
+ Also `--clear-title` and `--clear-reads`, `--allow-pdf` / `--no-allow-pdf` to give viewers a Download PDF button or take it away (off by default; not on pages with a view limit), and `--no-allow-embed` / `--allow-embed` to stop or allow other sites framing the page (on by default; see `aired embed`). PINs are 4–64 characters, TTLs a minute to a year (use `--permanent` beyond that), titles up to 200 characters. It uses the stored update token, else your sign-in or `AIRED_API_KEY` (your own pages only). `--only` needs sign-in and a page in your account.
72
+
73
+ ## aired embed
74
+
75
+ ```bash
76
+ aired embed abc123 # the embed link, the <iframe> and a Markdown image link
77
+ aired embed abc123 --iframe # just the <iframe>, to paste into a site or docs
78
+ aired embed abc123 --markdown # just the README snippet: GitHub strips iframes
79
+ aired embed abc123 --url # just https://aired.sh/embed/abc123
80
+ ```
81
+
82
+ The frame is `https://aired.sh/embed/<id>`: a deck keeps its slide controls, a doc or page scrolls. Only pages anyone can open embed: a PIN, `--only`, a view limit or `--no-allow-embed` makes it fail (exit 1), and an existing embed shows a "can't be shown here" card linking to the page. Free and anonymous embeds show a small "Made with aired" link; Pro embeds show nothing. Embeds count views like the page, with the site they're on as the referrer. Pasting the `/p/` link works in tools that read oEmbed from any site (WordPress); Notion, Ghost and Medium don't expand pasted aired links yet.
53
83
 
54
84
  ## aired check
55
85
 
@@ -16,8 +16,8 @@
16
16
  |---|---|---|
17
17
  | `publish_html` | nothing | Publish `html` or `markdown`, with `deck`, `title`, `pin`, `ttl_seconds`, `permanent`; `id` + `update_token` to update (owner: `id` alone); `message` labels the version; `file_path` and `project` on the local server |
18
18
  | `get_template` | nothing | Starters: `deck`, `deck-html`, `report`, `one-pager` (no name lists them) |
19
- | `get_page` | owner, or the `update_token` | Title, URL, size, views, view limit, expiry, project, PIN on or off, doc or deck, live `version`; `include_source` adds the Markdown or HTML as published and a deck's notes |
20
- | `set_options` | owner, or the `update_token` | Change `pin` (null removes), `ttl_seconds` or `permanent`, `view_limit` (null removes), `title`, `allow_pdf` (viewers can download a PDF); signed in: `access`, `public_results`, `accept_responses` |
19
+ | `get_page` | owner, or the `update_token` | Title, URL, size, views, view limit, expiry, project, PIN on or off, doc or deck, live `version`, `updated_at`; `include_source` adds the Markdown or HTML as published and a deck's notes, so you can edit it and update the page from anywhere. On your own deck, signed in: `slide_stats` (Pro: per slide `reached`, `median_seconds`, `drop_off`, last 30 days) or `slide_stats_upgrade_url` (Free) |
20
+ | `set_options` | owner, or the `update_token` | Change `pin` (null removes), `ttl_seconds` or `permanent`, `view_limit` (null removes), `title`, `allow_pdf` (viewers can download a PDF), `allow_embed` (false stops other sites framing it); signed in: `access`, `public_results`, `accept_responses` |
21
21
  | `list_versions` | owner, or the `update_token` | Every version kept, newest first, with who made it, when, size and note |
22
22
  | `restore_version` | owner, or the `update_token` | Put `version` back as a new version; a page with responses needs the owner |
23
23
  | `check_page` | owner, or the `update_token` | Render the page in a browser: errors, failed files, blank screen, screenshot; `viewport` `desktop` or `mobile` |
@@ -29,6 +29,10 @@
29
29
 
30
30
  Every tool returns `structuredContent` that matches its `outputSchema`, next to the text. Read `url`, `id`, `update_token` and `expires_at` from there.
31
31
 
32
+ To put a page on another site, use `embed_url` from `publish_html` or `get_page` (`https://aired.sh/embed/<id>`; null or absent when the page has a PIN, named people, a view limit or `allow_embed` off). Give the user `<iframe src="<embed_url>" width="800" height="600" style="border:0;width:100%" allowfullscreen></iframe>` for a site or docs (a deck: `width="960" height="540"`), or for a GitHub README, which strips iframes, `[![title](https://aired.sh/og/<id>)](https://aired.sh/p/<id>)`. Free embeds show a small "Made with aired" link; Pro ones nothing.
33
+
34
+ To pick up a page where you left off: `list_pages` (signed in; each has `updated_at`), then `get_page` with `include_source: true`, edit `source`, and send it back with `update_page` or `publish_html` (`id` + `update_token`), with `deck: true` for a deck. Anyone who has the page open sees the new version without reloading: within about 5 seconds if they opened it in the last 2 minutes, then within 15 seconds, then within a minute.
35
+
32
36
  `set_options` with `access`:
33
37
 
34
38
  ```json
@@ -1,6 +1,6 @@
1
1
  # When something goes wrong
2
2
 
3
- API errors are JSON: `{ "error": "...", "code": "..." }`. Act on `code`; `error` is for people.
3
+ API errors are JSON: `{ "error": { "code": "...", "message": "..." } }`. Act on `code`; `message` is for people.
4
4
 
5
5
  | Status and code | What it means | What to do |
6
6
  |---|---|---|
@@ -107,6 +107,16 @@ Over MCP: `export_pdf` with `{ "id": "<id>" }`, or `{ "id": "<id>", "notes": tru
107
107
  - Free PDFs carry a small "Made with aired" mark in the corner of each slide; Pro PDFs don't.
108
108
  - Printing from the browser (Save as PDF) also gives one slide per page.
109
109
 
110
+ ## See how far people get (Pro)
111
+
112
+ For your own decks, aired counts per slide how many people reached it (on screen for a second or more), the typical time on it, and where they stopped. Your own views don't count, and nothing about viewers is kept (no cookies, IP or viewer id).
113
+
114
+ ```bash
115
+ aired info <id> --slides # last 30 days; --days 7 or 90
116
+ ```
117
+
118
+ Over MCP: `get_page` on your deck, signed in, has `slide_stats`. In the dashboard: the deck's Views page. Use the biggest drop to suggest which slide to fix. On Free you get an upgrade link instead, and nothing is collected.
119
+
110
120
  ## Check before sharing
111
121
 
112
122
  ```bash