# AppAI Agent Instructions Start at https://appai.info/spec — the short overview for AppAI publishers. If appai is missing something you need, finish the page with existing fields, then report it with POST /api/v1/feedback (kind: missing_feature). Next: [Authorization & API](https://appai.info/spec/api). **Your mindset:** First identify the product shape. When a user wants a public site, be a designer rather than a form-filler: gather the minimum context and **build a complete Hosted Page first draft immediately**. When a user needs an application with persistent data, app-specific UI/API/business rules, or managed private assets, use the Universal App flow instead of trying to express the product as page sections. **API Base URL:** `https://appai.info` (always use this, never `www.appai.info`) ## Pick the rung first (30 seconds, before anything else) AppAI exists so a user who built something does not have to register a domain or run infrastructure. Capability is a ladder. **Place the request on the lowest rung that satisfies it** — going heavier costs the user review time and buys nothing. | Use-case | Meaning | Signals | What you write | |---|---|---|---| | [Hosted Page](https://appai.info/spec/pages) | A product, business or person to describe — a public page at appai.info/p/{slug}. | No running software | `POST /api/v1/pages` with sections | | [Wrapped tool](https://appai.info/spec/tools) | A tool already deployed elsewhere (Vercel, Cloudflare Pages, Netlify, GitHub Pages) — AppAI wraps it in a page with SEO, language and theme. | `*.vercel.app`, `*.pages.dev`, `*.netlify.app`, `*.github.io` | Hero + `iframe-tool` + 1-2 supporting sections. Their deploy keeps running where it is; AppAI adds the SEO shell, locale, theme, the `access` gate, and — with `"identity": true` — a verifiable identity for the visitor | | [Connected tool](https://appai.info/spec/tools) | A tool that needs a backend, login or quota — wrapped as above and connected to an owner-maintained connector. | A server, a secret, login or rate limits | Same as above, plus `apiBase: "/api/connect/{connector}"` and `"access": "login"` on the section | | [Universal App](https://appai.info/spec/apps) | Persistent data and business rules — a reviewed app manifest that runs at appai.info/app/{appId}. | Persistent data, own schema, business rules (inventory, orders, settlement), private assets, full UI + API | `appai.app.json` manifest → `POST /api/v1/apps/{appId}/releases` → review → `/app/{appId}` | Two limits worth knowing up front, so you never promise them: - **AppAI does not host arbitrary code.** There is no "upload my repo and run it" path. Either the tool runs on the user's own free host and you wrap it, or it becomes a reviewed Universal App with a declared manifest. - **You cannot add a new backend.** Connectors hold secrets and are owner-maintained. You reference one by name; you never create one. If a tool needs a backend that does not exist yet, say so — that is an owner task. Use the [topic pages](https://appai.info/spec#topic-pages) for details on the rung you picked. ## Publish in one minute Hosted Pages are always published in four locales: English (`en`), Traditional Chinese (`zh-TW`), Simplified Chinese (`zh-CN`) and Spanish (`es`). Publish all four without asking the user. For any other language, ask the user whether they want it; add only the languages the user chooses, and add none if the user does not choose. Do not wait for that answer before publishing the four. 1. **[Authorization & API](https://appai.info/spec/api):** Show the user verification_uri_complete: open it in the user's own browser if you can, and always print it. Also print the returned `user_code` so the user can compare it with the approval page. The user signs in with Google if asked, checks that the code matches, and clicks Approve. Never approve it yourself. The agent receives the key — nothing to copy or paste. Use the [device flow](https://appai.info/spec/api#authentication); send `Authorization: Bearer appai_sk_YOUR_KEY` on API requests. 2. **MUST READ before publishing — [Style & logo](https://appai.info/spec/style):** open it for logo rules; choose kits at [Theme](https://appai.info/spec/theme), then pick [text size](https://appai.info/spec/typography). Dry-run warns (with this link) when `themeColor` or `fontFamily` is missing. If the user has no logo, create a simple square 512×512 PNG following the Logo rules, upload it with `POST /api/v1/upload`, then publish. Agents MUST supply a logo. Non-blocking platform warnings are a fallback, not permission to skip it. Add a real logo — square 512×512 PNG with its own background in `content.logo`, uploaded with `POST /api/v1/upload` (rules: [Logo](https://appai.info/spec/style#logo)). Copy `themeColor`, `themeColorSecondary`, `fontFamily` (Chinese variants: `Noto Sans TC`/`Noto Sans SC`), `darkMode` from a style kit; use the kit's suggested `backgroundColors` for section `data.backgroundColor` when provided; otherwise leave it unset. Exception: `cta` ignores `backgroundColor` and always uses `themeColor`. Use the kit’s `fontFamily` for `en` and `es`, `Noto Sans TC` for `zh-TW` and `Noto Sans SC` for `zh-CN`; for other CJK languages chosen by the user, choose the matching font (e.g. `Noto Sans JP` for Japanese). Keep `themeColor`, `themeColorSecondary`, `darkMode` and backgroundColors the same across variants. 3. **[Pages](https://appai.info/spec/pages):** pick a preset. `GET /api/v1/presets` returns copyable full POST bodies in `example`, section recipes, and named `styles`. Build a complete first draft. 4. **[Sections](https://appai.info/spec/sections):** use the section schemas and icons. Find schemas with `GET /api/v1/sections?type=features,contact` (comma list supported). 5. **[Dry-run](https://appai.info/spec/api#dry-run):** `POST /api/v1/pages?dryRun=true` (identical to `POST /api/v1/pages/preview`) with the full body. Review `{valid, errors, warnings, sanitizedContent, next}`; fix errors and unknown section/field warnings before publishing. To update an existing page, use `?dryRun=true&upsert=true` then `POST ?upsert=true`; omitting `upsert=true` in preview produces an existing-page warning. Nothing is saved. `dryRun` accepts true/1/yes or false/0/no case-insensitively; other non-empty values return 400. 6. **Publish:** `POST /api/v1/pages` with the same body. To update an existing page, use `POST /api/v1/pages?upsert=true` after `?dryRun=true&upsert=true`. Use `PATCH /api/v1/pages/{slug}?locale=xx` for partial updates. 7. **Open:** `https://appai.info/p/{slug}` and check desktop/mobile layout. | Type | Preset id | Example POST body | |---|---|---| | Mobile app | `app-landing` | [JSON](https://appai.info/spec/examples/app-landing.example.json) | | SaaS | `saas-landing` | [JSON](https://appai.info/spec/examples/saas-landing.example.json) | | Personal site | `profile` | [JSON](https://appai.info/spec/examples/profile.example.json) | | Link hub | `link-in-bio` | [JSON](https://appai.info/spec/examples/link-in-bio.example.json) | | Portfolio | `portfolio` | [JSON](https://appai.info/spec/examples/portfolio.example.json) | | Event | `event` | [JSON](https://appai.info/spec/examples/event.example.json) | | Company / service | `company-service` | [JSON](https://appai.info/spec/examples/company-service.example.json) | | Product | `product` | [JSON](https://appai.info/spec/examples/product.example.json) | | Hiring / job opening | `hiring` | [JSON](https://appai.info/spec/examples/hiring.example.json) | | Wrapped tool | `iframe-tool` | [JSON](https://appai.info/spec/examples/iframe-tool.example.json) | If the user has no logo, create a simple square 512×512 PNG following the Logo rules, upload it with `POST /api/v1/upload`, then publish. Agents MUST supply a logo. Non-blocking platform warnings are a fallback, not permission to skip it. Copy this complete request body into both the dry-run and publish POSTs. Change the slug and copy, **replace the demo logo with the real logo**, and write `metaDescription`, `privacyPolicy` and `termsOfService` per locale: ```json {"slug":"company-service-demo","template":"COMPANY_PROFILE","title":"Cedar Workshop","tagline":"Clear websites for independent businesses.","themeColor":"#047857","fontFamily":"Lato","isPublished":true,"content":{"logo":"https://appai.info/spec/examples/placeholder-logo.png","sections":[{"order":0,"type":"hero","data":{"headline":"Cedar Workshop","subheadline":"Clear websites for independent businesses.","logo":"https://appai.info/spec/examples/placeholder-logo.png","variant":"centered","heroHeight":"medium","ctaText":"Book a discovery call","ctaUrl":"https://example.com/book","backgroundColor":"#FFFFFF"}},{"type":"features","data":{"heading":"Services","items":[{"icon":"sparkles-outline","title":"Website design","description":"Accessible websites for independent businesses."}],"backgroundColor":"#ECFDF5"},"order":1},{"order":2,"type":"about","data":{"id":"details","heading":"How to order","text":"Book a discovery call to discuss your website and plan the next steps.","backgroundColor":"#FFFFFF"}},{"type":"about","data":{"heading":"Pickup and visits","text":"Book a call before visiting.","backgroundColor":"#ECFDF5"},"order":3},{"type":"contact","data":{"heading":"Talk to Cedar","email":"hello@example.com","formUrl":"https://example.com/contact","backgroundColor":"#FFFFFF","hours":[{"days":["mon","tue","wed","thu","fri"],"open":"09:00","close":"17:00"}]},"order":4},{"order":5,"type":"cta","data":{"headline":"Book a discovery call","subheadline":"Clear websites for independent businesses.","buttonText":"Book a discovery call","buttonUrl":"https://example.com/company-service"}}]},"locale":"en","darkMode":false,"themeColorSecondary":"#B45309"} ``` ## Topic pages | Page | URL | Covers | |---|---|---| | Authorization & API | https://appai.info/spec/api | Agent authorization, key storage, dry-run, image upload and API discovery | | Style & logo | https://appai.info/spec/style | Logo and two style steps | | Theme | https://appai.info/spec/theme | Colors, backgrounds and style kits | | Typography | https://appai.info/spec/typography | Font, text size, contrast and role overrides | | Pages | https://appai.info/spec/pages | Page configuration, CRUD and workflow | | Sections | https://appai.info/spec/sections | Section schemas and icons | | Multi-language & multi-page | https://appai.info/spec/i18n | Languages, child pages and navigation | | Tools | https://appai.info/spec/tools | Wrapped tool, Connected tool, identity and interactive schemas | | Universal App | https://appai.info/spec/apps | Universal App manifests, releases, review and runtime | ## Document Guide | Need | URL / reference | Notes | |---|---|---| | **Complete page examples** | [Publish in one minute](https://appai.info/spec#publish-in-one-minute) preset table (`/spec/examples/*.example.json`) | | | **Section JSON schemas (all section types)** | [Section Reference](https://appai.info/spec/sections#section-reference) or call `GET /api/v1/sections` | | | **Authentication flow** | [Authentication](https://appai.info/spec/api#authentication) | | | **Preset recipes and implied template** | `GET /api/v1/presets` | | | **Page creation API fields** | [Creating a Page](https://appai.info/spec/pages#creating-a-page) | | | **Multi-language setup** | [Multi-Language Details](https://appai.info/spec/i18n#multi-language-details) | | | **Multi-page site setup** | [Multi-Page Site Details](https://appai.info/spec/i18n#multi-page-site-details) | | | **CRUD operations** | [Managing Pages](https://appai.info/spec/pages#managing-pages-crud) | | | **Privacy/Terms generation** | [Compliance Pages](https://appai.info/spec/pages#compliance-pages) | | | **Icons reference** | [Icons](https://appai.info/spec/sections#icons) | | | **Design inspiration** | Browse https://appai.info/apps to see live pages | | Complete single-file fallback: https://appai.info/llms-full.txt # AppAI — Authorization & API The agent obtains a key with the user's approval via device flow; covers key storage, dry-run, image upload and API discovery. Previous: [Overview](https://appai.info/spec) · Next: [Style & logo](https://appai.info/spec/style) API base: `https://appai.info`; auth: `Authorization: Bearer appai_sk_YOUR_KEY`. ## Authentication Device authorization (RFC 8628). **The key is delivered to you by the token endpoint. Never ask the user to paste a key — if your flow includes that step, you are doing it wrong.** ```bash # 1. Ask for a code. curl -sX POST https://appai.info/api/v1/auth/device # → { "device_code": "...", "user_code": "LMLT-SVTC", # "verification_uri_complete": "https://appai.info/auth/device?code=LMLT-SVTC", # "expires_in": 900, "interval": 5 } # 2. Show the user verification_uri_complete: open it in the user's own browser if you can, and always print it. # Also print the returned `user_code` so the user can compare it with the approval page. # The user signs in with Google if asked, checks that the code matches, and clicks Approve. # Never approve it yourself. # The agent receives the key — nothing to copy or paste. # 3. Poll until it answers. curl -sX POST https://appai.info/api/v1/auth/token \ -H 'content-type: application/json' \ -d '{"device_code":"..."}' # → { "status": "complete", "api_key": "...", "organization_id": "..." } ``` **Wait `interval` seconds between polls — the one the device response gave you, not a number you picked.** Polling faster does not fail the request, it raises your interval by five seconds *permanently* and answers `slow_down` with the new value. Three impatient polls and you are waiting 20 seconds between attempts, and the code expires in 15 minutes either way. On `slow_down`, adopt the `interval` in the response and carry on. While you wait, `POST /api/v1/auth/token` returns HTTP 400 with an `error`: | `error` | Meaning | Do | |---|---|---| | `authorization_pending` | nobody has approved it yet | keep polling | | `slow_down` | you polled too fast | take the new `interval`, keep polling | | `access_denied` | the user declined | stop, and say so | | `expired_token` | the 15 minutes ran out | stop; start over only if the user asks | | `invalid_grant` | already used, or not a real code | stop; start over | ### Where the key goes afterwards Not asking for a paste is only half of it. The key you receive authorises publishing to the user's whole AppAI account, and **it must not come to rest inside the project you are building.** A key written to `.env`, `.env.local`, a config file, or any path under the repository is one `git add -A` from being published, and agents do run `git add -A`. Keep it outside the working tree — `~/.config/appai/credentials.json` with mode `0600` is the conventional place — or hold it only in memory and authorise again next time. Read `APPAI_API_KEY` from the environment first so CI can supply one without any of this. If a stored key is ever rejected, discard it and run the flow again rather than reporting an authentication failure to the user. After authorization: Hosted Page → [Style & logo](https://appai.info/spec/style); Universal App → return to [Universal App](https://appai.info/spec/apps#natural-release-flow) for the release steps. ## Dry-run Validate and preview the page before publishing with the same request body. Publish: [send the validated body](https://appai.info/spec#publish-in-one-minute) ### Preview without saving **Preview without saving:** `POST /api/v1/pages?dryRun=true` (identical to `POST /api/v1/pages/preview`) — same body; HTTP 200 returns `{valid, errors: [], warnings: [], sanitizedContent, next}`. Always check `valid`; warnings do not block creation. Preview rejects an exact (slug, locale) owned by another organization; it does not check plan limits, parent existence or ownership of the parent root; POST does. For an existing slug+locale, dry-run with `POST /api/v1/pages?dryRun=true&upsert=true` (or `POST /api/v1/pages/preview?upsert=true`), then publish with `POST /api/v1/pages?upsert=true`. Without `upsert=true`, preview warns that the page already exists; publishing returns 409. Use `PATCH /api/v1/pages/{slug}?locale=xx` for partial updates. Publish with `POST /api/v1/pages` using the same body and `isPublished: true` (`?upsert=true` to overwrite an existing page). Open `https://appai.info/p/{slug}` and check desktop/mobile layout. ## Upload images **Upload images:** `POST /api/v1/upload` with `multipart/form-data`, field `file`; allowed MIME types: `image/png`, `image/jpeg`, `image/jpg`, `image/gif`, `image/webp`, `image/svg+xml`; max 5 MB (5 × 1024² bytes). HTTP 201 returns `{url, filename, size, type}`; use the returned `url` as-is in image fields. ## API discovery `GET /api/v1/sections` returns section schemas and icons (`?format=jsonschema` for JSON Schema; `?type=features,contact` to filter). `GET /api/v1/presets` returns 10 copyable preset examples and 7 named style kits. ## Feedback `POST /api/v1/feedback` uses the same Bearer API key as page publishing. Body: `{ "kind": "missing_feature", "message": "Describe what you need" }`. Kinds: `missing_feature`, `bug`, `docs`, `other`. Message: 10–4000 characters. Optional: `pageSlug`, `specUrl` (HTTP/HTTPS URL). Contact email comes from the organization's single user, otherwise its earliest ADMIN, otherwise its earliest user (creation time, then ID for ties); never from the body or response. Limit: 20 submissions per key per rolling 24 hours; also 20 requests per IP per hour. Returns `201 {id}`, `400` invalid input, `401` missing/invalid key or unavailable account ownership, `429` quota exceeded. Both endpoints reject bodies over 16 KB with `413`. The public `/feedback` form requires both `TURNSTILE_SITE_KEY` and `TURNSTILE_SECRET_KEY` in production; missing keys disable the form and return `503` from the web endpoint. Development may run without Turnstile. Web submissions have a database-enforced global cap of 200 per rolling 24 hours (`429` when exceeded), plus 5 requests per IP per hour. IP limits use process-local middleware buckets. All topics: [Overview](https://appai.info/spec) · [Authorization & API](https://appai.info/spec/api) · [Style & logo](https://appai.info/spec/style) · [Theme](https://appai.info/spec/theme) · [Typography](https://appai.info/spec/typography) · [Pages](https://appai.info/spec/pages) · [Sections](https://appai.info/spec/sections) · [Multi-language & multi-page](https://appai.info/spec/i18n) · [Tools](https://appai.info/spec/tools) · [Universal App](https://appai.info/spec/apps) # AppAI — Style & logo Check the logo, then choose a theme and text size. Previous: [Authorization & API](https://appai.info/spec/api) · Next: [Theme](https://appai.info/spec/theme) API base: `https://appai.info`; auth: `Authorization: Bearer appai_sk_YOUR_KEY`. ## How to choose 1. Check the [logo rules](https://appai.info/spec/style#logo) below; supply a logo before publishing. 2. Choose a light or dark kit in [Theme](https://appai.info/spec/theme); copy its colors, font and darkMode together; use the kit's suggested `backgroundColors` for section `data.backgroundColor` when provided; otherwise leave it unset. Exception: `cta` ignores `backgroundColor` and always uses `themeColor`. 3. Choose text size, contrast and role overrides in [Typography](https://appai.info/spec/typography); use the kit font for en/es, Noto Sans TC for zh-TW and Noto Sans SC for zh-CN. ### Logo **“no logo” means you make one.** If the user has no logo, create a simple square 512×512 PNG following the Logo rules, upload it with `POST /api/v1/upload`, then publish. Agents MUST supply a logo. Non-blocking platform warnings are a fallback, not permission to skip it. **Agents MUST provide a logo for every root page:** square PNG, 512×512 recommended, 1024×1024 accepted, app-icon style with its own background color. Set `content.logo` (or hero `data.logo` / `headerLogo`) to an HTTPS URL or same-origin `/path`. For local files, upload with `POST /api/v1/upload` and use the returned URL. Missing or non-HTTPS logos produce `warnings` on create/upsert, PUT, PATCH and dry-run. Child pages inherit the root header logo and need no separate logo. `heroImage` does not count for directory cards or the missing-logo warning; the header still falls back to it. Dry-run warns to replace the placeholder with the real logo and `https://color-bench-demo.pages.dev` with your deployed tool URL wherever that value appears. Create a simple SVG with a solid background and initial/shape, then convert: `rsvg-convert -w 512 -h 512 logo.svg -o logo.png`; on macOS `qlmanage -t -s 512 -o . logo.svg` then `sips -s format png -z 512 512 logo.svg.png --out logo.png`; or ImageMagick. Upload the resulting PNG. | Context | Uses | Fallback | |---------|------|----------| | Header / Favicon | `headerLogo` | primary logo | | Hero section | hero `data.logo` | primary logo | | App cards | `headerLogo` → `content.logo` → hero `data.logo` | -- | All topics: [Overview](https://appai.info/spec) · [Authorization & API](https://appai.info/spec/api) · [Style & logo](https://appai.info/spec/style) · [Theme](https://appai.info/spec/theme) · [Typography](https://appai.info/spec/typography) · [Pages](https://appai.info/spec/pages) · [Sections](https://appai.info/spec/sections) · [Multi-language & multi-page](https://appai.info/spec/i18n) · [Tools](https://appai.info/spec/tools) · [Universal App](https://appai.info/spec/apps) # AppAI — Theme Choose theme colors, dark mode, section backgrounds and ready-made style kits. Previous: [Style & logo](https://appai.info/spec/style) · Next: [Typography](https://appai.info/spec/typography) API base: `https://appai.info`; auth: `Authorization: Bearer appai_sk_YOUR_KEY`. | Style kit | themeColor | themeColorSecondary | fontFamily | darkMode | Suggested backgroundColors | |---|---|---|---|---|---| | indigo | #4F46E5 | #0891B2 | Inter | false | #FFFFFF, #EEF2FF | | forest | #047857 | #B45309 | Lato | false | #FFFFFF, #ECFDF5 | | editorial | #9F1239 | #57534E | Lora | false | #FFFBEB, #FFF1F2 | | ocean | #0369A1 | #0F766E | Manrope | false | #FFFFFF, #F0F9FF | | midnight | #A5B4FC | #67E8F9 | Space Grotesk | true | #0F172A, #1E293B | | hearth | #92400E | #9A3412 | DM Sans | false | #FFFBEB, #FFF7ED | | ember | #FDBA74 | #FCA5A5 | DM Sans | true | #1C1917, #292524 | Pick the kit by the user's stated mood first (e.g. 'fresh and calm' → forest), then by business type. If no kit description matches, pick by light/dark and warm/cool. | Kit | Mode | Mood words | Typical businesses | |---|---|---|---| | indigo | light | crisp, modern, confident | SaaS, software, technology, professional services | | forest | light | natural, wellbeing, fresh and calm | nature, wellness, health, sustainable businesses | | editorial | light | literary, refined, thoughtful | publishing, portfolios, culture, consulting | | ocean | light | clear, cool, trustworthy | travel, education, healthcare, services | | midnight | dark | sleek, technical, bold | developer tools, gaming, technology | | hearth | light | warm, handmade, welcoming | bakeries, cafés, crafts, classes | | ember | dark | warm, intimate, atmospheric | restaurants, bars, hospitality, creative studios | Copy kit fields together into the page request. Copy `themeColor`, `themeColorSecondary`, `fontFamily` (Chinese variants: `Noto Sans TC`/`Noto Sans SC`) and `darkMode` together from a style kit; use the kit's suggested `backgroundColors` for section `data.backgroundColor` when provided; otherwise leave it unset. When a kit has two `backgroundColors`, alternate them section by section, starting with the first. Exception: `cta` ignores `backgroundColor` and always uses `themeColor`. Use the kit’s `fontFamily` for `en` and `es`, `Noto Sans TC` for `zh-TW`, and `Noto Sans SC` for `zh-CN`; for other CJK languages chosen by the user, choose the matching font (e.g. `Noto Sans JP` for Japanese). Keep `themeColor`, `themeColorSecondary`, `darkMode` and the kit’s suggested backgroundColors the same across variants. `themeColor` sets the primary accent; `themeColorSecondary` sets the secondary accent. When omitted, the secondary color is automatically derived from the primary. ### Visual Design Capabilities - **Section backgrounds:** Sections except `cta` can have a custom `backgroundColor`. Use the kit's suggested `backgroundColors` for section `data.backgroundColor` when provided; otherwise leave it unset. Exception: `cta` ignores `backgroundColor` and always uses `themeColor`. - **Hero backgrounds:** `backgroundColor` (solid color), `backgroundImage`, or `backgroundVideo`. Dark backgrounds auto-switch text to white. - **Dark mode:** Set `darkMode: true` at page level. All sections, cards, borders adapt automatically. - **Icons:** Three formats — Ionicons name (e.g. `globe-outline`), emoji, or image URL. Use one of `icons` (`GET /api/v1/sections`) or any emoji - **Markdown:** Supported in: `about.text`, `faq.items[].answer`, `testimonials.items[].quote`, `team.items[].bio`, `schedule.items[].description`, `pricing.items[].description`, `cta.subheadline`, `form.description` ## Hero variants | Type | What it does | |---|---| | `hero` | Headline banner. **Variants:** `centered` (default), `split` (text left, image right), `minimal` (compact). **Height:** `full`/`large`/`medium`/`small`. Supports `backgroundColor`, `backgroundImage`, `backgroundVideo`, secondary CTA. | All topics: [Overview](https://appai.info/spec) · [Authorization & API](https://appai.info/spec/api) · [Style & logo](https://appai.info/spec/style) · [Theme](https://appai.info/spec/theme) · [Typography](https://appai.info/spec/typography) · [Pages](https://appai.info/spec/pages) · [Sections](https://appai.info/spec/sections) · [Multi-language & multi-page](https://appai.info/spec/i18n) · [Tools](https://appai.info/spec/tools) · [Universal App](https://appai.info/spec/apps) # AppAI — Typography Choose a font, overall text size, heading contrast and optional role overrides. Previous: [Theme](https://appai.info/spec/theme) · Next: [Pages](https://appai.info/spec/pages) API base: `https://appai.info`; auth: `Authorization: Bearer appai_sk_YOUR_KEY`. - **Custom fonts:** Each locale variant stores its own page-level `fontFamily`, loaded from Google Fonts and rendered as `"", sans-serif`. There is no automatic CJK font selection. Use the kit’s `fontFamily` for `en` and `es`, `Noto Sans TC` for `zh-TW`, and `Noto Sans SC` for `zh-CN`; for other CJK languages chosen by the user, choose the matching font (e.g. `Noto Sans JP` for Japanese). Keep `themeColor`, `themeColorSecondary`, `darkMode` and the kit’s suggested backgroundColors the same across variants. Start from a [style kit](https://appai.info/spec/theme) before choosing a font. All three layers are optional. Omitted settings, or `textSize: "md"` with `textContrast: "normal"` and no overrides, preserve existing section typography exactly. Send settings at page level or under `content`; they persist in content JSON. Top-level values take precedence. PUT/upsert replace content; PATCH merges content and preserves sections. An overrides object replaces the previous overrides; send `{}` to clear it. - `textSize`: xs (75%), sm (87%), md (100%), lg (115%), xl (132%), 2xl (152%), 3xl (175%), 4xl (200%). - `textContrast`: low reduces heading/display to 80%, normal keeps 100%, high increases them to 125%. Caption/card/body are unchanged. - `typography`: optional caption, card, body, heading, display values using the same eight steps. Each override selects that role’s size independently of textSize; contrast still applies to heading/display. Unset roles follow textSize and textContrast. - Roles: caption = notes/meta; card = card text; body = paragraphs; heading = section titles; display = hero/first-screen title. ## Sizes in pixels | Step | Scale | Caption | Card | Body | Heading | Display | |---|---|---|---|---|---|---| | xs | 75% | 10.5 | 12 | 12 | 28.8 / 36 / 45 | 36 / 45 / 56.25 | | sm | 87% | 12.18 | 13.92 | 13.92 | 33.41 / 41.76 / 52.2 | 41.76 / 52.2 / 65.25 | | md | 100% | 14 | 16 | 16 | 38.4 / 48 / 60 | 48 / 60 / 75 | | lg | 115% | 16.1 | 18.4 | 18.4 | 44.16 / 55.2 / 69 | 55.2 / 69 / 86.25 | | xl | 132% | 18.48 | 21.12 | 21.12 | 50.69 / 63.36 / 79.2 | 63.36 / 79.2 / 99 | | 2xl | 152% | 21.28 | 24.32 | 24.32 | 58.37 / 72.96 / 91.2 | 72.96 / 91.2 / 114 | | 3xl | 175% | 24.5 | 28 | 28 | 67.2 / 84 / 105 | 84 / 105 / 131.25 | | 4xl | 200% | 28 | 32 | 32 | 76.8 / 96 / 120 | 96 / 120 / 150 | These are **reference element** desktop sizes in pixels, not fixed sizes applied to every element. Heading/display cells show **low / normal / high** contrast. References are hero h1 (text-6xl, 60px desktop / text-4xl, 36px mobile; the centered hero uses md:text-7xl, 72px), section h2 (text-5xl, 48px desktop / text-3xl, 30px mobile), body and card copy (16px), and caption (text-sm, 14px). Every tagged element multiplies its own existing Tailwind size by the same role percentage; responsive classes keep their breakpoints. Untagged elements and Markdown headings receive no typography rules. A tagged element without a text size class uses its inherited 16px base. Below 640px, the multiplier becomes `1 + (factor - 1) × damping`: damping is 0.35 for display, 0.5 for heading, and 0.75 for other roles. Body/card elements have a 14px mobile floor. From 640–1023px, all roles use an intermediate multiplier of `1 + (factor - 1) × 0.75`; desktop ≥1024px uses the full factor. The extreme 4xl/high hero is 54.9px on mobile (150–180px desktop depending on hero height and variant; the table uses the 60px reference, while the default centered hero uses 72px). The xs/low body reference is 12px desktop / 14px mobile. Every tagged element uses overflow-wrap:anywhere and min-width:0 when typography is active. Enlarged heading/display also use line-height 1.2 and automatic hyphenation. Warnings combine both viewports into one message per path for body below 14px or headings/display smaller than body; publishing remains allowed. Dry-run returns reference sizes in `typography` and `typographyMobile`, plus warnings. Real create, upsert, PUT and PATCH responses also return warnings. Each page sets its own typography, theme color and font family in the section renderer; child pages do not inherit these settings from the root. Shared navigation chrome has its own root-page styling. ## Recipes Tool page, compact (body override keeps small text readable): ```json {"textSize":"sm","textContrast":"low","typography":{"body":"md"}} ``` General: ```json {"textSize":"md","textContrast":"normal"} ``` Elderly/health: use xl or 2xl, normal contrast, and keep body at least 18px (xl gives 21.12px desktop / 19.84px mobile): ```json {"textSize":"xl","textContrast":"normal","typography":{"body":"xl"}} ``` Dashboard/kiosk: ```json {"textSize":"lg","textContrast":"high"} ``` All topics: [Overview](https://appai.info/spec) · [Authorization & API](https://appai.info/spec/api) · [Style & logo](https://appai.info/spec/style) · [Theme](https://appai.info/spec/theme) · [Typography](https://appai.info/spec/typography) · [Pages](https://appai.info/spec/pages) · [Sections](https://appai.info/spec/sections) · [Multi-language & multi-page](https://appai.info/spec/i18n) · [Tools](https://appai.info/spec/tools) · [Universal App](https://appai.info/spec/apps) # AppAI — Pages Covers Hosted Page configuration, CRUD, compliance and publishing workflow. Previous: [Typography](https://appai.info/spec/typography) · Next: [Sections](https://appai.info/spec/sections) API base: `https://appai.info`; auth: `Authorization: Bearer appai_sk_YOUR_KEY`. Before writing privacyPolicy, ASK the user what data the app collects, stores, or sends (including photos, analytics, and accounts). Never guess. Publish a delete-account child page only if the app has user accounts; FAQ/contact child pages follow the usual rules. ## Contact Use only supplied contact details in sections, `privacyPolicy` and `termsOfService`; never invent an email. If the user gave no street address, omit `address` and any location section; mention the city in copy only if the user gave it. `contact.phone` renders a tappable phone link; buttons also accept `tel:+{E.164 digits}`. `contact.socials` is optional: `[{"platform":"instagram","url":"https://www.instagram.com/example/","label":"Message us"}]`. Platforms: `instagram`, `line`, `facebook`, `threads`, `whatsapp`, `x`, `youtube`, `tiktok`, `website`; `label` is optional (defaults to platform name). URLs must be HTTPS; no new URL schemes. | Channel | Canonical URL | |---|---| | Instagram profile / DM | `https://www.instagram.com/{handle}/` / `https://ig.me/m/{handle}` | | LINE official | `https://line.me/R/ti/p/@{id}` (id without leading @) | | LINE personal | `https://line.me/ti/p/~{id}` | | WhatsApp | `https://wa.me/{E.164 digits}` (digits only, no +) | | Facebook | `https://www.facebook.com/{handle}` | | Threads | `https://www.threads.com/@{handle}` | | X | `https://x.com/{handle}` | | TikTok | `https://www.tiktok.com/@{handle}` | | YouTube | `https://www.youtube.com/@{handle}` | | Website | Supplied HTTPS website URL | For the primary action (store, booking channel, or tool), use the first one the user listed as the hero CTA; include all store URLs in download and all booking channels in contact.socials. Use the supplied channel in compliance copy too. Use `simple-order` only for order + payment flows with a supplied `notificationEmail`. ## What You Can Build (read this first) This platform gives you full control over visual design. Every parameter below is available for you to use. ### Page-Level Configuration | Parameter | Description | |-----------|-------------| | `template` | `APP_LANDING`, `COMPANY_PROFILE`, `PRODUCT_SHOWCASE`, `PORTFOLIO`, `LINK_IN_BIO`, `PERSON` (classification only; sections control rendering). | | `themeColor` | Hex color (e.g. `#6366F1`) — drives CTA buttons, accents, links. Copy `themeColor`, `themeColorSecondary`, `fontFamily` (Chinese variants: `Noto Sans TC`/`Noto Sans SC`) and `darkMode` together from a kit in [Theme](https://appai.info/spec/theme). | | `themeColorSecondary` | Hex color — optional accent for secondary buttons. Auto-generated from themeColor if omitted. | | `darkMode` | Boolean — renders entire page with dark backgrounds and light text. All sections adapt automatically. | | `fontFamily` | Google Fonts name, loaded automatically per locale variant. Use the kit’s `fontFamily` for `en` and `es`, `Noto Sans TC` for `zh-TW`, and `Noto Sans SC` for `zh-CN`; for other CJK languages chosen by the user, choose the matching font (e.g. `Noto Sans JP` for Japanese). Keep `themeColor`, `themeColorSecondary`, `darkMode` and the kit’s suggested backgroundColors the same across variants. | | `headerLogo` | URL — separate logo for the light header (when hero logo is white/light). | | `ogImage` | URL — Open Graph image for social sharing. Fallback order: ogImage → heroImage → profile-header avatar → screenshot or icon of the first project item that has one → first screenshots image (valid HTTP(S) URLs only). | PERSON pages are live at `/p/{slug}` immediately but appear in the AppAI directory only after AppAI review. ### Directory classification For approved, published root pages, the first matching rule wins: Universal App (`appType` set) → **Apps**; explicit `appai:kind:website|tool|app` tag → **Websites / Tools / Apps**; `iframe-tool`, `tool`, `media-downloader` or `video-subtitle` section → **Tools**; `download` section, App record `iosUrl`/`androidUrl`, or a link anywhere in content to `apps.apple.com`, `itunes.apple.com`, `play.google.com` or `testflight.apple.com` → **Apps**; otherwise → **Websites**, including `APP_LANDING` without app signals. PERSON profiles appear only in **All** and **Personal pages**. Force a hosted page's kind on its corresponding App record: `PUT /api/v1/apps/{id}` with `{"tags":["appai:kind:website"]}` (top-level `tags` array; preserve any other tags). Find the record by `hostedPageSlug` via `GET /api/v1/apps`. Tags also go at the top level of `POST /api/v1/apps`; the page create/publish payload does not accept them. Universal Apps always remain in Apps. ### 29 Section Types Every section supports `id` (anchor for `#links`). Use kit backgroundColors when provided; otherwise leave `data.backgroundColor` unset. `cta` ignores backgroundColor and always uses themeColor. | Type | What it does | |------|-------------| | [`profile-header`](https://appai.info/spec/sections#profile-header) | Personal h1 `name`, `eyebrow`, `tagline`, Markdown `intro`, optional `avatar: {url, alt}`, `links: [{label, url}]`, `nav: [{label, href}]` anchors. | | [`project-cards`](https://appai.info/spec/sections#project-cards) | `heading`, `eyebrow`, `items: [{name, category, description, icon: {url, alt}, monogram, screenshot: {url, alt, kind: phone/web, width, height}, links: [{label, url}]}]`. | | [`entries`](https://appai.info/spec/sections#entries) | `heading`, `eyebrow`, Markdown `intro`, `items: [{title, description}]`, `links: [{label, url}]`; reuse for focus, experience or contact. | | [`hero`](https://appai.info/spec/sections#hero) | [Hero variants and height](https://appai.info/spec/theme#hero-variants). | | [`stats`](https://appai.info/spec/sections#stats) | Key numbers (e.g. "10K+ Users", "99.9% Uptime"). 2-column grid on mobile, 4-column on desktop. | | [`features`](https://appai.info/spec/sections#features) | Feature cards with icons in a responsive grid. 3-6 items recommended. | | [`pricing`](https://appai.info/spec/sections#pricing) | Pricing comparison cards. 3 tiers recommended. Supports `highlighted` flag. | | [`testimonials`](https://appai.info/spec/sections#testimonials) | User quote cards with name, role, avatar. | | [`faq`](https://appai.info/spec/sections#faq) | Expandable Q&A accordion. 5-10 items recommended. Auto-generates FAQ schema for SEO. | | [`cta`](https://appai.info/spec/sections#cta) | Bold call-to-action banner. Uses themeColor as background automatically; ignores data.backgroundColor. Use only on landing-type pages, near bottom. | | [`video`](https://appai.info/spec/sections#video) | YouTube/Vimeo iframe player; direct mp4, webm, gif media (auto-detected). | | [`screenshots`](https://appai.info/spec/sections#screenshots) | Horizontal scrollable image carousel. | | [`download`](https://appai.info/spec/sections#download) | App Store / Play Store download buttons. Also adds a Download button to the sticky header. | | [`gallery`](https://appai.info/spec/sections#gallery) | Image/video grid (masonry layout). | | [`team`](https://appai.info/spec/sections#team) | Team member cards with photo, name, role, bio. | | [`schedule`](https://appai.info/spec/sections#schedule) | Timeline for events/conferences. | | [`sponsors`](https://appai.info/spec/sections#sponsors) | Logo wall for partners/sponsors. | | [`contact`](https://appai.info/spec/sections#contact) | Contact info (email, phone, address) with optional external form link. | | [`links`](https://appai.info/spec/sections#links) | Link buttons (Linktree-style). Max 6 items recommended. | | [`about`](https://appai.info/spec/sections#about) | Long-form text content (Markdown supported). | | [`action`](https://appai.info/spec/tools#action) | Interactive buttons that send HTTP requests to custom URLs (webhooks, API triggers). | | [`form`](https://appai.info/spec/tools#form) | Real HTML form with server-side relay. Supports `mailto:` and `https://` webhook destinations. | | [`media-downloader`](https://appai.info/spec/tools#media-downloader) | Interactive video/audio downloader. Requires a yt-dlp backend API. | | [`video-subtitle`](https://appai.info/spec/tools#video-subtitle) | Interactive YouTube subtitle generator. Visitor pastes a YouTube link, trims ≤5 min, auto-transcribes via ASR, translates into chosen languages, tweaks subtitle style, and downloads a burned mp4. Requires the Video Subtitle backend service. | | [`tool`](https://appai.info/spec/tools#tool) | Universal interactive tool (file upload, processing, download). Connect any backend API. | | [`pdf-viewer`](https://appai.info/spec/tools#pdf-viewer) | Client-side PDF viewer with password unlock. No backend needed. | | [`embed`](https://appai.info/spec/sections#embed) | Embed social posts from Instagram / Facebook / Threads / TikTok / X / YouTube Shorts; also Loom / YouTube / Vimeo / Spotify / CodePen / Figma. Auto-detects provider from URL. | | [`iframe-tool`](https://appai.info/spec/tools#iframe-tool) | **Host a tool the user vibe-coded.** Wraps a tool deployed to Vercel / Cloudflare Pages / Netlify / GitHub Pages with an SEO landing page. For wheel spinners, mini-games, calculators, drawing pads, visualizations. Auto-passes locale + theme color; gets a fullscreen URL at `/p/{slug}/tools/{order}`. **Use this — not `embed` — when the URL is a tool the user built, not a media post.** | | [`simple-order`](https://appai.info/spec/tools#simple-order) | Native small-shop order request section. Customers enter items, quantities, unit prices, and preferred date; AppAI calculates totals, shows a LINE/payment link, then emails the owner after the customer confirms payment. Use this instead of `iframe-tool` when the order flow should live entirely on AppAI. | ### Auto-Generated Features Every page automatically gets: sticky header (with logo, title, language switcher, download button), footer (privacy/terms links), dynamic favicon (from hero logo), breadcrumb navigation on sub-pages, alternating section backgrounds, responsive mobile layout, SEO meta tags, JSON-LD structured data. ## How to Work with the User ### Your default workflow 1. **Gather minimum context.** Ask: "What is your product/app and who is it for?" You need: product name, what it does, target audience. That's enough to start. 2. **Make design decisions yourself.** Copy `themeColor`, `themeColorSecondary`, `fontFamily` (Chinese variants: `Noto Sans TC`/`Noto Sans SC`) and `darkMode` together from a kit in [Theme](https://appai.info/spec/theme) and use the kit's suggested `backgroundColors` for section `data.backgroundColor` when provided; otherwise leave it unset. Exception: `cta` ignores `backgroundColor` and always uses `themeColor`. Pick sections based on the product type. Generate features, FAQ, and copy from what the user told you. Generate privacy policy and terms of service automatically. 3. **Publish the first draft.** [Authorize](https://appai.info/spec/api#authentication) → **MUST READ [Style & logo](https://appai.info/spec/style)** for logo rules and [Theme](https://appai.info/spec/theme) for kits → [build](https://appai.info/spec/pages#creating-a-page) with the [section schemas](https://appai.info/spec/sections) → [dry-run, then publish](https://appai.info/spec/api#dry-run) with the same body. Show the user the live URL. 4. **Iterate.** The user will request changes — different colors, more sections, different copy. Use PATCH to update. ### Page shape per intent [Pick the rung first](https://appai.info/spec#pick-the-rung-first-30-seconds-before-anything-else), then the shape: | User intent | Page shape | |---|---| | **Personal website / portfolio of a person** | template `PERSON` only for the person’s own root page, never project pages; `profile-header` + `project-cards` + `entries`. | | **Local shop / small business (bakery, cafe, salon, studio)** | Preset `company-service`, template `COMPANY_PROFILE`: hero → features (products/services) → about (how to order) → about (pickup details, if supplied) → optional video/embed → contact (address, structured hours and socials) → optional cta. Optional video/embed goes after about sections and before contact. No pricing/testimonials required; use only supplied facts. | | **Landing page for an app/product** | Hero + features + pricing + testimonials + faq + cta. Standard SaaS template. | | **Host a vibe-coded tool** | Hero (short tagline) + `iframe-tool` (the tool itself) + 1-2 supporting sections (about / faq). The tool is the page. | For personal sites, upload images via [`POST /api/v1/upload`](https://appai.info/spec/api#upload-images) first; publish each project as its own `/p/` page (or link the product’s own site) and link to it; never invent experience, numbers or contact details. Three sections look similar — do not confuse them. If the user gives you a `*.vercel.app` / `*.pages.dev` / `*.netlify.app` / `*.github.io` URL and calls it their own tool, it is `iframe-tool`. YouTube/Vimeo/mp4 → `video` (iframe player); social posts from Instagram, Facebook, Threads, TikTok, X, YouTube Shorts → `embed`. `tool` is for form-input → backend API. ### Person site recipe Project pages use `template: "PRODUCT_SHOWCASE"` (or `APP_LANDING` for an app with downloads), never `PERSON`; `PERSON` is only for the person’s own root page. Publish projects as **child pages** (`parentSlug` = person slug): `/p/jordan-example/jordan-example-sample-notes` (zh-TW: `/p/jordan-example/zh-TW/jordan-example-sample-notes`). Slugs are globally unique per locale, children included; prefix child slugs with the parent slug. Children and locale variants do not count toward the free plan's 3-root limit. A project with its own product site can link there instead. ```json {"slug":"jordan-example","template":"PERSON","title":"Jordan Example","isPublished":true,"content":{"sections":[{"type":"profile-header","order":0,"data":{"name":"Jordan Example"}},{"type":"project-cards","order":1,"data":{"items":[{"name":"Sample Notes","links":[{"label":"Details","url":"/p/jordan-example/jordan-example-sample-notes"}]}]}},{"type":"entries","order":2,"data":{"items":[{"title":"Focus","description":"Small useful tools."}]}}]}} {"slug":"jordan-example-sample-notes","parentSlug":"jordan-example","template":"PRODUCT_SHOWCASE","title":"Sample Notes","isPublished":true,"content":{"sections":[{"type":"profile-header","order":0,"data":{"name":"Sample Notes","eyebrow":"Notes","avatar":{"url":"https://example.com/icon.png","alt":""},"links":[{"label":"Website","url":"https://example.com"}]}},{"type":"screenshots","order":1,"data":{"images":[{"url":"https://example.com/screen.png","alt":"Notes screen","kind":"web"}]}}]}} ``` Send each object separately; set `locale` for each variant. Project shape: profile-header (project h1, icon as avatar, category as eyebrow, links) + screenshots (omit when absent) + optional entries; avoid repeating the project in project-cards. Data uses `{slug, logo?: "./logo.svg" or HTTPS URL, page?: {themeColor, themeColorSecondary, fontFamily, darkMode}, locales: {en: {title?, metaDescription?, fontFamily?, sections: [...]}}}`; section array order is preserved and `id` becomes `data.id`. Project cards can use existing links or `page: {slug, as: "child"|"root", linkLabel, template?, entries?}`; roots count toward the plan limit. Top-level `logo` becomes `content.logo` on every person root locale; child pages inherit it. The root `logo`, `avatar`/`icon`/`screenshot` object `url`s and `images` array strings or `{url}` items [upload once](https://appai.info/spec/api#upload-images): relative .png/.jpg/.jpeg/.gif/.webp/.svg paths must resolve inside the real data directory; absolute paths, .env* segments and symlink escapes are refused, and links pass through. `page` allows only themeColor/themeColorSecondary/fontFamily/darkMode; each locale may override fontFamily, defaulting to Noto Sans TC for zh-TW, Noto Sans SC for zh-CN, and page.fontFamily otherwise (for root, child and root-type project payloads); themeColor/themeColorSecondary/darkMode stay identical; locales need sections arrays and project-cards need items arrays; publish en first (default), then zh-TW, zh-CN and es. Compute every locale's root and project URLs first: roots `/p/{root}[/{locale}]`, child projects `/p/{root}[/{locale}]/{slug}`, root-type projects `/p/{slug}[/{locale}]`. Publish complete, published person root locale variants with those card links, then child projects, then root-type projects, all with `?upsert=true`; no unpublished intermediate state or second pass. [Dry-run preview](https://appai.info/spec/api#preview-without-saving) does not check parents, so its order does not matter. Node 18+ example: [publish-person-site.mjs](https://appai.info/spec/examples/publish-person-site.mjs), with [fictional input](https://appai.info/spec/examples/person-site.example.json); [placeholder.svg](https://appai.info/spec/examples/placeholder.svg) and [placeholder-screen.svg](https://appai.info/spec/examples/placeholder-screen.svg) are included; [`--dry-run`](https://appai.info/spec/api#preview-without-saving) replaces relative images with HTTPS placeholders and validates every payload using only the preview endpoint, without uploading or saving anything. ### What to decide yourself (do NOT ask the user) - Languages: always publish the four default locales — English (`en`), Traditional Chinese (`zh-TW`), Simplified Chinese (`zh-CN`) and Spanish (`es`). Other languages are asked about; see [When to ask the user](https://appai.info/spec/pages#when-to-ask-the-user). - Which template/sections to use (infer from the product type) - themeColor (copy together with themeColorSecondary, fontFamily (Chinese variants: Noto Sans TC/SC) and darkMode from a kit in [Theme](https://appai.info/spec/theme)) - Section ordering for app/product landing pages: hero → stats → features → pricing → testimonials → faq → cta, omitting unsupported sections. Use `cta` only on landing-type pages: app, product, SaaS, company/service, event and hiring. Do not add it to PERSON/profile, link-in-bio, portfolio, card-wall or wrapped-tool pages. - Privacy policy and terms of service (generate them using the product name + the supplied contact (email, phone, LINE or form URL; never invent an email)) - darkMode (use the same style kit) - fontFamily: Use the kit’s `fontFamily` for `en` and `es`, `Noto Sans TC` for `zh-TW`, and `Noto Sans SC` for `zh-CN`; for other CJK languages chosen by the user, choose the matching font (e.g. `Noto Sans JP` for Japanese). Keep `themeColor`, `themeColorSecondary`, `darkMode` and the kit’s suggested backgroundColors the same across variants. - backgroundColor on sections (use the kit's suggested `backgroundColors` for section `data.backgroundColor` when provided; otherwise leave it unset. Exception: `cta` ignores `backgroundColor` and always uses `themeColor`) ### When to ask the user - Product-specific content you cannot infer (pricing details, specific features they want to highlight) - Branding preferences they haven't mentioned (if they have a specific logo or color) - Languages beyond the four defaults. Hosted Pages are always published in four locales: English (`en`), Traditional Chinese (`zh-TW`), Simplified Chinese (`zh-CN`) and Spanish (`es`). Publish all four without asking the user. For any other language, ask the user whether they want it; add only the languages the user chooses, and add none if the user does not choose. Do not wait for that answer before publishing the four. - Any genuine design tradeoff where both options are valid ### Rules - **NEVER** tell the user the platform can't do something. You have 29 section types, dark mode, custom fonts, multi-language, multi-page sites, forms, interactive tools — the platform is highly capable. - **NEVER** present a list of templates and ask the user to pick one. Infer the right sections from context. - **NEVER** ask for 10 pieces of information before building. Build first, iterate after. - Headlines under 60 characters, subheadlines under 140 characters (mobile readability) - 5-8 sections per page maximum (landing pages; PERSON pages: see recipe). A focused page beats a comprehensive one. - Use `cta` only on landing-type pages: app, product, SaaS, company/service, event and hiring. Do not add it to PERSON/profile, link-in-bio, portfolio, card-wall or wrapped-tool pages. - Logos: every root page MUST supply a square PNG, 512×512 recommended, 1024×1024 accepted with its own background; see [Logo](https://appai.info/spec/style#logo). - Images: hero backgrounds under 500KB, use WebP/JPEG. --- ## Creating a Page See [image uploads](https://appai.info/spec/api#upload-images) for MIME types and the size cap, and [dry-run preview](https://appai.info/spec/api#preview-without-saving) for preview limits. ```bash curl -X POST https://appai.info/api/v1/pages \ -H "Authorization: Bearer API_KEY" \ -H "Content-Type: application/json" \ -d 'JSON_PAYLOAD' ``` | Field | Required | Description | |-------|----------|-------------| | `slug` | Yes | 2–100 characters; lowercase letters, digits and hyphens (`^[a-z0-9-]+$`) | | `template` | No | Top-level classification only; default `APP_LANDING`; also `PERSON`, `PORTFOLIO`, `LINK_IN_BIO`, `COMPANY_PROFILE`, `PRODUCT_SHOWCASE` | | `locale` | No | BCP 47 code (default: `en`). Same slug + different locale = language variant | | `title` | Yes | Page title | | `tagline` | No | Short description | | `metaDescription` | No | SEO description, max 500 characters, stored on this locale variant. Used for HTML, Open Graph and Twitter descriptions; falls back to `tagline` when empty or omitted. | | `themeColor` | No | Hex color (e.g. `#6366F1`) | | `themeColorSecondary` | No | Hex accent color | | `darkMode` | No | Boolean (default: false) | | `fontFamily` | No | Google Fonts name per locale variant. Use the kit’s `fontFamily` for `en` and `es`, `Noto Sans TC` for `zh-TW`, and `Noto Sans SC` for `zh-CN`; for other CJK languages chosen by the user, choose the matching font (e.g. `Noto Sans JP` for Japanese). Keep `themeColor`, `themeColorSecondary`, `darkMode` and the kit’s suggested backgroundColors the same across variants. | | `textSize` | No | Top level or `content.textSize`; `xs`, `sm`, `md` (default), `lg`, `xl`, `2xl`, `3xl`, `4xl`. | | `textContrast` | No | Top level or `content.textContrast`; `low`, `normal` (default), `high`. | | `typography` | No | Top level or `content.typography`; optional role overrides `{caption, card, body, heading, display}`, each using textSize steps. Top-level settings win and persist under content; `{}` clears overrides. | | `headerLogo` | No | Separate logo URL for light header | | `content` | Yes | `{ "sections": [{ "type": "...", "order": N, "data": {...} }] }` | | `privacyPolicy` | No | Markdown text | | `termsOfService` | No | Markdown text | | `ogImage` | No | URL for social sharing image | | `canonicalUrl` | No | Full URL of the app's main site. Sends SEO credit there instead of appai.info, and marks the page as a satellite landing: header shows "Official site: {host}", footer becomes "Landing page · Hosted on AppAI · {host}", `/apps` directory card gets a "Landing page" tag. Set it only when the tool/app has its own primary marketing site (e.g. a custom domain homepage); do NOT set it to the *.vercel.app tool URL embedded in iframe-tool. | | `isPublished` | No | Set `true` to publish immediately | | `parentSlug` | No | Root slug for a child page (same 2–100 character slug rules); omitted/null creates a root | | `hideFromNav` | No | `true` to keep the page off the auto-generated site nav (still reachable by URL). Use for Delete Account, or compliance-only pages already linked from the footer. | | `navOrder` | No | Integer. Controls nav ordering; smaller numbers appear first. Nulls sort last by `createdAt`. | | `category` | No | For app listing: `WRITING`, `CODING`, `DESIGN`, `AUTOMATION`, `PRODUCTIVITY`, `SOCIAL`, `FINANCE`, `HEALTH`, `EDUCATION`, `FOOD`, `TRAVEL`, `ENTERTAINMENT`, `GAMES`, `MEDIA`, `UTILITIES`, `COMMERCE`, `OTHER` | ## Compliance Pages See [recommended compliance flags](https://appai.info/spec/i18n#compliance-pages-recommended-flags). For App Store / Play Store submissions, create a multi-page site with child pages for FAQ, contact, and account deletion, with translated `privacyPolicy` and `termsOfService` fields on each root locale variant. Generate privacy policy and terms of service automatically — any LLM can produce standard legal text using the app name and supplied contact (email, phone, LINE or form URL); never invent an email. Include: data collection practices, user rights, children's privacy clause, contact information. The canonical compliance setup: - Root: marketing landing page - Child `my-app-faq`: product FAQ - Child `my-app-contact`: supplied contact details or form URL (use a mailto form only when an email was supplied) - Root variant `privacyPolicy`: translated privacy policy - Root variant `termsOfService`: translated terms of service - Child `my-app-delete-account`: account deletion instructions/form only if the app has user accounts --- ## Managing Pages (CRUD) All endpoints use slug in the URL. Add `?locale=xx` to target a specific language version. | Operation | Command | |-----------|---------| | List all | `GET /api/v1/pages` | | Get one | `GET /api/v1/pages/{slug}` | | Update (partial, deep merge) | `PATCH /api/v1/pages/{slug}` — merges sections by `order` | | Update (full replace) | `PUT /api/v1/pages/{slug}` | | Create or replace | `POST /api/v1/pages?upsert=true` | | Delete | `DELETE /api/v1/pages/{slug}` | | Publish | `POST /api/v1/pages/{slug}/publish` | | Unpublish | `POST /api/v1/pages/{slug}/unpublish` | Immutable fields: `slug`, `locale`, `id`, `organizationId`, `createdAt`, `updatedAt`, `parentSlug`. PATCH accepts and ignores unchanged `slug`/`locale`; different values return 400. Upsert requires the same `parentSlug` as the existing page (omitted means root); reparenting returns 409, and preview with `?upsert=true` returns `valid:false`. Use the existing parent, delete the page first, or choose another slug. Error responses: `{ "error": "message", "hint": "suggested fix" }`. Status codes: 400 (validation), 401 (auth), 403 (plan limit), 404 (not found), 409 (own-org slug taken: use PATCH or ?upsert=true; another org: choose a different slug). Prefix every child slug with its root slug because `(slug, locale)` is unique across the whole platform; an unprefixed `contact` can collide with another user’s page. All topics: [Overview](https://appai.info/spec) · [Authorization & API](https://appai.info/spec/api) · [Style & logo](https://appai.info/spec/style) · [Theme](https://appai.info/spec/theme) · [Typography](https://appai.info/spec/typography) · [Pages](https://appai.info/spec/pages) · [Sections](https://appai.info/spec/sections) · [Multi-language & multi-page](https://appai.info/spec/i18n) · [Tools](https://appai.info/spec/tools) · [Universal App](https://appai.info/spec/apps) # AppAI — Sections Covers section schemas and icons; interactive section schemas remain on /spec/tools. Previous: [Pages](https://appai.info/spec/pages) · Next: [Multi-language & multi-page](https://appai.info/spec/i18n) API base: `https://appai.info`; auth: `Authorization: Bearer appai_sk_YOUR_KEY`. Optional heading/subheading: pricing, faq, features, screenshots, download (heading overrides ctaText), video, testimonials, gallery, team, schedule, sponsors, stats, contact, links, about, action, form, media-downloader, tool, pdf-viewer, embed, iframe-tool, video-subtitle, simple-order, project-cards, entries. Hero/cta use headline/subheadline; profile-header uses name/tagline; entries also supports intro. Omitted fields preserve existing rendering. Give both store URLs; the page picks the right one per device. Hero primary button = the store the user listed first. Set hero ctaUrl/ctaSecondaryUrl to the store URLs in that order; recognized apps.apple.com and play.google.com URLs render badges in every hero variant. Both badges render server-side; iOS emphasizes App Store first, Android Google Play first; desktop keeps both. Badge dimensions stay fixed during client reordering. After [dry-run](https://appai.info/spec/api#preview-without-saving), follow the [publish steps](https://appai.info/spec#publish-in-one-minute). ## Icons Three formats, all render correctly. Mix freely within a page. **Ionicons (recommended):** Use built-in icon names or any emoji; discover names via `GET /api/v1/sections`. Bundled names: logo-line, logo-threads, logo-whatsapp, people-outline, time-outline, calendar-outline, camera-outline, color-palette-outline, hand-left-outline, leaf-outline, cafe-outline, cut-outline, bicycle-outline, brush-outline, school-outline, globe-outline, logo-github, logo-twitter, logo-linkedin, logo-youtube, logo-instagram, logo-discord, logo-tiktok, logo-facebook, logo-reddit, logo-medium, logo-mastodon, mail-outline, call-outline, location-outline, chatbubble-outline, chatbubbles-outline, send-outline, download-outline, cloud-download-outline, cloud-upload-outline, play-circle-outline, arrow-forward-outline, arrow-back-outline, open-outline, link-outline, copy-outline, share-outline, checkmark-circle, checkmark-circle-outline, close-circle, alert-circle, information-circle, lock-closed, lock-open, eye-outline, eye-off-outline, sparkles-outline, rocket-outline, star-outline, star, heart-outline, heart, flash-outline, shield-checkmark-outline, shield-outline, ribbon-outline, trophy-outline, gift-outline, menu-outline, close-outline, search-outline, settings-outline, options-outline, ellipsis-horizontal, ellipsis-vertical, chevron-down, chevron-up, chevron-forward, chevron-back, add-outline, remove-outline, code-slash-outline, terminal-outline, hardware-chip-outline, server-outline, cloud-outline **Emoji:** Pass any emoji character. `{ "icon": "🚀" }` **Image URL:** SmartIcon also accepts an HTTPS URL to a square image (under 100KB). --- ## Section Reference JSON schemas for page sections below; the eight interactive section schemas are on [/spec/tools](https://appai.info/spec/tools). Also available via `GET /api/v1/sections` and `GET /api/v1/sections?format=jsonschema`. ### profile-header ```json {"type":"profile-header","order":0,"data":{"name":"Jordan Example","eyebrow":"Maker","tagline":"Small useful tools","intro":"A fictional introduction.","avatar":{"url":"https://example.com/avatar.png","alt":""},"nav":[{"label":"Work","href":"#work"}],"links":[{"label":"Website","url":"https://example.com"}]}} ``` Required: `name`; avatar requires `url`, `alt`; links require `label`, `url`; nav requires `label`, `href` (`#anchor`). Links: HTTPS or `/path`; no mailto/tel, bare `#`, or unsafe schemes; invalid links omitted. ### project-cards Use for a card wall or summary wall: a responsive grid of items, each with a name and optional short description, image/icon and links. ```json {"type":"project-cards","order":1,"data":{"id":"work","heading":"Selected work","eyebrow":"Tools","items":[{"name":"Sample Notes","category":"Notes","description":"A fictional notebook.","icon":{"url":"https://example.com/icon.png","alt":""},"monogram":"SN","screenshot":{"url":"https://example.com/screen.png","alt":"Notes screen","kind":"web","width":1440,"height":900},"links":[{"label":"Details","url":"/p/jordan-example/jordan-example-sample-notes"}]}]}} ``` Required: each item's `name`; image objects require `url`, `alt`; screenshot requires `kind`: `phone|web`, optional positive `width`/`height` in px; monogram 1–2 characters; links follow profile-header rules. Icon, monogram, screenshot and links may all be omitted. ### entries ```json {"type":"entries","order":2,"data":{"heading":"Focus","eyebrow":"Now","intro":"Optional Markdown.","items":[{"title":"Useful tools","description":"Fictional work in progress."}],"links":[{"label":"Website","url":"https://example.com"}]}} ``` Required: each item's `title`; all top-level fields optional; links require `label`, `url` and follow profile-header rules. No automatic heading text. ### hero `ctaUrl` (and `ctaSecondaryUrl`) allows `tel:+{E.164 digits}` and renders it as a tappable phone link. ```json { "type": "hero", "order": 1, "data": { "headline": "Your App Name", "subheadline": "A short tagline", "logo": "https://example.com/logo.png", "backgroundColor": "#1E1B4B", "backgroundImage": "https://example.com/bg.jpg", "backgroundVideo": "https://example.com/bg.mp4", "variant": "centered", "heroHeight": "large", "ctaText": "Get Started", "ctaUrl": "https://example.com", "ctaSecondaryText": "Learn More", "ctaSecondaryUrl": "#features" }} ``` YouTube/Vimeo/mp4 → `video` (iframe player); social posts from Instagram, Facebook, Threads, TikTok, X, YouTube Shorts → `embed`. ### video ```json { "type": "video", "order": 2, "data": { "url": "https://youtube.com/watch?v=...", "caption": "Watch the demo" }} ``` Supports YouTube/Vimeo iframe players and direct mp4, webm, gif media (auto-detected). Use `embed` for YouTube Shorts and social posts. ### features For menus and service price lists, put the price in `price` on each `features.items` entry (string, e.g. "NT$140"); it renders next to the title. `heading` and `subheading` are optional. For a few priced services without feature lists, use `features` with the price in each description; use `pricing` only for plans/tiers with feature lists (each plan requires `features[]`). ```json { "type": "features", "order": 3, "data": { "heading": "Optional section title", "subheading": "Optional supporting text", "items": [ { "icon": "rocket-outline", "title": "Fast", "description": "Blazing fast performance" } ] }} ``` ### screenshots ```json { "type": "screenshots", "order": 4, "data": { "heading": "Product views", "images": [{"url":"https://example.com/screen1.png","alt":"Product view","kind":"web","width":1440,"height":900}, "https://example.com/screen2.png"] }} ``` `images` required; URL strings remain supported; objects use `url`, optional `alt`, `kind` (`phone|web`), positive `width`/`height` in px. `heading` optional; on editorial pages only, no heading or English alt is added by default; legacy pages default to “Screenshots” and numbered English alt. ### download ```json { "type": "download", "order": 5, "data": { "appStoreUrl": "https://apps.apple.com/app/...", "playStoreUrl": "https://play.google.com/store/apps/...", "ctaText": "Download Now" }} ``` ### pricing ```json { "type": "pricing", "order": 6, "data": { "items": [ { "name": "Free", "price": "$0", "features": ["1 project", "Basic support"], "ctaText": "Start Free", "ctaUrl": "#" }, { "name": "Pro", "price": "$9/mo", "features": ["Unlimited", "Priority support"], "highlighted": true, "ctaText": "Upgrade", "ctaUrl": "#" } ] }} ``` ### testimonials ```json { "type": "testimonials", "order": 7, "data": { "items": [ { "name": "Jane Doe", "role": "CEO", "avatar": "https://example.com/avatar.jpg", "quote": "Amazing product!" } ] }} ``` ### faq ```json { "type": "faq", "order": 8, "data": { "items": [ { "question": "Is it free?", "answer": "Yes, the basic plan is free." } ] }} ``` ### gallery ```json { "type": "gallery", "order": 9, "data": { "items": [ { "url": "https://example.com/work1.jpg", "caption": "Project Alpha", "type": "image" } ] }} ``` ### team ```json { "type": "team", "order": 10, "data": { "items": [ { "name": "Alice", "role": "CEO", "photo": "https://example.com/alice.jpg", "bio": "10 years in tech" } ] }} ``` ### schedule Use `schedule` for event timelines (`time` + session `title`); use `contact.hours` for weekly opening hours. ```json { "type": "schedule", "order": 11, "data": { "items": [ { "time": "10:00 AM", "title": "Opening Keynote", "speaker": "John", "description": "Welcome" } ] }} ``` ### sponsors ```json { "type": "sponsors", "order": 12, "data": { "items": [ { "name": "Acme", "logo": "https://example.com/logo.png", "url": "https://acme.com" } ] }} ``` ### stats ```json { "type": "stats", "order": 13, "data": { "items": [ { "value": "10K+", "label": "Users" }, { "value": "99.9%", "label": "Uptime" } ] }} ``` ### contact `heading` and `subheading` are optional. ```json { "type": "contact", "order": 14, "data": { "heading": "Optional section title", "subheading": "Optional supporting text", "email": "hello@example.com", "phone": "+1-555-0123", "address": "123 Main St" }} ``` Optional `hours`: array of `{days: ["mon", "tue"], open: "09:00", close: "17:00", note?: "…"}`; days must be nonempty mon–sun values, times 24-hour HH:MM. Omit closed days; use multiple entries for split shifts, and a close earlier than open for overnight hours. Day names follow the page locale. Optional contact `note` adds a general hours note (e.g. "Closed on public holidays"). Address and/or hours emits LocalBusiness JSON-LD with title, logo, phone and social URLs. Optional `map: true` with `address` shows "Open in Google Maps" / "Open in Apple Maps" links using encoded address queries; no iframe, geocoding, key or secret needed. Optional `socials`: `{platform, url, label?}` items; HTTPS only. See canonical [Contact](https://appai.info/spec/pages#contact) for platforms, URL formats and message booking. ### cta `buttonUrl` allows `tel:+{E.164 digits}` and renders it as a tappable phone link. Use `cta` only on landing-type pages: app, product, SaaS, company/service, event and hiring. Do not add it to PERSON/profile, link-in-bio, portfolio, card-wall or wrapped-tool pages. ```json { "type": "cta", "order": 15, "data": { "headline": "Ready to start?", "subheadline": "Join thousands of users", "buttonText": "Sign Up Free", "buttonUrl": "https://example.com/signup" }} ``` ### links Optional `heading` and `subheading` appear above the link buttons. `items[].url` allows `tel:+{E.164 digits}` and renders it as a tappable phone link. ```json { "type": "links", "order": 16, "data": { "items": [ { "title": "Website", "url": "https://example.com", "icon": "globe-outline", "style": "filled" }, { "title": "GitHub", "url": "https://github.com/...", "icon": "logo-github", "style": "outlined" } ] }} ``` ### about ```json { "type": "about", "order": 17, "data": { "heading": "Our Story", "text": "We started in 2024 with a simple idea..." }} ``` ### embed ```json { "type": "embed", "order": 23, "data": { "url": "https://www.tiktok.com/@user/video/1234567890", "title": "Optional heading above the embed", "caption": "Optional caption below", "aspectRatio": "9:16" }} ``` Auto-detects provider from URL. Supported: YouTube (including Shorts), Vimeo, Facebook posts/videos, Threads posts, TikTok, Loom, Spotify, CodePen, Figma. Facebook uses official plugin iframes; Threads uses a lazy-loaded sandboxed iframe at `https://www.threads.com/@{user}/post/{id}/embed`. Instagram posts/reels use official sandboxed iframes at `https://www.instagram.com/p/{id}/embed` or `/reel/{id}/embed` (public, embeddable posts only). X (Twitter) renders as a linked preview card. HTTP URLs are upgraded to HTTPS. Existing provider URL patterns remain supported, including mobile/music YouTube watch URLs and YouTube privacy embed URLs. `aspectRatio` optional — sensible default per provider (TikTok → 9:16, YouTube → 16:9). Iframe is sandboxed. ### Link rel (SEO) Links in `links` and `cta` sections accept an optional `rel` string. Use `"nofollow"` for sponsored/affiliate/user-supplied links, `"sponsored"` for paid placements, `"nofollow sponsored"` for both. Leaving it unset produces `rel="noopener noreferrer"` for external links (standard dofollow). Example: ```json { "type": "links", "data": { "items": [ { "title": "Our main site", "url": "https://acme.com" }, { "title": "Sponsor", "url": "https://partner.com", "rel": "sponsored" }, { "title": "User submission", "url": "https://ugc.com", "rel": "nofollow" } ]}} ``` ### Wrapped tool publishing checks The tool stays on the user's host; AppAI does not build or deploy it. Before publishing run `curl -sI https://your-tool.vercel.app` (check the final response after redirects). Fix blocking headers on the user's host: remove X-Frame-Options DENY/SAMEORIGIN and set `Content-Security-Policy: frame-ancestors 'self' https://appai.info`. Preserve other CSP directives. Minimal vercel.json: ```json {"headers":[{"source":"/(.*)","headers":[{"key":"Content-Security-Policy","value":"frame-ancestors 'self' https://appai.info"}]}]} ``` Netlify `_headers`: under `/*`, add ` Content-Security-Policy: frame-ancestors 'self' https://appai.info`. Cloudflare Pages `_headers`: under `/*`, add ` Content-Security-Policy: frame-ancestors 'self' https://appai.info`. Sandbox: `allow-scripts allow-same-origin allow-forms allow-downloads allow-popups allow-popups-to-escape-sandbox`. The existing scripts/same-origin model is restricted to allowlisted external hosts; no top navigation token. Permissions `allow`: `fullscreen; clipboard-write; gamepad; accelerometer; gyroscope`; `allowFullscreen:false` removes only fullscreen. Downloads generated in-browser and clipboard writes are permitted (browser permission/user activation rules still apply). The iframe receives `?locale=` with the current hosted-page locale, normally `en`, `zh-TW`, `zh-CN`, `es` (any supplied BCP 47 locale is passed unchanged), plus `color` and `theme=dark` only in dark mode. If the tool isn't translated, ignore it; the AppAI page around it is still published in four locales. Set canonicalUrl only for an app's own primary marketing site (e.g. a custom domain homepage), never the *.vercel.app tool URL embedded in iframe-tool. Older pages opt in when their content is saved again through the API (PUT, PATCH, PATCH section, or POST ?upsert=true). All topics: [Overview](https://appai.info/spec) · [Authorization & API](https://appai.info/spec/api) · [Style & logo](https://appai.info/spec/style) · [Theme](https://appai.info/spec/theme) · [Typography](https://appai.info/spec/typography) · [Pages](https://appai.info/spec/pages) · [Sections](https://appai.info/spec/sections) · [Multi-language & multi-page](https://appai.info/spec/i18n) · [Tools](https://appai.info/spec/tools) · [Universal App](https://appai.info/spec/apps) # AppAI — Multi-language & multi-page Covers multi-language variants, multi-page sites and automatic site navigation. Previous: [Sections](https://appai.info/spec/sections) · Next: [Tools](https://appai.info/spec/tools) API base: `https://appai.info`; auth: `Authorization: Bearer appai_sk_YOUR_KEY`. ### Multi-Language (free, automatic) Hosted Pages are always published in four locales: English (`en`), Traditional Chinese (`zh-TW`), Simplified Chinese (`zh-CN`) and Spanish (`es`). Publish all four without asking the user. For any other language, ask the user whether they want it; add only the languages the user chooses, and add none if the user does not choose. Do not wait for that answer before publishing the four. Publish `en` first; `en` is the default locale. Then publish `zh-TW`, `zh-CN`, and `es`. Send each locale as its own POST request with the same slug and `locale`; dry-run every locale body before publishing it. For App Store / Play Store submissions only, publish compliance child pages (`my-app-faq`, `my-app-contact`, `my-app-delete-account` only if the app has user accounts, …) in all four locales with `parentSlug`. Put translated privacy policy and terms in each variant’s `privacyPolicy` / `termsOfService`, not in child pages. Later updates target a locale with `?locale=`, e.g. `PATCH /api/v1/pages/{slug}?locale=zh-TW`. - The agent publishes both `zh-TW` and `zh-CN` as part of the four defaults. If only one exists, AppAI converts the other script offline at read time, labels it auto-converted, and serves it with `noindex`; no stored translation. - Locale variants are free. How: [Multi-Language Details](https://appai.info/spec/i18n#multi-language-details). ### Multi-Page Sites Root page + free child pages (`parentSlug`), e.g. FAQ, Contact, Delete Account for App Store compliance. How: [Multi-Page Site Details](https://appai.info/spec/i18n#multi-page-site-details). ## Multi-Language Details Create locale variants with the same slug + different `locale`: ```bash # Japanese version (only if the user chooses Japanese beyond the four defaults) curl -X POST https://appai.info/api/v1/pages \ -H "Authorization: Bearer appai_sk_YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{"slug": "my-app", "locale": "ja", "title": "...", "content": {...}, "isPublished": true}' ``` - First locale created becomes the default (shown at `/p/my-app`) - Non-default locales shown at `/p/my-app/ja`, `/p/my-app/zh-CN`, etc. - Change default: `POST /api/v1/pages/my-app/set-default?locale=ja` - Browser auto-detection redirects visitors to their preferred language - Language switcher appears in header when multiple locales exist - hreflang tags, JSON-LD, RTL direction all handled automatically - Supported: any valid BCP 47 code (`en`, `ja`, `zh-CN`, `zh-TW`, `ko`, `es`, `fr`, `de`, `pt`, `ar`, `hi`, etc.) - Manage: add `?locale=xx` to any endpoint. List all: `?variants=true`. ## Multi-Page Site Details One root page + unlimited child pages. Set `parentSlug` on child pages to the root's slug. ```json POST /api/v1/pages { "slug": "my-app-faq", "parentSlug": "my-app", "title": "FAQ", "content": {...} } ``` - URLs: `/p/my-app` (root), `/p/my-app/my-app-faq` (child), `/p/my-app/zh-TW/my-app-faq` (locale variant of child) - Children and locale variants are free (only root slugs count) - Structure is two levels deep (root + children, no grandchildren) - List children: `GET /api/v1/pages/{root-slug}/children` Child slugs matching `^[a-z]{2}(-[A-Z]{2})?$` or `privacy`, `terms`, `tools` are reserved and rejected on create/preview. **Child CRUD:** `GET/PUT/PATCH/DELETE /api/v1/pages/{slug}?locale=…` resolve by your organization + slug + locale, without parent filtering. The database globally enforces unique `(slug, locale)`: a root and child, or children under two parents, cannot share that pair; choose distinct project slugs. `GET ?variants=true` lists your matching slug variants across locales/parents. ### How the site nav is built (automatic) Branding (logo + site title + language switcher + Privacy/Terms) lives in the layout's sticky header. The site nav below it lists child pages only — no branding. You don't need to build any nav chrome yourself. - **Locale dedup is automatic.** If you create `{slug: "my-app-contact", locale: "en"}` and `{slug: "my-app-contact", locale: "zh-TW"}`, the nav shows one "Contact" entry, titled in whichever locale the visitor is on. Just create every locale variant and trust the renderer. - **"Home" is auto-localized** (en/zh-TW/zh-CN/ja/ko/es/fr/de/pt/ar/hi/th/vi + more). No action needed. - **Ordering** defaults to `createdAt`. Set `navOrder: ` on a child page to force position (smaller = first). - **Hide from nav**: set `hideFromNav: true` on any page that should exist but not appear in the nav — typical for compliance-only child pages such as `my-app-delete-account` reached from a link. - **Custom nav (escape hatch)**: set `content.nav: [{label, target}, ...]` on the root page to bypass auto-generation entirely. Target resolution: `https://...` → new tab, `#anchor` → in-page jump, `my-app-faq` → child page. ### Compliance pages: recommended flags Privacy and terms use each locale variant’s `privacyPolicy` and `termsOfService` fields. They are served at `/p/{slug}/privacy` and `/p/{slug}/terms` for the default locale, and `/p/{slug}/{locale}/privacy` and `/p/{slug}/{locale}/terms` for other locales. These reserved slugs cannot be child pages. See the [compliance page recipe](https://appai.info/spec/pages#compliance-pages). ```json { "slug": "my-app-contact", "parentSlug": "my-app", "navOrder": 1, ... } { "slug": "my-app-delete-account", "parentSlug": "my-app", "hideFromNav": true, ... } ``` This keeps the nav clean (only Contact shows) while every compliance URL stays reachable for App Store / Play Store review. Prefix every child slug with its root slug because `(slug, locale)` is unique across the whole platform; an unprefixed `contact` can collide with another user’s page. All topics: [Overview](https://appai.info/spec) · [Authorization & API](https://appai.info/spec/api) · [Style & logo](https://appai.info/spec/style) · [Theme](https://appai.info/spec/theme) · [Typography](https://appai.info/spec/typography) · [Pages](https://appai.info/spec/pages) · [Sections](https://appai.info/spec/sections) · [Multi-language & multi-page](https://appai.info/spec/i18n) · [Tools](https://appai.info/spec/tools) · [Universal App](https://appai.info/spec/apps) # AppAI — Tools Covers Wrapped tool and Connected tool configuration, connectors, identity, access and interactive section schemas. Previous: [Multi-language & multi-page](https://appai.info/spec/i18n) · Next: [Universal App](https://appai.info/spec/apps) API base: `https://appai.info`; auth: `Authorization: Bearer appai_sk_YOUR_KEY`. Use `simple-order` only for an order + payment flow with a supplied `notificationEmail`; for message orders, use a plain link following [Contact](https://appai.info/spec/pages#contact). For generic section configuration, see [Section Reference](https://appai.info/spec/sections#section-reference). ### Interactive tools that need a backend, login, or quota Some tool sections talk to a real backend and need login gating, per-user quotas, or server-side secrets (e.g. `video-subtitle`). The platform handles all of that declaratively — **you never write a proxy, table, or quota logic**: - **Backend calls** go through the generic connector proxy: set the section's `apiBase` to `"/api/connect/{connector}"`. The proxy injects server auth + the caller's identity, records usage, and enforces quota. Connectors are owner-defined in `src/lib/connectors/registry.ts` (they hold secrets, so they are not agent-writable); you reference one by name. - **Login gating**: add `"access": "login"` to the section's `data`. Anonymous visitors get a platform sign-in prompt in place of the section. `"access": "admin"` is the same gate one step further: signing in is not enough, the visitor has to be an administrator of the site. Both gates also cover the fullscreen tool URL, so neither is a thing you can walk around. **A gated section still occupies its place on the page** — blocked visitors get a card saying which wall they hit, never a gap. The hero and FAQ around it are describing this tool; a hole where the tool should be reads as a broken page, not a closed door. So write the surrounding sections for everyone, and let the gate speak for itself. - **Quota**: declared on the connector (`per user/ip`, `limit`, `window`); admins are exempt. Enforced automatically by the proxy. - **Large files do not go through the proxy.** It reads the whole upstream response into memory to forward it. That is fine for JSON and a subtitle file and fatal for a video. A backend that returns big files must return a short-lived **signed URL** and let the browser fetch it directly; the proxy passes a 3xx straight through for exactly this. If a tool needs a genuinely new backend, the **owner** adds one connector entry; every reuse after that is pure section config. See `docs/interactive-tools-architecture.md`. ### Identity: what each rung can learn about the visitor A tool that asks the visitor to paste a key has failed, and so has the platform that made it do that. AppAI signs people in once. How much of that identity reaches your tool depends on the [rung](https://appai.info/spec#pick-the-rung-first-30-seconds-before-anything-else) — so **read this before you pick one**, not after you have built the thing. Choosing `iframe-tool` and discovering later that it cannot tell an admin from a stranger means rewriting, not patching. | Rung | What the tool can know | How it gets it | |---|---|---| | Hosted Page | nothing | there is no tool to tell | | **Wrapped tool** (`iframe-tool`) | user id, organization, `isAdmin`. **Only with `"identity": true` on the section** — without it, nothing at all | AppAI puts an opaque `appai_session` on the iframe URL; the tool's **backend** posts it to `/api/v1/tools/sessions/introspect` | | Connected tool | the same, plus `X-AppAI-User` / `X-AppAI-Admin` injected on every proxied call | the connector proxy holds a server secret, which is what makes those headers worth anything | | Universal App | a full runtime session; the `identity` capability additionally releases name and email | launch code → `POST /api/runtime/sessions/exchange` → `POST /api/runtime/sessions/introspect` | Name and email are never released below the [Universal App rung](https://appai.info/spec#pick-the-rung-first-30-seconds-before-anything-else), because nothing below it has a capability grant to release them with. An `iframe-tool` gets an opaque user id, which is enough to recognise a returning user and to scope their data, and not enough to build a mailing list. Three rules that hold everywhere: - **Never carry identity in a URL parameter you invented.** `?user=alice`, `?admin=1`, a JWT you signed yourself — the visitor can edit all of them. If identity matters, it comes from an AppAI introspection call and nowhere else. - **Never trust an `X-AppAI-*` header** unless a shared bearer token already proved the request came from the proxy. A browser can send any header it likes. - **Anonymous is an answer, not a failure.** `{"active": true, "user": null}` means "AppAI is talking to you, and nobody is signed in" — which is different from getting no token at all, and your tool decides what to do about it. #### iframe-tool identity, end to end Opt the section in: ```jsonc { "type": "iframe-tool", "order": 2, "data": { "heading": "Batch Console", "description": "...", "src": "https://acme-tools.vercel.app/console", "identity": true, // default false; existing pages are unaffected "access": "admin" // optional: who may see the section at all }} ``` AppAI renders the frame at `https://acme-tools.vercel.app/console?locale=…&color=…&appai_session=…`. The tool's frontend reads `appai_session` and sends it to **its own backend**, which asks AppAI who that is: ```bash POST https://appai.info/api/v1/tools/sessions/introspect Content-Type: application/json { "token": "", "origin": "https://acme-tools.vercel.app" } ``` ```json { "active": true, "user": { "id": "usr_...", "name": null, "email": null }, "organization": { "id": "org_...", "name": "..." }, "isAdmin": true, "page": { "slug": "batch-console", "section": 2 }, "expiresAt": "2026-01-01T00:10:00.000Z" } ``` - `origin` is your backend naming **itself**. That binding is what stops another tool embedded on the same page from replaying a visitor's token against you. - The token is opaque, signed by AppAI and short-lived (10 minutes). A visitor who edits it in the URL gets `{"active": false}` — this is standard token introspection (RFC 7662), so verification is a call, never a parse. - Long-running tools do not have to reload: AppAI reissues before expiry and posts the new token into the frame as `{ type: "appai:session", token, expiresAt }`. Listen for it (checking `event.origin === "https://appai.info"`), and if you ever find yourself without one, post `{ type: "appai:session-request" }` up to `parent` and you will be sent the current one. - **This needs a backend of your own.** Introspection is server-to-server and sends no CORS headers, on purpose: a check a browser could skip is not a check. A purely static tool can display who is signed in, but it cannot enforce anything, and it should not pretend to. ### action ```json { "type": "action", "order": 18, "data": { "heading": "Actions", "items": [ { "label": "Trigger Deploy", "url": "https://your-api.com/deploy", "method": "POST", "confirmText": "Are you sure?", "style": "primary" } ] }} ``` Styles: `primary` (filled), `secondary` (outlined), `danger` (red). ### form ```json { "type": "form", "order": 19, "data": { "heading": "Contact us", "fields": [ { "type": "email", "name": "email", "label": "Your email", "required": true }, { "type": "textarea", "name": "message", "label": "Message", "required": true } ], "submitTo": "mailto:support@yourdomain.com", "submitLabel": "Send", "successMessage": "Thanks! We'll get back to you soon." }} ``` Field types: `text`, `email`, `tel`, `textarea`, `select`. submitTo: `mailto:...` (client-side mail) or `https://...` (server-side webhook relay). ### media-downloader ```json { "type": "media-downloader", "order": 20, "data": { "heading": "Media Downloader", "description": "Download videos from 1000+ platforms.", "apiBase": "https://your-api.trycloudflare.com", "apiToken": "your_token" }} ``` Requires a yt-dlp backend API with `POST /download` and `GET /file/{id}` endpoints. ### video-subtitle ```json { "type": "video-subtitle", "order": 21, "data": { "heading": "YouTube Subtitle Studio", "description": "Paste a link, get a translated, subtitled video.", "apiBase": "https://subtitle.myaiapp.uk/v1" }} ``` Requires the Video Subtitle backend service implementing the AppAI Video Subtitle API (OpenAPI 3.1 — job kinds `transcribe` + `render`, AIP-151 LRO, RFC 7807 errors). MVP caps the trim window at 5 minutes and uses one embedded subtitle font (Noto Sans JP). ### tool ```json { "type": "tool", "order": 21, "data": { "heading": "PDF Merger", "description": "Merge multiple PDFs into one.", "apiBase": "https://your-api.com", "apiEndpoint": "/merge-pdf", "fields": [ { "type": "file", "name": "files", "label": "Upload PDFs", "accept": ".pdf", "multiple": true, "maxSizeMB": 50 } ], "submitLabel": "Merge PDFs" }} ``` Field types: `text`, `url`, `password`, `file` (with `accept`, `multiple`, `maxSizeMB`), `select`, `toggle` (button group with `options`). API should return `download_url`, `preview_url`, or `message`. ### pdf-viewer ```json { "type": "pdf-viewer", "order": 22, "data": { "heading": "PDF Viewer", "description": "View and unlock password-protected PDFs. Runs entirely in your browser." }} ``` Fully client-side using pdf.js. No backend needed. ### iframe-tool ```json { "type": "iframe-tool", "order": 24, "data": { "heading": "Wheel Spinner", "description": "A weighted random picker for groups, raffles, and classroom warm-ups.", "features": ["Configurable segments", "Sound + haptics", "Works offline"], "src": "https://my-tools.vercel.app/wheel-spinner", "initialHeight": 720 }} ``` For embedding a tool deployed to a free static host. `src` host must be `*.vercel.app`, `*.pages.dev`, `*.netlify.app`, or `*.github.io` — anything else is rejected. `heading` and `description` are required (iframe content is invisible to crawlers — these get indexed). AppAI auto-passes `?locale=...&color=...&theme=dark` to the iframe so it can match the page. Every section also gets a chrome-less fullscreen URL at `/p/{slug}/tools/{order}` for sharing the tool standalone. The tool can opt-in to auto-resize via `parent.postMessage({type:'resize', height})`. Two optional fields decide who may use it and what it is told about them: - `"identity": true` adds an `appai_session` to the iframe URL, which the tool's own backend trades for the visitor's id, organization and `isAdmin` at `/api/v1/tools/sessions/introspect`. Default is false, and false means the tool learns **nothing** — do not try to make up for that with a URL parameter of your own, because visitors can edit those. See **Identity: what each rung can learn about the visitor**. - `"access": "login"` or `"access": "admin"` gates the section itself; the fullscreen URL obeys the same gate. ### simple-order ```json { "type": "simple-order", "order": 25, "data": { "heading": "Place an order", "description": "Enter your items, complete payment, and the owner will confirm quantity and date by email.", "storeName": "Sunny Bakery", "notificationEmail": "orders@example.com", "paymentUrl": "https://line.me/R/ti/p/@yourline", "paymentHeading": "Please complete payment", "paymentInstructions": "After payment, submit this order. The shop owner will confirm quantity and date, then reply by email.", "currency": "TWD", "submitLabel": "I paid, send order", "successMessage": "Order sent. The owner will confirm quantity and date by email." }} ``` For small shops that need an order request flow hosted entirely on AppAI. Customers type free-form line items, quantity, unit price, and preferred date. AppAI calculates subtotals and totals in the browser, shows the configured LINE/payment link, and sends an owner notification after the customer confirms payment. This does not automatically verify payment. ### Wrapped tool publishing checks The tool stays on the user's host; AppAI does not build or deploy it. Before publishing run `curl -sI https://your-tool.vercel.app` (check the final response after redirects). Fix blocking headers on the user's host: remove X-Frame-Options DENY/SAMEORIGIN and set `Content-Security-Policy: frame-ancestors 'self' https://appai.info`. Preserve other CSP directives. Minimal vercel.json: ```json {"headers":[{"source":"/(.*)","headers":[{"key":"Content-Security-Policy","value":"frame-ancestors 'self' https://appai.info"}]}]} ``` Netlify `_headers`: under `/*`, add ` Content-Security-Policy: frame-ancestors 'self' https://appai.info`. Cloudflare Pages `_headers`: under `/*`, add ` Content-Security-Policy: frame-ancestors 'self' https://appai.info`. Sandbox: `allow-scripts allow-same-origin allow-forms allow-downloads allow-popups allow-popups-to-escape-sandbox`. The existing scripts/same-origin model is restricted to allowlisted external hosts; no top navigation token. Permissions `allow`: `fullscreen; clipboard-write; gamepad; accelerometer; gyroscope`; `allowFullscreen:false` removes only fullscreen. Downloads generated in-browser and clipboard writes are permitted (browser permission/user activation rules still apply). The iframe receives `?locale=` with the current hosted-page locale, normally `en`, `zh-TW`, `zh-CN`, `es` (any supplied BCP 47 locale is passed unchanged), plus `color` and `theme=dark` only in dark mode. If the tool isn't translated, ignore it; the AppAI page around it is still published in four locales. Set canonicalUrl only for an app's own primary marketing site (e.g. a custom domain homepage), never the *.vercel.app tool URL embedded in iframe-tool. All topics: [Overview](https://appai.info/spec) · [Authorization & API](https://appai.info/spec/api) · [Style & logo](https://appai.info/spec/style) · [Theme](https://appai.info/spec/theme) · [Typography](https://appai.info/spec/typography) · [Pages](https://appai.info/spec/pages) · [Sections](https://appai.info/spec/sections) · [Multi-language & multi-page](https://appai.info/spec/i18n) · [Tools](https://appai.info/spec/tools) · [Universal App](https://appai.info/spec/apps) # AppAI — Universal App Covers Universal App manifests, immutable releases, platform review and runtime contracts. Previous: [Tools](https://appai.info/spec/tools) API base: `https://appai.info`; auth: `Authorization: Bearer appai_sk_YOUR_KEY`. Follow [Authorization & API](https://appai.info/spec/api) for the key, then return here for the release steps. ### Universal apps Full applications built by agents can run on AppAI without becoming part of the AppAI monolith. The app workspace owns UI, API, business rules, schema, migrations, tests, and `appai.app.json`; AppAI owns review, isolated runtime, login, Organization context, app-scoped database, private assets, quota, and monitoring. | Operation | Endpoint | Rule | |-----------|----------|------| | Create package upload | `POST /api/v1/apps/{appId}/release-packages` | Bearer API key; returns a single-use private upload intent. The signed-in Publisher Portal may request the <=4 MiB same-origin server transport; the 20 MiB public limit is unchanged. | | Submit release | `POST /api/v1/apps/{appId}/releases` | Bearer API key; manifest id must match the path; package source is primary | | Open app | `/app/{appId}` | Browser login; AppAI selects the approved deployment and hands off once to `https://{appId}.appai.info` | | Runtime identity | `POST /api/runtime/sessions/introspect` | Opaque runtime bearer; returns only granted context | | Private images/PDFs | `/api/runtime/assets` | Requires the `private-assets` capability | #### Natural release flow 1. **Authorize the agent** through the [device flow](https://appai.info/spec/api#authentication): Show the user verification_uri_complete: open it in the user's own browser if you can, and always print it. Also print the returned `user_code` so the user can compare it with the approval page. The user signs in with Google if asked, checks that the code matches, and clicks Approve. Never approve it yourself. The agent receives the key — nothing to copy or paste. Reuse a key already stored securely when available. 2. **Add `appai.app.json`** at the application root. It declares the id, version, a lockfile-strict install command (`npm ci`, `pnpm install --frozen-lockfile`, or `yarn install --immutable`), safe build/start commands, health path, entry/callback paths, optional migration command, and requested capabilities. The workspace `package.json` must define `test` and `typecheck` scripts. 3. **Package and submit:** create a source-only archive from the exact commit with `git archive --format=tar.gz --output=appai-release.tar.gz HEAD`. Exclude `node_modules`, build output, `.git`, environment files except a values-free `.env.example`, and secrets. Call `POST /api/v1/apps/{appId}/release-packages`, upload the archive privately with its short-lived client token, calculate `sha256:`, then submit `POST /api/v1/apps/{appId}/releases` with `source: { type: "package", uploadId, digest, sizeBytes }`. The signed-in Publisher Portal uses a same-origin server upload for packages <=4 MiB and does not expose Blob transport values; larger packages retain the direct upload flow. The public package limit remains 20 MiB. The manifest `id` must equal `{appId}`. A repository URL is optional provenance metadata, never a requirement. This creates a `PENDING` managed release receipt. 4. **Await platform review:** A `PENDING` receipt means the release has been accepted for AppAI review; it does not start infrastructure work by itself. An AppAI administrator approves the release and starts the managed validation and delivery pipeline. 5. **AppAI manages validation and delivery after approval:** AppAI verifies the immutable package and manifest, installs dependencies, and requires the app's `test`, `typecheck`, and declared build command to pass in an isolated sandbox. It provisions an app-scoped database with separate migration/runtime roles when requested, runs the declared migration command in the migration context, deploys the isolated runtime, performs a health check, and records immutable artifact/deployment evidence. 6. **Poll:** `GET /api/v1/apps/{appId}/releases/{releaseId}` while the release awaits review and then until it is `APPROVED` with an `ACTIVE` production deployment and current health evidence. Only then do users launch `/app/{appId}`; AppAI supplies browser login plus an opaque, short-lived runtime session. #### Copyable database app example Keep source code in the application's workspace and package it for release. For example, an inventory application includes this `appai.app.json` at its package root: ```json { "schemaVersion": 1, "id": "inventory", "name": "Inventory Manager", "version": "1.0.0", "runtime": { "type": "node", "installCommand": "npm ci", "buildCommand": "npm run build", "startCommand": "npm run start", "healthPath": "/api/health", "migrationCommand": "npm run migrate" }, "entryPath": "/app/inventory", "callbackPath": "/api/appai/callback", "capabilities": ["identity", "database"] } ``` Submit declarative release metadata after privately uploading the immutable source package. The package source is primary; do not submit infrastructure credentials or require a public repository: ```bash curl -X POST https://appai.info/api/v1/apps/inventory/releases \ -H "Authorization: Bearer appai_sk_YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{ "manifest": { "schemaVersion": 1, "id": "inventory", "name": "Inventory Manager", "version": "1.0.0", "runtime": { "type": "node", "installCommand": "npm ci", "buildCommand": "npm run build", "startCommand": "npm run start", "healthPath": "/api/health", "migrationCommand": "npm run migrate" }, "entryPath": "/app/inventory", "callbackPath": "/api/appai/callback", "capabilities": ["identity", "database"] }, "tagline": "Track stock across your organization", "description": "A database-backed inventory workflow for teams.", "category": "INVENTORY", "source": { "type": "package", "uploadId": "UPLOAD_ID_FROM_RELEASE_PACKAGES", "digest": "sha256:LOWERCASE_SHA256_OF_ARCHIVE", "sizeBytes": 12345 } }' ``` The accepted response is a receipt such as `{ "appId": "inventory", "releaseId": "...", "version": "1.0.0", "status": "PENDING" }`. Store `releaseId` and poll `GET /api/v1/apps/inventory/releases/{releaseId}`. `PENDING` means the release is awaiting AppAI platform review. After an AppAI administrator starts the managed pipeline, AppAI performs validation, build, database provisioning, migration, deployment, health verification, and activation. Agents never choose a runtime URL, database URL, provider credential, artifact digest, deployment state, or health result. Poll the release until AppAI has activated the verified production deployment. #### Database runtime contract Requesting the `database` capability asks AppAI to provision an app-scoped PostgreSQL schema and deployment-scoped credentials. AppAI injects the server-only runtime `DATABASE_URL` only into the approved isolated runtime; never expose it to browser code or a public environment variable. The app workspace and release package own schema/migrations, while AppAI runs `migrationCommand` with a separate migration role and gives the runtime role only its target-schema DML/sequence permissions. AppAI also injects `APPAI_PLATFORM_URL` and `APPAI_APP_ID`. User and Organization context comes only from the AppAI launch-code exchange/introspection runtime session. Never accept `userId` or `organizationId` in a request body, and never derive either from a public environment variable. #### Required app authentication chrome and logout Every Universal App must treat `/app/{appId}` as the AppAI SSO login gate. After login, AppAI hands the browser off once to the platform-managed `https://{appId}.appai.info` subdomain. The isolated runtime receives a one-time launch code, exchanges it at `POST /api/runtime/sessions/exchange`, then obtains its trusted context from `POST /api/runtime/sessions/introspect`. It must not invent its own browser identity contract. Agents cannot choose a runtime domain. For every protected app screen, provide a conventional responsive top-right app header showing the signed-in user's safe display name or email and the Organization name. If identity display data is unavailable, show a neutral fallback such as “Signed in with AppAI”; never substitute raw IDs. The same header must include a **Return to AppAI** link and a **POST** app logout action. App logout uses the runtime bearer to call `POST /api/runtime/sessions/revoke` with a strict matching `appId`, clears the app's local HttpOnly runtime-session cookie, then routes the browser to `/logout?callbackUrl=/` on AppAI for platform signout. Never render or expose the runtime token, `userId`, `organizationId`, credentials, or database URLs in browser UI or public environment variables. Release submission accepts declarative metadata plus an immutable package. External agents never send `organizationId`, deployment/runtime URL, database credentials, provider/OIDC/CLI credentials, raw SQL, secrets, or artifact digests. AppAI owns the isolated validation/build/migration/deploy/health/ activation sequence. Simpleshop is the first example of this generic contract; it has no special publishing API. All topics: [Overview](https://appai.info/spec) · [Authorization & API](https://appai.info/spec/api) · [Style & logo](https://appai.info/spec/style) · [Theme](https://appai.info/spec/theme) · [Typography](https://appai.info/spec/typography) · [Pages](https://appai.info/spec/pages) · [Sections](https://appai.info/spec/sections) · [Multi-language & multi-page](https://appai.info/spec/i18n) · [Tools](https://appai.info/spec/tools) · [Universal App](https://appai.info/spec/apps) ## Legacy anchors | Legacy heading | New URL | |---|---| | Pick the rung first (30 seconds, before anything else) | https://appai.info/spec#pick-the-rung-first-30-seconds-before-anything-else | | Publish in one minute | https://appai.info/spec#publish-in-one-minute | | Document Guide | https://appai.info/spec#document-guide | | Authentication | https://appai.info/spec/api#authentication | | Where the key goes afterwards | https://appai.info/spec/api#where-the-key-goes-afterwards | | Logo | https://appai.info/spec/style#logo | | Visual Design Capabilities | https://appai.info/spec/theme#visual-design-capabilities | | What You Can Build (read this first) | https://appai.info/spec/pages#what-you-can-build-read-this-first | | Page-Level Configuration | https://appai.info/spec/pages#page-level-configuration | | Directory classification | https://appai.info/spec/pages#directory-classification | | 29 Section Types | https://appai.info/spec/pages#29-section-types | | Auto-Generated Features | https://appai.info/spec/pages#auto-generated-features | | How to Work with the User | https://appai.info/spec/pages#how-to-work-with-the-user | | Your default workflow | https://appai.info/spec/pages#your-default-workflow | | Page shape per intent | https://appai.info/spec/pages#page-shape-per-intent | | Person site recipe | https://appai.info/spec/pages#person-site-recipe | | What to decide yourself (do NOT ask the user) | https://appai.info/spec/pages#what-to-decide-yourself-do-not-ask-the-user | | When to ask the user | https://appai.info/spec/pages#when-to-ask-the-user | | Rules | https://appai.info/spec/pages#rules | | Creating a Page | https://appai.info/spec/pages#creating-a-page | | Compliance Pages | https://appai.info/spec/pages#compliance-pages | | Managing Pages (CRUD) | https://appai.info/spec/pages#managing-pages-crud | | Icons | https://appai.info/spec/sections#icons | | Section Reference | https://appai.info/spec/sections#section-reference | | profile-header | https://appai.info/spec/sections#profile-header | | project-cards | https://appai.info/spec/sections#project-cards | | entries | https://appai.info/spec/sections#entries | | hero | https://appai.info/spec/sections#hero | | video | https://appai.info/spec/sections#video | | features | https://appai.info/spec/sections#features | | screenshots | https://appai.info/spec/sections#screenshots | | download | https://appai.info/spec/sections#download | | pricing | https://appai.info/spec/sections#pricing | | testimonials | https://appai.info/spec/sections#testimonials | | faq | https://appai.info/spec/sections#faq | | gallery | https://appai.info/spec/sections#gallery | | team | https://appai.info/spec/sections#team | | schedule | https://appai.info/spec/sections#schedule | | sponsors | https://appai.info/spec/sections#sponsors | | stats | https://appai.info/spec/sections#stats | | contact | https://appai.info/spec/sections#contact | | cta | https://appai.info/spec/sections#cta | | links | https://appai.info/spec/sections#links | | about | https://appai.info/spec/sections#about | | embed | https://appai.info/spec/sections#embed | | Link rel (SEO) | https://appai.info/spec/sections#link-rel-seo | | Multi-Language (free, automatic) | https://appai.info/spec/i18n#multi-language-free-automatic | | Multi-Page Sites | https://appai.info/spec/i18n#multi-page-sites | | Multi-Language Details | https://appai.info/spec/i18n#multi-language-details | | Multi-Page Site Details | https://appai.info/spec/i18n#multi-page-site-details | | How the site nav is built (automatic) | https://appai.info/spec/i18n#how-the-site-nav-is-built-automatic | | Compliance pages: recommended flags | https://appai.info/spec/i18n#compliance-pages-recommended-flags | | Interactive tools that need a backend, login, or quota | https://appai.info/spec/tools#interactive-tools-that-need-a-backend-login-or-quota | | Identity: what each rung can learn about the visitor | https://appai.info/spec/tools#identity-what-each-rung-can-learn-about-the-visitor | | iframe-tool identity, end to end | https://appai.info/spec/tools#iframe-tool-identity-end-to-end | | action | https://appai.info/spec/tools#action | | form | https://appai.info/spec/tools#form | | media-downloader | https://appai.info/spec/tools#media-downloader | | video-subtitle | https://appai.info/spec/tools#video-subtitle | | tool | https://appai.info/spec/tools#tool | | pdf-viewer | https://appai.info/spec/tools#pdf-viewer | | iframe-tool | https://appai.info/spec/tools#iframe-tool | | simple-order | https://appai.info/spec/tools#simple-order | | Universal apps | https://appai.info/spec/apps#universal-apps | | Natural release flow | https://appai.info/spec/apps#natural-release-flow | | Copyable database app example | https://appai.info/spec/apps#copyable-database-app-example | | Database runtime contract | https://appai.info/spec/apps#database-runtime-contract | | Required app authentication chrome and logout | https://appai.info/spec/apps#required-app-authentication-chrome-and-logout |