Stock & Museum Archives

作成者: refern

アプリ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.

refern に付属バージョン 1.0.0

スクリーンショット

概要

Search open image archives and import the original files into refern, with the creator, the source page and the archive's caption.

ArchiveKeyImports
The Met Open Access (CC0)noneprimaryImage
NASA Image and Video Librarynonethe ~orig file
Unsplashfree access keyurls.raw
Pexelsfree API keysrc.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 in manifest.json. Thumbnails come back as bytes and show from blob: URLs.
  • Only https: images on the archive's own image host are fetched or imported (safeUrl in src/providers.ts).
  • Results already in the workspace show "In library", from refern.imports.checkOrigins with the source plugin:refern.stock-import:v1:<met|nasa|unsplash|pexels> and the archive's id.
  • Import sends the originals to refern.imports.enqueueUrls in small batches, into the folder chosen at the bottom left (or the folder in the dialog's context, { folderId }). Each item gets creator, sourceUrl, sourceName and its importOrigin; 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/search on 2026-10-01. This plugin uses /v1.1/search (paged by offset and limit) and reads each object from /v1/objects/<id>.

Build

node plugins/stock-import/build.mjs          # dist/search.html, .js, .css

バージョン履歴

  1. 1.0.0refern 1.13.0 以降が必要