Browser markup¶
Websites can annotate DOM elements for the Send to Curio browser extension. Annotations supply full-resolution URLs, titles, notes, tags, ratings, custom fields and suggested destinations.
Resolution¶
Send to Curio resolves each attribute by walking upward from the captured element through its DOM ancestors (and across shadow roots). Page-level <meta name="curio:<name>" content="..."> tags provide the outermost fallback.
The nearest attribute wins for each property independently. A gallery card or <article> can set shared tags or metadata while each <img> supplies its own full-resolution data-curio-src.
<head>
<meta name="curio:tags" content='["portfolio","2026"]'>
</head>
<article data-curio-library="Inspiration" data-curio-annotation="Concept art study">
<img
src="/thumbs/forest_400.webp"
data-curio-src="/originals/forest_4k.png"
data-curio-title="Whispering Forest"
data-curio-tags='["environment","lighting"]'
data-curio-rating="5"
>
</article>
Core attributes¶
| Attribute | Accepted value | Limits & behavior |
|---|---|---|
data-curio-src |
URL (resolved relative to the page) | Replaces the element's src as the file or URL to save. Must resolve to http: or https:. |
data-curio-link |
URL (http: or https:) |
Sets the item's source URL (url) instead of the current tab address. |
data-curio-title |
Plain text | Sets the imported item's name (truncated at 200 characters). |
data-curio-annotation |
Plain text | Sets the imported item's notes (truncated at 10,000 characters). |
Metadata¶
| Attribute | Accepted value | Limits & behavior |
|---|---|---|
data-curio-tags |
JSON array ('["a","b"]') or comma-separated string ("a, b") |
Up to 50 tags, merged with destination and site-rule tags. |
data-curio-rating |
Integer string 0 to 5 |
Sets the item's star rating. |
data-curio-fields |
JSON object ('{"artist":"M. Chen"}') |
Populates custom fields that already exist in the target library; Send to Curio ignores unknown field keys. |
Destinations¶
Page destinations require a matching Site rule on quick-save
Send to Curio ignores data-curio-library and data-curio-folders during quick-save unless a matching Site rule enables Use page destination. Without that rule, Send to Curio shows them only as suggestions in the capture panel.
| Attribute | Accepted value | Behavior |
|---|---|---|
data-curio-library |
Library UUID, library name or alias from Extension Options › Library aliases | Suggests the target library. |
data-curio-folders |
JSON array or single value: numeric folder IDs ([12]) or /-separated paths from the root (["Art/Environments"]) |
Suggests target folders. Missing folders are created only when Let pages create folders is enabled in Extension Options and the token holds organize. |
Type & referer¶
| Attribute | Accepted value | Behavior |
|---|---|---|
data-curio-type |
file or link |
Setting link saves the address as a .url bookmark regardless of its MIME type. |
data-curio-referer |
URL on the page's own origin | Overrides the Referer header sent when fetching data-curio-src. |
data-curio-collectable |
Boolean attribute (present) | Marks a non-image element (such as a <div> card or link wrapper) as capturable alongside data-curio-src. |
Shorthand & Eagle¶
data-curioJSON shorthand: Supplies multiple properties in one JSON object (data-curio='{"src":"...","title":"...","tags":["a"]}'). Any explicit attribute (such asdata-curio-title) on the same element overrides the shorthand key.curio-<name>alias: Attributes without thedata-prefix (curio-src,curio-tags) work the same asdata-curio-<name>.- Eagle compatibility: Enabled by default under Extension Options › Read
eagle-*attributes. Where no Curio attribute exists, Send to Curio readseagle-src,eagle-title,eagle-link,eagle-annotation,eagle-tags(comma-separated) andeagle-src-loading(treated asdata-curio-pending).
Async collect¶
Before reading attributes, Send to Curio dispatches a bubbling, composed (composed: true) curio:collect CustomEvent on the target element. Site code can populate attributes on demand inside this listener.
If the listener needs async work (such as fetching an original file URL), set data-curio-pending synchronously and remove it once done. Send to Curio waits up to 3 seconds for data-curio-pending to clear:
document.addEventListener('curio:collect', async (event) => {
const img = event.target.closest('img[data-item-id]')
if (!img || img.dataset.curioSrc) return
img.setAttribute('data-curio-pending', '')
try {
const meta = await fetch(`/api/items/${img.dataset.itemId}`).then((r) => r.json())
img.dataset.curioSrc = meta.originalUrl
img.dataset.curioTitle = meta.title
img.dataset.curioTags = JSON.stringify(meta.tags)
} finally {
img.removeAttribute('data-curio-pending')
}
})
Security¶
Send to Curio treats every DOM attribute as untrusted page input:
- Trusted gestures: Captures run only from real user actions (
event.isTrusted === true). - Local-network blocking: Pages cannot force downloads from loopback or local-network addresses (
127.0.0.1,localhost, LAN IPs) or read files on disk. - Cross-host cookie stripping: When
data-curio-srcpoints to another host, Send to Curio strips browser cookies even if Send the site's cookies with a download is enabled. - Token isolation: Page attributes cannot read the API token, invoke arbitrary operations or write outside libraries allowed by the extension's token.