
A DatoCMS plugin for Raster, a digital asset manager. Browse, search and upload Raster assets from a record, and pick them into a JSON field.
Built on @raster-app/react, Raster's
drop-in picker. See the SDK docs.

The plugin's settings are optional:
raster.app/ in its URL. With it
set, editors can only sign in to that organization.The first time an editor clicks Browse Raster in a Raster field, the picker asks them to sign in. Sign in opens Raster in a new tab, where they approve the connection; the field then shows their libraries. The session is remembered in that browser.
If an admin saved an API key, editors skip this step.
The saved key is stored in the plugin's settings. DatoCMS hands plugin settings to every collaborator who loads the plugin, so anyone who can edit a record with a Raster field can read the key. Use a key with Read access to only the libraries the project needs.
The field stores a JSON array, one entry per asset:
[ { "id": "…", "blurhash": "…", "sizes": "{\"400\":\"https://…\",\"1080\":\"https://…\"}", "url": "https://…", "name": "hero.jpg", "height": 2000, "width": 3000, "views": [], "description": null, "contentType": "image/jpeg" }]url is the full-size file on Raster's CDN; sizes is a JSON string of smaller sizes by their
longest edge; views are the asset's variants; contentType tells a video from an image. Assets
picked with 0.x have no contentType, and stored videos with null dimensions.
Upgrade the plugin in Configuration > Plugins. Your Organization ID, API key and records carry over. See the changelog for what changed.
See CONTRIBUTING.md.
MIT