Manifest
The manifest tells Ghost your app’s name, description, icon, who made it, where it wants to appear, and the scopes it needs. You write it as ghost-app.json, in your app’s folder:
{ "id": "com.example.podcast", "name": "Podcast", "description": "Publish episodes and embed players.", "author": { "name": "Example Audio", "url": "https://example.com" }, "accent_color": "#ff5500", "icon": { "name": "audio-lines" }, "surfaces": [{ "type": "admin_page", "url": "/admin" }], "scopes": ["post:browse", "post:edit"]}Your app serves it signed, at a fixed URL such as /ghost-app.json. Ghost installs only a signed manifest (see Signing).
Fields
All these fields are required:
| Field | What it is |
|---|---|
id |
Your App ID, lowercase and in reverse-domain format, such as com.example.podcast. Changing it makes it a different app. |
name |
Up to 50 characters. |
description |
Up to 200 characters. |
author |
Your name (up to 50 characters) and a url where people get support: A full web address, such as https://example.com/support, or a mailto: link to one email address, such as mailto:support@example.com. Ghost Admin links to it below your app’s page, and as Contact support when your app is unavailable or not responding. |
accent_color |
A six-digit hex color, such as #ff5500. |
icon |
{ "name": "…" } for an icon Ghost Admin ships, or { "url": "/icon.svg" } for your own SVG. |
surfaces |
Where the app appears. Only admin_page exists today, and a manifest has exactly one. See Extension surfaces. |
scopes |
The scopes your app needs, as a list of permission keys such as post:browse. [] asks for nothing. See Access. |
The name, description, and author’s name are each one line of plain text: Letters, numbers, punctuation, symbols, emoji, and spaces. Ghost trims spaces and other characters that show nothing from both ends, and refuses a field with nothing visible left.
Signing adds four more. Leave them out of ghost-app.json:
| Field | What it is |
|---|---|
manifest_url |
The address this signed manifest is served from. |
identity_key |
The public half of your app’s identity key, which says who made the app. |
backend_key |
The public half of your app’s backend key, which your server proves it holds. |
development |
true for an app on your own computer, which Ghost Admin labels as one. |
Ghost rejects anything in the manifest it doesn’t recognize, and tells you which part is wrong.
Name, icon, and color
- Keep the name short, since it shows in the sidebar
- Pick one of the icons Ghost Admin already uses, or provide your own
- Your accent color sits behind your icon, so choose one that contrasts with it
Signing
Your identity key signs the manifest, to prove it comes from you, and your app’s server answers Ghost’s challenge with the backend key the manifest names. App identity explains both keys and the challenge.
The app SDK does the work:
- Its Vite plugin,
ghostApp()from@tryghost/app-sdk/vite, signsghost-app.jsonasvite devserves it and asvite buildbuilds it. Ghost’s examples already use it. handleChallenge()from@tryghost/app-sdk/backendanswers the challenge on your server.- The
ghost-appcommand creates keys and signs manifests outside Vite, such asghost-app sign --url <manifest URL>.
Signing checks these fields against Ghost’s rules and lists errors at the manifest’s address or when you run pnpm exec ghost-app sign --url <manifest URL>.
URLs
URLs in the manifest are relative, like /admin. Ghost works them out from manifest_url, so every page Ghost loads comes from the same address as the manifest. The author’s url is the exception, as Ghost only links to it: Give a full address or a mailto: link.
Each address needs its own signed manifest (see The signed manifest).
URLs must start with https, unless Ghost runs in development mode on your computer.
Changing it
Ghost checks your manifest each time someone opens your app.
- Small changes apply right away: The description, the accent color, which of Ghost’s icons you use, or a new backend key.
- A removed scope applies right away (see Changing scopes)
- Everything else needs approval: A new name, your own icon, different surfaces, a new address, or a new scope. Ghost Admin marks the app Needs approval, and it doesn’t open until someone on the site approves the change, so people know what they’re running.
- A new identity key makes it a different app: Ghost refuses it. To use one, uninstall the app and install it again (see App identity).