@appeeky/open-slideshow 0.0.0-stage → 0.2.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/LICENSE +21 -0
- package/README.md +297 -2
- package/dist/bin.d.ts +2 -0
- package/dist/bin.js +9 -0
- package/dist/brand.d.ts +57 -0
- package/dist/brand.js +263 -0
- package/dist/brandkit.d.ts +50 -0
- package/dist/brandkit.js +212 -0
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +355 -0
- package/dist/decks.d.ts +44 -0
- package/dist/decks.js +100 -0
- package/dist/fonts.d.ts +45 -0
- package/dist/fonts.js +243 -0
- package/dist/gallery.d.ts +35 -0
- package/dist/gallery.js +109 -0
- package/dist/ideas.d.ts +50 -0
- package/dist/ideas.js +146 -0
- package/dist/images.d.ts +62 -0
- package/dist/images.js +241 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.js +22 -0
- package/dist/lint.d.ts +36 -0
- package/dist/lint.js +197 -0
- package/dist/mcp.d.ts +3 -0
- package/dist/mcp.js +303 -0
- package/dist/preview.d.ts +18 -0
- package/dist/preview.js +96 -0
- package/dist/publish.d.ts +105 -0
- package/dist/publish.js +406 -0
- package/dist/readability.d.ts +19 -0
- package/dist/readability.js +42 -0
- package/dist/render.d.ts +92 -0
- package/dist/render.js +647 -0
- package/dist/results.d.ts +89 -0
- package/dist/results.js +252 -0
- package/dist/schedule.d.ts +19 -0
- package/dist/schedule.js +114 -0
- package/dist/schema.d.ts +1159 -0
- package/dist/schema.js +211 -0
- package/dist/screenshots.d.ts +18 -0
- package/dist/screenshots.js +69 -0
- package/dist/shape.d.ts +31 -0
- package/dist/shape.js +169 -0
- package/dist/skill.d.ts +7 -0
- package/dist/skill.js +17 -0
- package/dist/templates.d.ts +47 -0
- package/dist/templates.js +330 -0
- package/dist/text.d.ts +40 -0
- package/dist/text.js +231 -0
- package/dist/themes.d.ts +43 -0
- package/dist/themes.js +202 -0
- package/dist/variants.d.ts +48 -0
- package/dist/variants.js +175 -0
- package/dist/version.d.ts +1 -0
- package/dist/version.js +1 -0
- package/dist/video.d.ts +22 -0
- package/dist/video.js +59 -0
- package/dist/viral.d.ts +12 -0
- package/dist/viral.js +35 -0
- package/dist/workspace.d.ts +85 -0
- package/dist/workspace.js +322 -0
- package/package.json +65 -4
- package/skills/open-slideshow/SKILL.md +65 -0
- package/skills/open-slideshow/references/brand.md +64 -0
- package/skills/open-slideshow/references/channels.md +63 -0
- package/skills/open-slideshow/references/ideas.md +23 -0
- package/skills/open-slideshow/references/images.md +61 -0
- package/skills/open-slideshow/references/languages.md +51 -0
- package/skills/open-slideshow/references/publishing.md +70 -0
- package/skills/open-slideshow/references/results.md +47 -0
- package/skills/open-slideshow/references/review.md +81 -0
- package/skills/open-slideshow/references/screenshots.md +26 -0
- package/skills/open-slideshow/references/series.md +20 -0
- package/skills/open-slideshow/references/templates.md +96 -0
- package/skills/open-slideshow/references/troubleshooting.md +92 -0
- package/skills/open-slideshow/references/video.md +18 -0
- package/skills/open-slideshow/references/writing.md +76 -0
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# Images
|
|
2
|
+
|
|
3
|
+
Photo themes (`tiktok-classic`, `soft-shadow`, `highlight-box`, `bold-poster`) put a full-screen photo behind every slide. Page themes show a photo card when a slide has an image, and a full-bleed cover when `full_cover` is on. `clean-note` uses none. The `app` slide never needs a photo.
|
|
4
|
+
|
|
5
|
+
## Finding photos
|
|
6
|
+
|
|
7
|
+
`image_search { query, orientation: "portrait" }` returns numbered thumbnails. Show them to the user, or pick yourself if they asked you to.
|
|
8
|
+
|
|
9
|
+
- **Openverse** (default, no key): CC0, public domain and CC BY only, at least 700 px. Quality varies. Many results are museum objects, insects or old scans. Look before you pick.
|
|
10
|
+
- **Unsplash or Pexels**: much better phone-style photos, with the user's own `UNSPLASH_ACCESS_KEY` or `PEXELS_API_KEY`. If they search often, suggest getting a free key. Never ask them to paste it in the chat; it goes in their environment.
|
|
11
|
+
|
|
12
|
+
Search with concrete things a camera sees: "bedside lamp at night", "phone face down on a desk", "messy kitchen morning". Not with ideas: "productivity", "self care".
|
|
13
|
+
|
|
14
|
+
Pick photos that:
|
|
15
|
+
- show the slide's idea, or set its mood;
|
|
16
|
+
- look like a real phone photo, not stock-posed people smiling at a laptop;
|
|
17
|
+
- have calm space where the text goes (top third for most photo themes);
|
|
18
|
+
- are not the same photo twice in one deck, unless that is intended.
|
|
19
|
+
|
|
20
|
+
Avoid photos that:
|
|
21
|
+
- show recognisable people in a way that suggests they endorse the app;
|
|
22
|
+
- show logos or brands;
|
|
23
|
+
- show children;
|
|
24
|
+
- are AI-looking or watermarked.
|
|
25
|
+
|
|
26
|
+
## Importing
|
|
27
|
+
|
|
28
|
+
`image_import` takes exactly one of `hit`, `url` or `path`, and returns `{ ref, ... }`. Put `ref` in the slide's `image`.
|
|
29
|
+
|
|
30
|
+
- `hit`: an item from `image_search`. The license and author come with it.
|
|
31
|
+
- `url`: an https image the user gave. Its license is "unknown" unless you pass `license` and `author`. Use it only if the user owns it or has the right to post it, and ask if unsure.
|
|
32
|
+
- `path`: a file on this machine, such as the user's photo, a screenshot, or an image another tool generated. Its license is "own".
|
|
33
|
+
- Imports are re-encoded to JPEG. EXIF data, including GPS location, is removed. The same image imported twice gets the same ref.
|
|
34
|
+
- Refused: SVG, files over 25 MB, images under 200 px on a side, non-images, http (not https), local or private network addresses.
|
|
35
|
+
|
|
36
|
+
## Placing
|
|
37
|
+
|
|
38
|
+
- `focus: { x, y }` (0–100) moves the crop toward that point, e.g. `{ x: 50, y: 30 }` keeps a face near the top in view.
|
|
39
|
+
- `text_position` (0–100) moves a photo theme's text up or down. Use it when the text covers the subject.
|
|
40
|
+
- `text_style` per slide (`outline`, `shadow`, `box`, `plain`) helps when one photo is too busy for the theme's style.
|
|
41
|
+
|
|
42
|
+
## Licenses
|
|
43
|
+
|
|
44
|
+
Every image records who may post it: `own` (the user's), `licensed` (bought, or permission given), `cc0`, `pdm` (public domain), `by-4.0` / `by-3.0` / `by-2.0` (credit needed), `unsplash`, `pexels`, or `unknown`.
|
|
45
|
+
|
|
46
|
+
- Search hits come with their license. Files (`path`) and the app's own screenshots are `own`. A `url` import is `unknown` unless you pass `license`.
|
|
47
|
+
- A deck with an `unknown` image renders, with a `license-unknown` warning, but cannot be published (the warning becomes an error).
|
|
48
|
+
- `image_license { ref, license, author }` records the license. Set it only from what the user tells you ("it's my photo", "I bought it on…"). Never mark an image `own` or `licensed` to get past the check.
|
|
49
|
+
|
|
50
|
+
## Credit
|
|
51
|
+
|
|
52
|
+
- CC BY photos need the author credited. Export writes `credits.txt`. For posts, add a short credit to the caption ("Photos: A. Name, B. Name (CC BY)"). Lint warns `attribution` until a credit is in the caption.
|
|
53
|
+
- CC0 and public domain need nothing, but a credit is still kind.
|
|
54
|
+
- Unsplash and Pexels licenses do not require credit; open-slideshow still records the author.
|
|
55
|
+
|
|
56
|
+
## When search is slow or empty
|
|
57
|
+
|
|
58
|
+
- "nothing found": use other, more concrete words, or the other orientation.
|
|
59
|
+
- "limiting requests (HTTP 429)": the photo host is busy. Wait a minute, pick a different hit, or use another provider.
|
|
60
|
+
- "download failed: HTTP 404": the photo was removed. Pick another.
|
|
61
|
+
- Offline: use the user's own photos with `path`, or a page theme that does not need photos.
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# Languages
|
|
2
|
+
|
|
3
|
+
Set the deck's `language` (e.g. `tr`, `de`, `ja`, `zh-TW`, `ar`, `pt-BR`). It decides more than words:
|
|
4
|
+
|
|
5
|
+
- **Upper case**: `bold-poster` writes in capitals. Turkish needs `tr`, so i becomes İ, not I.
|
|
6
|
+
- **Chinese and Japanese characters**: the same character looks different in Japan, China, Taiwan and Korea. `ja`, `zh` (Simplified), `zh-TW` or `zh-HK` (Traditional) and `ko` pick the right font.
|
|
7
|
+
- **Line breaks**: Thai has no spaces between words. open-slideshow finds the word boundaries itself.
|
|
8
|
+
|
|
9
|
+
## What is supported
|
|
10
|
+
|
|
11
|
+
| Scripts | Fonts |
|
|
12
|
+
|---|---|
|
|
13
|
+
| Latin (incl. Turkish, Vietnamese, Polish…), Cyrillic, Greek | Ship with open-slideshow |
|
|
14
|
+
| Japanese, Chinese (Simplified and Traditional), Korean | Downloaded once on first use (~1.5 MB each) |
|
|
15
|
+
| Arabic, Hebrew (right to left), Thai, Hindi and other Devanagari languages | Downloaded once on first use (10–80 KB) |
|
|
16
|
+
|
|
17
|
+
Fonts are cached in `~/.cache/open-slideshow/fonts`. The first render in a new script needs internet.
|
|
18
|
+
|
|
19
|
+
Not supported yet: Bengali, Tamil, Telugu, Gujarati, Punjabi, Ethiopic, Khmer, Georgian, Armenian and others. Lint reports `missing-glyphs` with the letters it cannot draw. Tell the user that language is not supported yet, and offer English or another language they post in. Do not transliterate their language into Latin letters unless they ask.
|
|
20
|
+
|
|
21
|
+
## Right to left (Arabic, Hebrew)
|
|
22
|
+
|
|
23
|
+
- Lines read right to left, and left-aligned themes align them to the right automatically.
|
|
24
|
+
- Numbers, Latin words and the app's name can sit inside an Arabic line. Their order is handled.
|
|
25
|
+
- List bullets move to the right side.
|
|
26
|
+
- Write the `*accent*` around the Arabic or Hebrew words as usual.
|
|
27
|
+
|
|
28
|
+
## Lint codes for languages
|
|
29
|
+
|
|
30
|
+
- `font-download` (error): a script font could not be downloaded, usually because the machine is offline or `OPEN_SLIDESHOW_OFFLINE=1` is set. Ask the user to connect and render again.
|
|
31
|
+
- `missing-glyphs` (error): no font can draw some letters. Change the text, or tell the user the language is not supported.
|
|
32
|
+
- `font-fallback` (warning): the theme's own font lacks some letters, so they are drawn in Inter. Instrument Serif (`magazine-cream`, `editorial-ink`) has no Cyrillic or Greek, and Anton (`bold-poster`) has no Cyrillic. Suggest a TikTok Sans or Inter theme if it looks uneven.
|
|
33
|
+
- `emoji-shaped` (warning): emoji next to Arabic, Hebrew, Thai or Hindi text are not drawn yet. Move the emoji to a slide or line without that script, or drop them.
|
|
34
|
+
|
|
35
|
+
## Writing in another language
|
|
36
|
+
|
|
37
|
+
- Write natively, not as a translation of English slides. Use the hooks and phrases people actually use on TikTok in that language.
|
|
38
|
+
- Check text length after writing: German and Finnish run long. Lint's `text-overflow` and `word-cut` tell you when a word does not fit.
|
|
39
|
+
- Hashtags in the post's language. Add one English tag only if the audience uses it.
|
|
40
|
+
- `banned-phrase` only knows English phrases. In other languages, avoid their equivalents yourself ("unlock", "game-changer", "journey" in translation).
|
|
41
|
+
- If the user writes to you in one language but posts in another, write the slides in the posting language. Ask if unclear.
|
|
42
|
+
|
|
43
|
+
## The same deck in another language
|
|
44
|
+
|
|
45
|
+
When a deck did well, or the app's store has several languages, `deck_translate { id, language, slides, caption, hashtags }` makes the same deck in another language (id `<deck>-<language>`):
|
|
46
|
+
|
|
47
|
+
- Give every slide's translated words in order: the same number of slides, the same kinds, the same number of list items. Images, crops and numbers stay.
|
|
48
|
+
- Translate the idea, not word for word. Rewrite the hook so it works in that language, and keep it short.
|
|
49
|
+
- Caption and hashtags in that language. Accounts and time can differ (`accounts`, `when`): a German deck goes to the German account.
|
|
50
|
+
- In a Spec repo, `brand_context` lists the store's languages. Suggest those first.
|
|
51
|
+
- Render and look: German runs long, and scripts like Japanese or Arabic may need a theme with TikTok Sans or Inter.
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# Publishing
|
|
2
|
+
|
|
3
|
+
`deck_publish { id, provider }` without `confirm` shows what would happen and changes nothing. Show that to the user. Call again with `confirm: true` only after they say yes to this deck. "Looks good" about the slides is not a yes to posting; ask.
|
|
4
|
+
|
|
5
|
+
A deck must be rendered, and unchanged since then. Lint errors block every provider except `export`.
|
|
6
|
+
|
|
7
|
+
## Providers
|
|
8
|
+
|
|
9
|
+
### `export`
|
|
10
|
+
- Writes the images, `caption.txt` (caption and hashtags) and `credits.txt` (if any photo needs credit) to `exports/<deck>/`.
|
|
11
|
+
- Over MCP, `out` must be inside the workspace. From the CLI, any folder works.
|
|
12
|
+
- Needs nothing. Use it when the user posts by hand, or uses another tool.
|
|
13
|
+
|
|
14
|
+
### `photos` (macOS)
|
|
15
|
+
- Adds the images to a Photos album "open-slideshow <deck>". It syncs to the user's iPhone through iCloud Photos, and they post from the TikTok or Instagram app.
|
|
16
|
+
- The first time, macOS asks to allow control of Photos. Tell the user to click Allow.
|
|
17
|
+
- Not available on other systems; use `export` there.
|
|
18
|
+
|
|
19
|
+
### `appeeky`
|
|
20
|
+
- Posts now, or schedules, to TikTok and Instagram accounts the user connected in Appeeky. Needs the user's `APPEEKY_API_KEY` in their environment.
|
|
21
|
+
- `accounts` (on the deck or in the call) can be:
|
|
22
|
+
- `tiktok` or `instagram`, when there is one connected account of that kind;
|
|
23
|
+
- `tiktok:all`;
|
|
24
|
+
- `instagram:@handle`;
|
|
25
|
+
- `@handle`;
|
|
26
|
+
- an account id.
|
|
27
|
+
`accounts_list` shows what is connected.
|
|
28
|
+
- `when`: an ISO time with a zone, at least a minute ahead, e.g. `2026-12-08T18:30:00+03:00`. Leave it out to post now. Appeeky posts at that time from its servers, so the user's computer can be off.
|
|
29
|
+
- TikTok options (`tiktok` on the deck):
|
|
30
|
+
- `privacy`: public, friends, followers or only_me;
|
|
31
|
+
- `disclosure`: none, own_brand or paid_partnership. Use own_brand for the user's own app, and paid_partnership when someone was paid;
|
|
32
|
+
- `inbox_draft: true`: sends the post to the TikTok inbox instead of posting it;
|
|
33
|
+
- `auto_music`;
|
|
34
|
+
- `comments`;
|
|
35
|
+
- `cover_index`.
|
|
36
|
+
- Uploads resume: if one image fails, calling again continues where it stopped.
|
|
37
|
+
- The same rendered deck is never sent twice. Pass `again: true` only when the user really wants a second post.
|
|
38
|
+
|
|
39
|
+
### `postiz`
|
|
40
|
+
- Posts now, or schedules, through the user's own Postiz (cloud or self-hosted), to the TikTok and Instagram channels they connected there. Use it when the user already schedules with Postiz.
|
|
41
|
+
- Needs `POSTIZ_API_KEY` (Postiz: Settings, Public API). For a self-hosted Postiz, also `POSTIZ_API_URL=https://<their-domain>/api/public/v1`.
|
|
42
|
+
- `accounts` work as for `appeeky`; `accounts_list { service: "postiz" }` shows the connected channels. Other kinds of channels (X, LinkedIn and so on) are refused: open-slideshow makes photo slideshows for TikTok and Instagram.
|
|
43
|
+
- `when` works as for `appeeky`. Postiz posts at that time from its server, so the user's computer can be off (a self-hosted Postiz must be running).
|
|
44
|
+
- TikTok options map to Postiz's TikTok settings. `inbox_draft: true` sends the post to the TikTok inbox; duets and stitches are off (they apply to videos only).
|
|
45
|
+
- Postiz limits how many posts its public API takes per hour. One deck to several channels is one request.
|
|
46
|
+
- Uploads resume and the same rendered deck is never sent twice, as with `appeeky`.
|
|
47
|
+
|
|
48
|
+
### `spec-draft` (Appeeky Spec repos)
|
|
49
|
+
- Writes `appeeky/social/drafts/<deck>.yaml` with the accounts, text, time, media paths and TikTok options. Spec's review and `social push` send it.
|
|
50
|
+
- Does not post anything itself and needs no key.
|
|
51
|
+
- If the draft was already sent by Spec, it refuses: make a new deck.
|
|
52
|
+
|
|
53
|
+
## Music and the TikTok inbox
|
|
54
|
+
|
|
55
|
+
Photo posts with a trending sound reach more people, and the sound can only be picked in the TikTok app. Two ways to get there:
|
|
56
|
+
- `tiktok.inbox_draft: true` (appeeky): the post lands in the TikTok inbox. The user adds a sound and posts from the phone.
|
|
57
|
+
- `photos` or `export`: the user posts from the phone and picks the sound there.
|
|
58
|
+
|
|
59
|
+
Mention this when the user cares about reach. `auto_music: true` lets TikTok pick a sound automatically when posting directly.
|
|
60
|
+
|
|
61
|
+
## Times and zones
|
|
62
|
+
|
|
63
|
+
- Always confirm the time in the user's zone: "Tuesday 18:30 Istanbul time (15:30 UTC)". Times without a zone are refused.
|
|
64
|
+
- "Tonight" or "tomorrow evening": propose a concrete time and confirm it.
|
|
65
|
+
- A time in the past or under a minute away is refused. Pick a later time, or post now.
|
|
66
|
+
|
|
67
|
+
## After publishing
|
|
68
|
+
|
|
69
|
+
- The result has the post id (appeeky, postiz) or draft file (spec-draft). The deck is marked published and its hook joins the used hooks.
|
|
70
|
+
- To change a scheduled post, the user changes or cancels it in Appeeky or Postiz. open-slideshow does not edit sent posts. A new deck with fixes is a new post.
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# Results: learn what works, test hooks, post again
|
|
2
|
+
|
|
3
|
+
open-slideshow keeps each published deck's numbers on the deck (`results`) and turns them into advice. Read it before writing new decks; once two or more decks are measured, `brand_context` includes it too.
|
|
4
|
+
|
|
5
|
+
## Bringing numbers in
|
|
6
|
+
|
|
7
|
+
`results_sync` fills in views, likes, comments, shares and saves:
|
|
8
|
+
|
|
9
|
+
| Published with | Where the numbers come from |
|
|
10
|
+
|---|---|
|
|
11
|
+
| `spec-draft` | `appeeky/social/posts.jsonl`, once Spec has sent the draft and pulled its numbers (`appeeky-spec social pull`) |
|
|
12
|
+
| `appeeky` | Appeeky, with the user's `APPEEKY_API_KEY` |
|
|
13
|
+
| `photos`, `export`, `postiz` | Nobody can read them for you. Ask the user, then `results_record` |
|
|
14
|
+
|
|
15
|
+
`results_record { id, platform, views, likes, comments, shares, saves }` saves what the user read off the app. One call per platform; a new call replaces the last one. Never guess numbers.
|
|
16
|
+
|
|
17
|
+
Run `results_sync` a day or more after posting; TikTok numbers keep growing for about a week.
|
|
18
|
+
|
|
19
|
+
## Reading insights
|
|
20
|
+
|
|
21
|
+
`insights` compares measured decks with the median deck (a "lift" of 1.5× means 50% more views than usual) by:
|
|
22
|
+
|
|
23
|
+
- template, theme, number of slides, size and channel;
|
|
24
|
+
- hook kind: a number, a question, "you", POV, "stop/never/don't", a short hook;
|
|
25
|
+
- day of the week and hour posted.
|
|
26
|
+
|
|
27
|
+
It lists what to do more of and less of, the best hooks, hook test winners and decks worth posting again. Groups with one deck are not shown, so the advice says nothing until a few decks are measured. Tell the user how many decks it is based on; five decks are a hint, not a rule.
|
|
28
|
+
|
|
29
|
+
Use it when you suggest a template or write hooks: "Mistakes decks got 2.1× your usual views, so I wrote this one as mistakes."
|
|
30
|
+
|
|
31
|
+
## Hook tests
|
|
32
|
+
|
|
33
|
+
The cover decides most of a slideshow's views. `hook_test { id, hooks: [...], spread_days }` copies a deck once per new hook (variants b, c… ; the deck itself is a). Only the cover changes. `spread_days` schedules each copy that many days after the one before.
|
|
34
|
+
|
|
35
|
+
- Write hooks that differ in kind, not in one word: a number vs a question vs a POV.
|
|
36
|
+
- Post the variants on different days, or on different accounts the same day. Never two variants on one account the same day.
|
|
37
|
+
- `insights` calls a winner once every variant has at least 300 views and one has at least 1.2× the next. Until then it says it is waiting, or that there is no clear winner.
|
|
38
|
+
- Use the winning hook's kind for the next decks.
|
|
39
|
+
|
|
40
|
+
## Posting a winner again
|
|
41
|
+
|
|
42
|
+
A deck that did well can be posted again after 30 days. `deck_repost { id, hook, order }` makes a new deck with:
|
|
43
|
+
|
|
44
|
+
- a hook nobody has seen (a hook used before is refused);
|
|
45
|
+
- optionally the middle slides in a new order (`order` lists every slide index once, cover first).
|
|
46
|
+
|
|
47
|
+
`insights` lists repost candidates: decks with at least 1.5× the usual views, posted 30 or more days ago, not reposted yet. Post a repost to the same account only once; after that, make something new on the same idea.
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# Render and review
|
|
2
|
+
|
|
3
|
+
`deck_render` writes `01.jpg … NN.jpg` and `sheet.jpg` (all slides side by side), lints the deck, and returns the sheet. Pass `slide: N` to also get slide N full size. Pass `safe_zones: true` to get `sheet-safe.jpg` instead: the same sheet with TikTok's buttons, caption and top tabs drawn over the slides in red.
|
|
4
|
+
|
|
5
|
+
## Look at the sheet yourself
|
|
6
|
+
|
|
7
|
+
Before showing the user, check each slide:
|
|
8
|
+
|
|
9
|
+
1. **The hook reads at a glance**, at thumbnail size.
|
|
10
|
+
2. **Words are readable over the photo.** No white text on a bright sky, no words across a face. Fix it with `text_position`, a different photo, or `text_style: "box"` on that slide.
|
|
11
|
+
3. **Nothing is cut**, at the edges or at the bottom. The bottom area is kept clear for TikTok's caption and buttons.
|
|
12
|
+
4. **The accent lands** on the words that matter, not on "the" or half a phrase.
|
|
13
|
+
5. **The photos fit the words** and differ from slide to slide.
|
|
14
|
+
6. **The app slide** shows the right icon and name.
|
|
15
|
+
7. **Numbers count right**: tips 1, 2, 3; a ranking counts down.
|
|
16
|
+
|
|
17
|
+
Then show the sheet to the user and ask for changes. Render again after each change. Publishing refuses a deck changed since its last render.
|
|
18
|
+
|
|
19
|
+
## Lint codes
|
|
20
|
+
|
|
21
|
+
Errors block publishing (except export). Warnings do not, but read them.
|
|
22
|
+
|
|
23
|
+
### Structure
|
|
24
|
+
| Code | Means | Do |
|
|
25
|
+
|---|---|---|
|
|
26
|
+
| `no-cover` | First slide is not a cover | Make slide 1 `kind: cover` with the hook |
|
|
27
|
+
| `many-covers` | More than one cover | Keep one |
|
|
28
|
+
| `short` / `long` | Under 3 / over 12 slides | Aim for 5–8 |
|
|
29
|
+
| `template-shape` | Slides drift from `template` | Fix the order, or drop `template` if intended |
|
|
30
|
+
| `unknown-template` / `unknown-theme` | Not a known id | Use `templates_list` / `themes_list` |
|
|
31
|
+
| `ig-too-many` / `ig-too-few` / `tiktok-too-many` | Platform limits (Instagram 2–20, TikTok 35) | Cut or split the deck |
|
|
32
|
+
| `ig-916` | 9:16 for Instagram | Instagram crops carousels to 4:5; use 4:5 |
|
|
33
|
+
|
|
34
|
+
### Text
|
|
35
|
+
| Code | Means | Do |
|
|
36
|
+
|---|---|---|
|
|
37
|
+
| `text-overflow` | Text taller than the safe area | Shorten, or split the slide |
|
|
38
|
+
| `word-cut` | A word is too wide and was broken | Use a shorter word, or a theme with smaller type |
|
|
39
|
+
| `wordy` / `long-hook` | Over 45 words / hook over 14 words | Cut |
|
|
40
|
+
| `empty-slide`, `cover-empty`, `quote-empty`, `list-empty` | Missing the text that kind needs | Fill it in |
|
|
41
|
+
| `markup` | Unbalanced `*stars*` | Close the star, or write `\*` for a literal star |
|
|
42
|
+
| `placeholder` | "TODO", "lorem ipsum", "[…]" left in | Write the real text |
|
|
43
|
+
| `banned-phrase` | Sounds machine-written | Say it plainly (error if `strict_phrases` is on) |
|
|
44
|
+
| `brand-word` / `brand-claim` | Breaks `words_to_avoid` / `claims_never` | Remove it |
|
|
45
|
+
| `repeat-hook` | Hook used before | New angle |
|
|
46
|
+
| `missing-glyphs`, `font-download`, `font-fallback`, `emoji-shaped` | Languages | See `languages.md` |
|
|
47
|
+
| `small-text` | Body or list text had to shrink below ~38 px to fit | Cut words, or split the slide; small text is skipped on a phone |
|
|
48
|
+
| `tiktok-ui` | Lines sit under TikTok's buttons (right side), caption (bottom) or top tabs | Move the words (`text_position`), shorten the lines, or check with `safe_zones` |
|
|
49
|
+
| `layout` | The slide could not be laid out at all | Read the message; usually an unreadable image file. Re-import the image, or tell the user if it keeps failing |
|
|
50
|
+
|
|
51
|
+
### Images and colours
|
|
52
|
+
| Code | Means | Do |
|
|
53
|
+
|---|---|---|
|
|
54
|
+
| `image-missing` | `image` ref is not in the workspace | `image_import` it, use the returned ref |
|
|
55
|
+
| `photo-contrast` | The photo is bright where the words are | `text_style: "outline"` or `"box"` on that slide, move the words (`text_position`) or the photo (`focus`), or pick a darker photo |
|
|
56
|
+
| `busy-photo` | The photo is busy (much detail) where the words are | Same fixes as `photo-contrast`; a calmer part of the photo works best |
|
|
57
|
+
| `screenshot-empty` | A `screenshot` slide without its screenshot | `app_screenshots`, then put the ref in `image` (see `screenshots.md`) |
|
|
58
|
+
| `small-screenshot` | The phone came out small | Shorten the title above it, or drop the title |
|
|
59
|
+
| `license-unknown` | Nobody said the image may be posted | Warning while drafting, error when publishing. If the user owns it or has the rights, `image_license`; otherwise pick another image |
|
|
60
|
+
| `no-image` | A photo theme slide without a photo | Add one, or pick a page theme |
|
|
61
|
+
| `no-icon` | App slide but no brand icon | Set the App Store id, or `brand_set icon` |
|
|
62
|
+
| `contrast` / `accent-contrast` | Colours hard to read | Change `colors` |
|
|
63
|
+
| `attribution` | CC BY photos without credit in caption | Add "Photos: … (CC BY)" |
|
|
64
|
+
|
|
65
|
+
### Caption
|
|
66
|
+
| Code | Means | Do |
|
|
67
|
+
|---|---|---|
|
|
68
|
+
| `no-caption` | Empty caption | Write one or two lines |
|
|
69
|
+
| `caption-long` / `ig-caption` | Over 4,000 / 2,200 characters | Shorten |
|
|
70
|
+
| `many-hashtags` / `dup-hashtags` / `hashtags-twice` | Too many, repeated, or also in the caption | 3–5 in `hashtags` only |
|
|
71
|
+
| `cover-index` | `tiktok.cover_index` past the last slide | Fix the index (0-based) |
|
|
72
|
+
|
|
73
|
+
## Changing a deck
|
|
74
|
+
|
|
75
|
+
`deck_update` edits a deck in place:
|
|
76
|
+
- `slide_edits: [{ index, set: { title: "…" } }]` changes fields of one slide. Indexes are 0-based. `null` removes a field.
|
|
77
|
+
- `insert: [{ index, slide }]`, `remove: [index]` and `move: { from, to }` change the order.
|
|
78
|
+
- Any deck field (`theme`, `caption`, `hashtags`, `size`, …).
|
|
79
|
+
- `slides` replaces the whole list.
|
|
80
|
+
|
|
81
|
+
A published deck cannot change. Make a new deck for a new post.
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# App screenshots in a phone
|
|
2
|
+
|
|
3
|
+
A `screenshot` slide shows the app's own screen inside a phone, with a line of text above it. Use it to show the feature the slide talks about: a slideshow that shows the real app is more believable than one that only describes it.
|
|
4
|
+
|
|
5
|
+
```json
|
|
6
|
+
{ "kind": "screenshot", "title": "Mix *rain* and *fan* in one tap", "image": "<ref>" }
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
The title is optional; leave it out to show only the phone, larger.
|
|
10
|
+
|
|
11
|
+
## Finding the screenshots
|
|
12
|
+
|
|
13
|
+
`app_screenshots` imports the app's screenshots and returns a sheet to pick from:
|
|
14
|
+
|
|
15
|
+
- In an Appeeky Spec repo, from `appeeky/screenshots/` (the largest iPhone size, the store's main language first; pass `locale` for another).
|
|
16
|
+
- Otherwise from the App Store listing, using the App Store id in the brand.
|
|
17
|
+
|
|
18
|
+
They are saved with license `own`. A screenshot the user sends can be imported with `image_import` (path); ask whether it is their app.
|
|
19
|
+
|
|
20
|
+
## Good screenshot slides
|
|
21
|
+
|
|
22
|
+
- One or two per deck: after the problem, when the app is the answer, or in a how-to step. Not on the cover.
|
|
23
|
+
- Pick the screen that shows the point of the slide, not the home screen.
|
|
24
|
+
- Store screenshots often have marketing text and frames on them already. Prefer a plain screen; if only marketed ones exist, use one whose words do not fight the slide's.
|
|
25
|
+
- Keep the title short. Long text makes the phone small and lint warns `small-screenshot`.
|
|
26
|
+
- Every template with an app slide takes up to two screenshot slides before it.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Series
|
|
2
|
+
|
|
3
|
+
A series is one idea told over several posts: "Part 1: mornings", "Part 2: evenings". People who liked part 1 come back for part 2, and the label on the cover tells new viewers there is more.
|
|
4
|
+
|
|
5
|
+
`series_next { id, slides, topic, of, label, when }` makes the next part:
|
|
6
|
+
|
|
7
|
+
- `id` is the last part. The first time, it is the deck that starts the series; that deck becomes part 1.
|
|
8
|
+
- The new deck keeps the theme, size, language, template and accounts. You write its slides.
|
|
9
|
+
- The cover gets a small label at the top: "Part 2", or "Part 2/3" with `of`. For another language set `label`, e.g. `Bölüm {part}` or `Teil {part}/{of}`.
|
|
10
|
+
- A series that has all its parts (`of`) refuses another one.
|
|
11
|
+
|
|
12
|
+
`series_list` shows each series with its parts, their status and times.
|
|
13
|
+
|
|
14
|
+
## Writing a series
|
|
15
|
+
|
|
16
|
+
- Decide the parts up front and say how many on part 1's caption ("3 parts, follow for part 2").
|
|
17
|
+
- Each part stands on its own: someone who sees only part 3 still gets something.
|
|
18
|
+
- Refer back in one line, not a recap: "Yesterday: mornings. Today: the evening."
|
|
19
|
+
- Post parts one to three days apart. Schedule them with `when`, or put them in a channel's slots.
|
|
20
|
+
- Run `insights` after part 1. If it did badly, ask the user before making part 2.
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
# Templates: the shape of a slideshow
|
|
2
|
+
|
|
3
|
+
A template says which slide kinds come in which order, and what to write on each. `templates_list` returns them with hints. `templates_preview` shows each as a row of example slides in the user's theme. Set `template` on the deck; lint warns `template-shape` when the slides drift from it.
|
|
4
|
+
|
|
5
|
+
| Template | Shape | Works for |
|
|
6
|
+
|---|---|---|
|
|
7
|
+
| `tips` | cover → tip ×3–7 → bridge? → app? | Teaching something. Easiest to save and share. |
|
|
8
|
+
| `mistakes` | cover → tip ×3–5 (mistake + fix) → bridge? → app? | People already try and fail. Strong comments. |
|
|
9
|
+
| `story` | cover → text/quote ×1–2 → list/text ×1–2 → text/tip ×1–2 → bridge? → app? | Founder or user stories. Feels like a person. |
|
|
10
|
+
| `before-after` | cover → before → after → list → bridge? → app? | A visible change: a routine, a result, a screen. |
|
|
11
|
+
| `ranking` | cover → tip ×3–10 counting down → bridge? → app? | Opinions and comparisons. People argue in comments. |
|
|
12
|
+
| `quotes` | cover → quote ×3–6 → bridge? → app? | Mindset content. Real quotes only. |
|
|
13
|
+
| `checklist` | cover → list ×1–4 → bridge? → app? | Routines and steps. High saves. |
|
|
14
|
+
| `myth-fact` | cover → myth/fact ×3–6 → bridge? → app? | Beliefs people hold. Strong comments. Facts only. |
|
|
15
|
+
| `instead` | cover → swap ×3–6 → bridge? → app? | Small habit changes. Easy to save. |
|
|
16
|
+
| `wish-i-knew` | cover → lesson ×3–7 → bridge? → app? | Experience. Feels personal. |
|
|
17
|
+
| `how-to` | cover → step ×3–7 → bridge? → screen? → app? | Doing one thing, in order. Shows the app with a screenshot. |
|
|
18
|
+
| `comparison` | cover → point ×2–5 → verdict → app? | Choosing between options. Fair, specific. |
|
|
19
|
+
| `pov` | cover → moment ×2–5 → the fix → app? | A situation the viewer knows, in "you". |
|
|
20
|
+
| `hot-takes` | cover → take ×3–6 → bridge? → app? | Opinions the user really holds. Comments. |
|
|
21
|
+
|
|
22
|
+
Each template also lists example hooks (`templates_list`). Use them for the shape of the hook, never word for word.
|
|
23
|
+
|
|
24
|
+
The app slide in every template can be preceded by a `screenshot` slide that shows the app (see `screenshots.md`).
|
|
25
|
+
|
|
26
|
+
## Choosing
|
|
27
|
+
|
|
28
|
+
- Suggest one, maybe two, with a one-line reason tied to the topic: "Mistakes, because your audience already tries to sleep early and fails."
|
|
29
|
+
- `story` and `before-after` need real details. If the user cannot give them, pick `tips` or `checklist` instead of inventing a story.
|
|
30
|
+
- `quotes` needs real quotes: the user's own words, their customers' (with permission), or a public person's actual words with the name. Never invent a quote or attribute one to a real person who did not say it.
|
|
31
|
+
- In a channel with `content.templates`, rotate: do not use the same template as the channel's last post.
|
|
32
|
+
- If nothing fits (e.g. an announcement), leave `template` out. Lint only checks the shape when it is set.
|
|
33
|
+
|
|
34
|
+
## Writing each one
|
|
35
|
+
|
|
36
|
+
**tips**
|
|
37
|
+
- The cover promises the number.
|
|
38
|
+
- Each tip has an actionable title and a body that says why or how.
|
|
39
|
+
- Order the tips from easiest to biggest effect, or save the surprising one for last.
|
|
40
|
+
|
|
41
|
+
**mistakes**
|
|
42
|
+
- The tip title is the mistake, in the words people use ("Scrolling in bed").
|
|
43
|
+
- The body is the fix, not more blame.
|
|
44
|
+
|
|
45
|
+
**story**
|
|
46
|
+
- Problem: concrete, first person ("three alarms, two coffees").
|
|
47
|
+
- What I tried: a list of things that did not work. It makes the turn believable.
|
|
48
|
+
- What worked: the turn. If the app is part of it, it comes here or on the app slide. Never as a miracle.
|
|
49
|
+
|
|
50
|
+
**before-after**
|
|
51
|
+
- Start the two text slides with `*Before:*` and `*After:*`.
|
|
52
|
+
- Use the same details on both, changed: bedtime then and now, not two different topics.
|
|
53
|
+
- "What changed" is a list of 3–5 causes.
|
|
54
|
+
|
|
55
|
+
**ranking**
|
|
56
|
+
- The cover says the direction ("worst to best").
|
|
57
|
+
- Use `number` to count down (5, 4, 3, 2, 1) so the best comes last.
|
|
58
|
+
- Put the one people will argue about in the middle.
|
|
59
|
+
|
|
60
|
+
**quotes**
|
|
61
|
+
- The quote is the `title`; who said it is `author`.
|
|
62
|
+
- Keep quotes short enough to read in two seconds.
|
|
63
|
+
|
|
64
|
+
**checklist**
|
|
65
|
+
- Group the items by when or where ("1 hour before", "In bed").
|
|
66
|
+
- 3–5 items per list, each a few words, written so they can be ticked off.
|
|
67
|
+
|
|
68
|
+
**myth-fact**
|
|
69
|
+
- Title `*Myth:* …`, body `*Fact:* …`.
|
|
70
|
+
- Only facts the user can stand behind. No "studies show" without the study.
|
|
71
|
+
|
|
72
|
+
**instead**
|
|
73
|
+
- Title "Instead of …", body "try …" and one line of why.
|
|
74
|
+
|
|
75
|
+
**wish-i-knew**
|
|
76
|
+
- First person, one lesson each, with the detail that makes it real ("I bought three planners").
|
|
77
|
+
|
|
78
|
+
**how-to**
|
|
79
|
+
- Steps as actions, in order. The step is the title; how is the body.
|
|
80
|
+
- A `screenshot` slide before the app slide shows the screen where the app does the work.
|
|
81
|
+
|
|
82
|
+
**comparison**
|
|
83
|
+
- One thing compared per slide. Be fair, including where the user's app is not the best pick.
|
|
84
|
+
- End with who should choose which. Never name a competitor's product unless the user asks and the claims are true.
|
|
85
|
+
|
|
86
|
+
**pov**
|
|
87
|
+
- The cover starts with "POV:" and puts the viewer in the moment.
|
|
88
|
+
- Each slide is one beat of what happens next, in "you".
|
|
89
|
+
|
|
90
|
+
**hot-takes**
|
|
91
|
+
- Only opinions the user holds. Ask if unsure.
|
|
92
|
+
- One line of why per take, so it starts a discussion, not a fight.
|
|
93
|
+
|
|
94
|
+
## Drift
|
|
95
|
+
|
|
96
|
+
`template-shape` is a warning, not an error. If the user wants a different order on purpose, keep their order and leave `template` out, or keep it and tell them lint will keep warning. Do not force the user's content into the shape.
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
# Troubleshooting: message → what to do
|
|
2
|
+
|
|
3
|
+
Every tool error says what went wrong. Most also say the fix. This list covers the rest, and what to tell the user.
|
|
4
|
+
|
|
5
|
+
## Workspace
|
|
6
|
+
|
|
7
|
+
| Message | Do |
|
|
8
|
+
|---|---|
|
|
9
|
+
| `…: not valid YAML (…)` | A file was edited by hand and broke. Show the user the file and line. Fix it only if they agree. |
|
|
10
|
+
| `id is "x" but the folder is "y"` | A deck folder was renamed. Rename it back, or change `id` to match. |
|
|
11
|
+
| `no deck "x"` | `deck_list` shows the real ids. |
|
|
12
|
+
| `deck "x" already exists` | Use `deck_update`, or create with another id. |
|
|
13
|
+
| `appeeky.spec.yaml` broken | Spec mode refuses to guess. Tell the user Spec's file has an error and where. Do not fall back to standalone mode, and do not edit Spec's file. |
|
|
14
|
+
| Warning "run social pull" | Spec mode without `accounts.yaml`. The user runs Spec's `social pull` to get connected accounts. |
|
|
15
|
+
|
|
16
|
+
`workspace_info` shows the mode (standalone or Spec), the folder, decks and channels. Check it first when files are not where you expect.
|
|
17
|
+
|
|
18
|
+
## Deck and render
|
|
19
|
+
|
|
20
|
+
| Message | Do |
|
|
21
|
+
|---|---|
|
|
22
|
+
| `unknown theme` | `themes_list`. |
|
|
23
|
+
| `no slide N (deck has M, counted from 0)` | Indexes start at 0. |
|
|
24
|
+
| `deck x is already published` | Make a new deck. |
|
|
25
|
+
| `not rendered yet` / `changed since it was rendered` / `render … is missing` | Call `deck_render`, look at the sheet again, then publish. |
|
|
26
|
+
| `fix these first: …` | Lint errors block publishing. Fix them (`review.md`). |
|
|
27
|
+
| `making a video needs ffmpeg` | The user installs ffmpeg (the message says how), or sets `FFMPEG_PATH`. Ask before installing anything. |
|
|
28
|
+
| `ffmpeg failed: …` | Read the last lines. Usually a slide file is missing: render again. |
|
|
29
|
+
| `wait N days before posting it again` / `was used before` | Reposts need 30 days and a hook people have not seen. |
|
|
30
|
+
| `the translation has N slides` / `is a … in the original but …` | `deck_translate` needs every slide, in order, with the same kinds and list lengths. |
|
|
31
|
+
| `each hook must be different` | Each `hook_test` hook must differ from the cover and from each other. |
|
|
32
|
+
| `the series has N parts` | All parts exist. Start a new series, or ask the user. |
|
|
33
|
+
| `no idea x` | `ideas_list` shows the ids. |
|
|
34
|
+
| `no colours found` / `give the app's website` / `names no website` | Pass `url`, or set colours with `brand_set`. |
|
|
35
|
+
| `… refused to be read (HTTP 403)` | The site blocks automated reads. Try later, or ask the user for the brand colours. |
|
|
36
|
+
| `no screenshots in this repo and no App Store id` | `image_import` a screenshot the user sends, or set the App Store id. |
|
|
37
|
+
|
|
38
|
+
## Images
|
|
39
|
+
|
|
40
|
+
| Message | Do |
|
|
41
|
+
|---|---|
|
|
42
|
+
| `only https image URLs` / `local addresses are not allowed` / `points to a private address` | open-slideshow only downloads from the public internet. Ask for a public https link, or save the file and use `path`. |
|
|
43
|
+
| `limiting requests (HTTP 429)` | Wait a minute, or pick another photo or provider. |
|
|
44
|
+
| `download failed: HTTP 404/403` | The photo is gone or blocked. Pick another one. |
|
|
45
|
+
| `SVG images are not accepted` / `format … not accepted` | Convert to PNG or JPEG first. |
|
|
46
|
+
| `image is too small` | Under 200 px. Use a bigger image; 600 px or more for a photo behind the words. Screenshots from a phone are fine. |
|
|
47
|
+
| `larger than 25 MB` | Resize or export a smaller JPEG. |
|
|
48
|
+
| `set UNSPLASH_ACCESS_KEY` / `set PEXELS_API_KEY` | Use Openverse, or the user adds their key to their environment and restarts the agent. |
|
|
49
|
+
| `give exactly one of hit, url or path` | Pass only one. |
|
|
50
|
+
|
|
51
|
+
## Fonts and languages
|
|
52
|
+
|
|
53
|
+
| Message | Do |
|
|
54
|
+
|---|---|
|
|
55
|
+
| `font-download` | Offline, or `OPEN_SLIDESHOW_OFFLINE=1` is set. Connect and render again. |
|
|
56
|
+
| `missing-glyphs` | That script is not supported yet (`languages.md`). |
|
|
57
|
+
|
|
58
|
+
## Publishing
|
|
59
|
+
|
|
60
|
+
| Message | Do |
|
|
61
|
+
|---|---|
|
|
62
|
+
| `set APPEEKY_API_KEY` | The user adds their Appeeky key to their environment and restarts the agent. Without it, use `export` or `photos`. Never ask them to paste the key in chat. |
|
|
63
|
+
| `Appeeky refused the key` | Wrong or revoked key. The user makes a new one in Appeeky. |
|
|
64
|
+
| `check your plan or balance` | Posting needs a plan or balance in Appeeky. Tell the user. Do not retry in a loop. |
|
|
65
|
+
| `no accounts` | Set `accounts` on the deck, or pass them in the call. |
|
|
66
|
+
| `you have N tiktok accounts (…)` | Ask which one, then use `tiktok:@handle`, or `tiktok:all` if they want all. |
|
|
67
|
+
| `no connected account matches` | The message lists connected accounts. The user connects the missing one in Appeeky. |
|
|
68
|
+
| `… reconnect it in Appeeky` | The account's login expired. The user reconnects it in Appeeky. |
|
|
69
|
+
| `TikTok and Instagram only` | Other networks get `export`. |
|
|
70
|
+
| `is in the past` / `not a date and time` / time zone | Ask for a time. Send ISO with zone, at least a minute ahead. |
|
|
71
|
+
| `already sent (post …)` / `already drafted` | Already done. Only pass `again: true` if the user wants a second post of the same deck. |
|
|
72
|
+
| `adding to Photos works on macOS only` | Use `export`. |
|
|
73
|
+
| Photos asks for permission / osascript error | The user allows control of Photos in System Settings → Privacy & Security → Automation. |
|
|
74
|
+
| `set POSTIZ_API_KEY` | The user adds their Postiz key (Postiz: Settings, Public API) to their environment and restarts the agent; for a self-hosted Postiz also `POSTIZ_API_URL`. Never ask them to paste the key in chat. |
|
|
75
|
+
| `Postiz refused the key` | Wrong or revoked key, or `POSTIZ_API_URL` points at another Postiz. The user checks both. |
|
|
76
|
+
| `Postiz: too many posts this hour` | Postiz limits its public API per hour. Wait, then publish again; uploads already done are kept. |
|
|
77
|
+
| `… reconnect it in Postiz` | The channel's login expired. The user reconnects it in Postiz. |
|
|
78
|
+
| `spec-draft works inside an Appeeky Spec repo` | Use `appeeky` or `export`. |
|
|
79
|
+
| `… was already sent by Spec` | Make a new deck. |
|
|
80
|
+
| `Appeeky …: HTTP 5xx` / network errors | Try once more later. Uploads already done are kept, so retrying continues where it stopped. |
|
|
81
|
+
|
|
82
|
+
## Schedule
|
|
83
|
+
|
|
84
|
+
| Message | Do |
|
|
85
|
+
|---|---|
|
|
86
|
+
| `unknown time zone` | Use a name like Europe/Istanbul or America/New_York, not "GMT+3". |
|
|
87
|
+
| `fixed schedules need times` | Add `times`, or use `mode: window`. |
|
|
88
|
+
| `no slot for … run plan first` | Run `plan`, then assign. |
|
|
89
|
+
|
|
90
|
+
## When you are stuck
|
|
91
|
+
|
|
92
|
+
Tell the user plainly what failed, what you tried, and what they can do. Do not retry the same failing call more than once. Do not work around a safety refusal, such as a private network address, a license or an Appeeky refusal.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Preview and video
|
|
2
|
+
|
|
3
|
+
## Preview on a phone
|
|
4
|
+
|
|
5
|
+
`deck_preview { id, gif }` writes `renders/preview.html`: the deck on a phone you can swipe (or use the arrow keys), with the caption under it and a button that shows where TikTok's buttons and caption cover the slides. Tell the user to open it in a browser before posting.
|
|
6
|
+
|
|
7
|
+
With `gif: true` it also writes `renders/preview.gif`, a small looping preview to put in a pull request, a message or a doc.
|
|
8
|
+
|
|
9
|
+
Render first: both use the rendered slides, and refuse a deck changed since its last render.
|
|
10
|
+
|
|
11
|
+
## Video
|
|
12
|
+
|
|
13
|
+
`deck_video { id, seconds, fade, size }` turns the rendered slides into `renders/video.mp4`: each slide for `seconds` (default 2.5), a soft fade between them (`fade`, default 0.35; 0 cuts), 9:16, H.264, no sound.
|
|
14
|
+
|
|
15
|
+
- Use it for Instagram Reels, YouTube Shorts and TikTok video posts, where a photo post is not possible or the user wants both.
|
|
16
|
+
- Music is added in the app when posting: trending sounds are only available there.
|
|
17
|
+
- 2–3 seconds a slide suits short text. Give slides with more words more time, or split them.
|
|
18
|
+
- It needs ffmpeg on the user's machine. If it is missing, the message says how to install it (or set `FFMPEG_PATH`). Do not install it yourself without asking.
|