Manifest
manifest.json describes the app. Point $schema at the bundled JSON Schema to get validation and autocomplete in your editor:
{ "$schema": "./node_modules/@crowdin/serverless-apps-sdk/manifest.schema.json", "name": "My App", "scopes": ["project:read"], "modules": { "project-menu": [{ "key": "menu", "name": "My App" }] }}Top-level fields
Section titled “Top-level fields”| Field | Required | Description |
|---|---|---|
name | yes | Human-readable app name (2-255 characters) shown in Crowdin |
scopes | yes | What the in-app API client may do on the user’s behalf - see scopes |
modules | yes | The UI modules the app adds to Crowdin, keyed by module type - see modules |
description | no | App description |
logo | no | Logo path served from the bundle root; a root-relative path beginning with /, e.g. /logo.svg for public/logo.svg |
stringBasedAvailable | no | Whether the app is offered in string-based projects in addition to file-based ones (default false) |
default_permissions | no | Default audience after installation - see default_permissions |
bundle (no longer used)
Section titled “bundle (no longer used)”Not part of the manifest any more. Where Crowdin loads the app from - the uploaded build, or your dev server in development mode - is a setting of the installed app, switched by the CLI’s dev and publish commands; see how dev and publish work. A bundle field left in an older manifest.json is ignored: the CLI no longer reads or writes it, and you can delete it.
scopes
Section titled “scopes”OAuth-style scopes the app may exercise against the Crowdin REST API on behalf of the current user; calls outside these scopes are rejected. An empty array means no API access.
See understanding scopes for the list - e.g. project, project.translation, tm, glossary. Narrow a scope with the :read or :write postfix (e.g. project:read); note that :write does not imply read access.
Crowdin Storage requires the application.storage scope.
manifest validate checks this list against the API calls in src/: a call whose scope is not covered fails the validation with the exact string to add, and a declared scope no call uses is noted. Run it before publish instead of waiting for a 403 inside Crowdin. If it flags a call that is fine, publish --skip-validation sends the manifest anyway.
default_permissions
Section titled “default_permissions”Who the app is available to right after installation (the admin can change it later - see app installation):
| Key | Values | Default |
|---|---|---|
user | owner, managers, all, guests | owner |
project | own, restricted | own |
Modules
Section titled “Modules”Every entry under modules is a list, keyed by module type. The schema enumerates the module types the installed SDK version supports - new types arrive with SDK releases. All modules share three core fields:
| Field | Required | Description |
|---|---|---|
key | yes | Unique within the app (3-255 characters; letters, digits, _, -); disambiguates multiple modules of the same type |
name | yes | Human-readable module name (3-255 characters) |
logo | no | Logo path served from the bundle root, e.g. /logo.svg |
Some module types require extra fields:
| Module type | Extra required fields |
|---|---|
editor-right-panel, editor-translations-panel, editor-background-worker | modes |
editor-asset-panel | fileNamePattern |
context-menu | options |
editor-button | modes, options |
| all other types | none |
Editor modules declare the editor modes and views they appear in - a unique, non-empty subset of:
translate, review, assets, comfortable, side-by-side, multilingual
supportsMultipleStrings
Section titled “supportsMultipleStrings”Optional on editor-right-panel modules, false by default. A panel without it is treated as built around the one active string: the editor covers it while several strings are selected and disables it in multilingual mode opened without target languages. Set "supportsMultipleStrings": true when the panel works with a selection - read it with editor.getSelectedStrings() or the string.selected event.
fileNamePattern
Section titled “fileNamePattern”Asset-panel modules declare which asset files they handle with a wildcard pattern, e.g. "*.psd".
options (context-menu)
Section titled “options (context-menu)”Context-menu entries declare where they appear and what they do (see the context menu module docs for how the entries look in the Crowdin UI):
| Field | Required | Description |
|---|---|---|
location | yes | Which Crowdin context menu the entry is added to: tm, glossary, language, screenshot, style_guide, source_file, translated_file |
type | yes | What activating the entry does: modal opens one of the app’s modal modules, redirect jumps to one of the app’s menu modules |
module | yes | The target module as a single {"<module type>": "<module key>"} pair, e.g. {"modal": "details"}. modal entries always use the modal type; redirect entries use a menu module type allowed for the location: organization-menu (Crowdin Enterprise) or profile-resources-menu (crowdin.com) for tm, glossary and style_guide; project-tools, project-reports, project-menu or project-integrations for the rest |
options (editor-button)
Section titled “options (editor-button)”Editor buttons are rendered by Crowdin itself, so the bundle registers no prepare* function for them - only for the module a button targets. Each button declares where it appears and what it does (see the editor button module docs for how the buttons look in the editor):
| Field | Required | Description |
|---|---|---|
location | yes | Where the button appears: header-right or header-left (the editor header), menu (the editor’s Apps menu), translation-toolbar, or strings-menu (the strings context menu) |
type | yes | What activating the button does: panel opens an editor-right-panel module, modal opens a modal module, event sends an editor.button.click event to an editor-right-panel or editor-background-worker module. event is available at translation-toolbar and strings-menu only |
module | yes | Key of the target module, e.g. "panel" - a plain key, not the {"<module type>": "<module key>"} pair context-menu uses |
weight | no | Non-negative integer that orders the buttons at one location; lower weights come first (default 100) |
A button’s own key must differ from the keys of the app’s editor-right-panel, editor-background-worker and modal modules. The editor hides a button wherever its target is unavailable - for example, in an editor mode the target’s modes leave out. manifest validate checks the fields above, that the button’s key is free, and that module names a module of the type type targets - the same rules Crowdin applies on push. A panel that receives strings-menu clicks acts on several strings, so give it supportsMultipleStrings - without it the editor covers the panel while those strings are selected, even though the click still arrives.
Example with several module types
Section titled “Example with several module types”{ "$schema": "./node_modules/@crowdin/serverless-apps-sdk/manifest.schema.json", "name": "My App", "description": "Editor panel with a header button, and a TM context menu", "logo": "/logo.svg", "scopes": ["project:read", "tm:read"], "modules": { "editor-right-panel": [ { "key": "panel", "name": "My Panel", "modes": ["translate", "review"] } ], "editor-button": [ { "key": "open-panel", "name": "Open My Panel", "modes": ["translate", "review"], "options": { "location": "header-right", "type": "panel", "module": "panel" } } ], "modal": [{ "key": "details", "name": "Details" }], "context-menu": [ { "key": "tm-action", "name": "Open in My App", "options": { "location": "tm", "type": "modal", "module": { "modal": "details" } } } ] }}Checking the manifest
Section titled “Checking the manifest”manifest validate checks the local file against the same schema, without contacting Crowdin:
crowdin-serverless-apps manifest validateIt needs no login and no app link, exits with code 1 when the manifest is invalid, and reports each problem with the path to fix. Crowdin still validates server-side when the app file is uploaded; this is the fast local check. Keep $schema in the file so your editor flags mistakes as you type.
Sending the manifest to Crowdin
Section titled “Sending the manifest to Crowdin”The manifest reaches Crowdin inside the app file, together with the build: publish sends it every time, and dev sends it on start and whenever you save the file. Your manifest.json is the source - the CLI never rewrites it.