Stock & Museum Archives
Par refern
ApplicationCréé par refern
Search The Met Open Access, NASA, Unsplash and Pexels, and import original-size images with creator credits. The Met and NASA need no key.
Inclus avec refernVersion 1.0.0
Captures d'écran
À propos
Search open image archives and import the original files into refern, with the creator, the source page and the archive's caption.
| Archive | Key | Imports |
|---|---|---|
| The Met Open Access (CC0) | none | primaryImage |
| NASA Image and Video Library | none | the ~orig file |
| Unsplash | free access key | urls.raw |
| Pexels | free API key | src.original |
Paste the Unsplash or Pexels key on the Extensions page. The key stays in
the operating system's credential store: the plugin sends
{{secret:unsplashAccessKey}} in a header and the host fills it in.
How it works
- Every request goes through
refern.net.fetch, limited to the hosts inmanifest.json. Thumbnails come back as bytes and show fromblob:URLs. - Only
https:images on the archive's own image host are fetched or imported (safeUrlinsrc/providers.ts). - Results already in the workspace show "In library", from
refern.imports.checkOriginswith the sourceplugin:refern.stock-import:v1:<met|nasa|unsplash|pexels>and the archive's id. - Import sends the originals to
refern.imports.enqueueUrlsin small batches, into the folder chosen at the bottom left (or the folder in the dialog's context,{ folderId }). Each item getscreator,sourceUrl,sourceNameand itsimportOrigin; the caption is then set as the item's description. Unsplash's download counter is called before each Unsplash import, as its API terms require. - The Met retired
/v1/searchon 2026-10-01. This plugin uses/v1.1/search(paged byoffsetandlimit) and reads each object from/v1/objects/<id>.
Build
node plugins/stock-import/build.mjs # dist/search.html, .js, .css
Historique des versions
- 1.0.0Nécessite refern 1.13.0 ou ultérieur