Installation
Before installing the Crowdin Apps SDK, make sure you have Node.js 20.11 or higher installed on your machine. You can download the latest version of Node.js from the official website.
Requirements
Section titled “Requirements”- Node.js: Version 20.11 or higher (the code samples in this documentation use
import.meta.dirname, available since Node.js 20.11) - Express: The module uses Express 5 for improved performance and modern features
Then, you can install the Crowdin Apps SDK using one of the following package managers:
npm i @crowdin/app-project-modulepnpm add @crowdin/app-project-moduleyarn add @crowdin/app-project-moduleProject Setup
Section titled “Project Setup”All code samples in this documentation use ES modules (import) syntax. Pick the tab that matches your project language:
Enable ES modules in your package.json:
{ "name": "my-crowdin-app", "type": "module", "scripts": { "start": "node index.js" }}Install TypeScript and the type definitions:
npm i -D typescript @types/node @types/expresspnpm add -D typescript @types/node @types/expressyarn add -D typescript @types/node @types/expressUse a modern Node.js TypeScript configuration:
{ "compilerOptions": { "module": "nodenext", "moduleResolution": "nodenext", "target": "es2022", "strict": true, "skipLibCheck": true, "outDir": "dist" }, "include": ["src"]}And enable ES modules in your package.json:
{ "name": "my-crowdin-app", "type": "module", "scripts": { "build": "tsc", "start": "node dist/index.js" }}Supported import paths
Section titled “Supported import paths”Use only publicly documented import subpaths. Avoid internal paths such as @crowdin/app-project-module/out/*, because those are implementation details and may change without notice.
@crowdin/app-project-module— main app entrypoint, includes all necessary types@crowdin/app-project-module/util— shared utility helpers@crowdin/app-project-module/functions/*— app helper functions, tokens, and Crowdin API helpers@crowdin/app-project-module/modules/*— module-specific types and helper definitions@crowdin/app-project-module/middlewares— built-in middleware helpers@crowdin/app-project-module/test— app testing utilities