@refkit/provider-unsplash
v0.2.1
Published
Unsplash provider satellite for refkit.
Maintainers
Readme
@refkit/provider-unsplash
Search Unsplash photos as license-tagged image references — a provider satellite for refkit (use with @refkit/core).
- Source: Unsplash (unsplash.com)
- Auth: API key —
unsplash({ accessKey: '…' }) - Modality: image
- License: Unsplash license (free to use incl. commercial, no attribution legally required; not redistributable as-is)
Usage
import { createRefkit } from '@refkit/core'
import { unsplash } from '@refkit/provider-unsplash'
const refkit = createRefkit({ providers: [unsplash({ accessKey: process.env.UNSPLASH_KEY! })] })
const refs = await refkit.search({ query: 'forest', modalities: ['image'] })
// every result carries source + license + attribution + canonicalUrlGate by intended use with refkit.evaluateUse(ref, 'commercial-product'). See @refkit/core for the full API.
