Skip to main content
These tools predate the current Ditto CLI (5.x), the MCP server, and scan. They keep working for teams that adopted them, but new integrations should start with Scan your repo.

Legacy CLI mode

Version 5.x of the Ditto CLI pulls text from the current version of Ditto by default and still supports every 4.x feature behind the --legacy flag. Add the flag to any command that v4.5.2 supported:
To use legacy and current features in the same repo, keep two config files and point at the legacy one with -c:
Full reference: Legacy CLI installation, configuration, and files. Legacy API endpoints: Legacy API reference.

Ditto React SDK

ditto-react is a React and React Native library that reads the JSON string files written by the CLI and exposes them through a provider and hooks, with first-class support for variants. It works with all JSON output formats. Installation and usage are in the package README on npm. Issues go to dittowords/ditto-react. The library’s last release was 1.6.3; new React projects can use the CLI’s i18next output with react-i18next instead, which needs no Ditto-specific runtime dependency.

Legacy webhook events

These events are only available on legacy webhooks, which are connected directly to the legacy component library; if you joined Ditto after March 2025, you probably aren’t looking for these.

Component Creation

Emitted any time a component is created in Ditto.

Component Deletion

Emitted any time a component is deleted in Ditto.

Component Text Change

Emitted any time a component’s base text is changed in Ditto. Does not emit when variant text, plural text, or rich text styling is changed.

Component Status Change

Emitted any time a component’s status is changed in Ditto.

Component ID Change

Emitted any time a component’s developer ID is changed in Ditto.

Test Event

Emitted when sending a test request while creating a webhook.