Automatically generates a UUID for single-line string fields when a record is created, and keeps the value read-only in the DatoCMS editor.
string fieldsnpm installnpm run devThen add a private plugin in DatoCMS with entry point http://localhost:5173.
Use this plugin on a single-line string field that should act as an immutable identifier, for example external_id or reference_id.
When a user creates a new record:
Duplicating a record counts as a new record, so a fresh UUID is generated even if DatoCMS pre-fills the field from the source record.
npm run devnpm testnpm run buildBefore publishing, add:
docs/cover-1200x800.png — 1200×800 marketplace cover imagedocs/preview.png — marketplace preview image (replace with a short demo video later if you prefer)Then publish to npm:
npm publishThe plugin should appear in the DatoCMS Marketplace within about an hour.
MIT