Skip to content

How dev and publish work

A serverless app reaches Crowdin as one app file, <app-slug>.crowdinapp: the manifest and the build together. The CLI packs it and sends it - the manifest never travels without the build, and the build never travels without the manifest.

Where Crowdin loads the app from is a setting of the installed app, not a field of the manifest. The app either runs the build from its app file, or it is in development mode and Crowdin loads it from a URL - your dev server.

The two CLI commands move the app between the two:

  • dev offers to turn development mode on and point your app at http://localhost:<port>/, so everything you edit shows up inside Crowdin instantly, hot module replacement included. It also keeps the manifest in Crowdin up to date while it runs.
  • publish builds the app, uploads its app file, and offers to turn development mode off, so Crowdin serves the version you just published.

Neither command changes your manifest.json. Pass --yes to apply without prompts (e.g. in scripts). --no-manifest-sync makes dev leave the app in Crowdin alone, and makes publish upload the app file without touching development mode.

build packs the app file as dist/<app-slug>.crowdinapp, named after the app (Projects Dashboard becomes projects-dashboard.crowdinapp). It is a zip archive with manifest.json at the root, next to app.js and the rest of the build - translation catalogs, the logo, other static assets.

Crowdin takes app files up to 5 MB, and the file must contain a non-empty app.js.

The app file never carries a development URL: development mode belongs to the installed app, so Crowdin ignores a bundle field in the file’s manifest, and the CLI leaves that field out when it packs.

manifest.json lives in your repository, and Crowdin keeps the copy that came with the last app file. There is no separate step for the manifest:

  • publish sends it with every build.
  • dev compares it with Crowdin’s copy when it starts and, if they differ, builds an app file and sends it. While dev runs, saving manifest.json does the same. A manifest that fails manifest validate is not sent: dev prints the problems and keeps running. Started with --skip-validation, dev sends it anyway and Crowdin decides.

The builds dev makes for this go to a temporary folder, not to dist/.

To check the file without contacting Crowdin, run manifest validate: it tests manifest.json against the schema, offline, and exits with code 1 when it is invalid. See the manifest reference for what the file contains.

The Crowdin host always loads <bundle-url>/app.js. The CLI’s build produces exactly that: a single dist/app.js (an IIFE bundle with CSS injected by JS), plus runtime assets such as translation catalogs under dist/locales/. During dev, the same contract is preserved - the dev server serves a generated app.js that enables hot module replacement inside the Crowdin iframe.

Publishing changes where the app is loaded from - it does not widen the audience. The app is registered and installed in your account when create runs - dev and publish only link a project to an app that already exists - and stays private to it until you submit it to the Crowdin Store or share its app file - serverless apps can be listed on the store and installed from it like any other Crowdin app.

In each account where the app is installed, who sees it is governed by the manifest’s default_permissions (defaults: user: owner, project: own) and by the installed app’s settings, where an admin can change the audience later - e.g. open the app to managers or all project members.

To let teammates work on the app itself, share the repository: .env (the app link) is not committed, so they run login and link once (the CLI relinks by the manifest name only the apps you installed yourself) - see the .env file. To remove an app you no longer need, uninstall it from the apps settings in Crowdin.

To install the app in another Crowdin account or organization without the Crowdin Store, hand over its app file. An admin uploads it under Install Private App in the apps settings, and Crowdin installs the app together with its build in one step. To update that installation later, they upload a newer app file with Update file in the app’s settings.

Crowdin installs and updates a serverless app from its app file only. If all you have is a manifest.json and a bundle.zip from an earlier version of the CLI, turn them into an app file in one of two ways:

  • With the CLI. Update it (npm install --global @crowdin/serverless-apps-cli@latest, or pnpm up @crowdin/serverless-apps-cli in the app’s folder), then run crowdin-serverless-apps build there. The app file is dist/<app-slug>.crowdinapp.

  • By hand. Put manifest.json into the root of the bundle archive, next to app.js, and rename the archive to <name>.crowdinapp:

    Terminal window
    cp bundle.zip my-app.crowdinapp
    zip my-app.crowdinapp manifest.json

A bundle field left in that manifest.json does no harm - Crowdin ignores it.