@refkit/provider-flickr 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +21 -0
  2. package/package.json +13 -2
package/README.md ADDED
@@ -0,0 +1,21 @@
1
+ # @refkit/provider-flickr
2
+
3
+ Search **Flickr** photos as license-normalized image references — a provider satellite for **refkit** (use with [`@refkit/core`](https://www.npmjs.com/package/@refkit/core)).
4
+
5
+ - **Source:** Flickr ([flickr.com](https://www.flickr.com))
6
+ - **Auth:** API key — `flickr({ apiKey: '…' })`
7
+ - **Modality:** image
8
+ - **License:** per-item Creative Commons / public domain (each photo's declared license is normalized; "no known copyright restrictions" maps to `unknown`, not public domain)
9
+
10
+ ## Usage
11
+
12
+ ```ts
13
+ import { createRefkit } from '@refkit/core'
14
+ import { flickr } from '@refkit/provider-flickr'
15
+
16
+ const refkit = createRefkit({ providers: [flickr({ apiKey: process.env.FLICKR_KEY! })] })
17
+ const refs = await refkit.search({ query: 'lion', modalities: ['image'] })
18
+ // every result carries source + license + attribution + canonicalUrl
19
+ ```
20
+
21
+ Gate by intended use with `refkit.evaluateUse(ref, 'commercial-product')`. See [`@refkit/core`](https://www.npmjs.com/package/@refkit/core) for the full API.
package/package.json CHANGED
@@ -1,9 +1,20 @@
1
1
  {
2
2
  "name": "@refkit/provider-flickr",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Flickr provider satellite for refkit.",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
7
+ "keywords": [
8
+ "refkit",
9
+ "reference-retrieval",
10
+ "license",
11
+ "attribution",
12
+ "refkit-provider",
13
+ "flickr",
14
+ "creative-commons",
15
+ "public-domain",
16
+ "images"
17
+ ],
7
18
  "main": "./dist/index.js",
8
19
  "types": "./dist/index.d.ts",
9
20
  "exports": {
@@ -13,7 +24,7 @@
13
24
  }
14
25
  },
15
26
  "dependencies": {
16
- "@refkit/core": "0.1.0"
27
+ "@refkit/core": "0.2.0"
17
28
  },
18
29
  "files": [
19
30
  "dist",