@refkit/provider-met 0.1.0 → 0.1.2
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.
- package/README.md +21 -0
- package/package.json +15 -2
package/README.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# @refkit/provider-met
|
|
2
|
+
|
|
3
|
+
Search **The Metropolitan Museum of Art** open-access collection as license-tagged image references — a provider satellite for **refkit** (use with [`@refkit/core`](https://www.npmjs.com/package/@refkit/core)).
|
|
4
|
+
|
|
5
|
+
- **Source:** The Metropolitan Museum of Art ([metmuseum.org](https://www.metmuseum.org))
|
|
6
|
+
- **Auth:** keyless
|
|
7
|
+
- **Modality:** image
|
|
8
|
+
- **License:** CC0 (open-access works only)
|
|
9
|
+
|
|
10
|
+
## Usage
|
|
11
|
+
|
|
12
|
+
```ts
|
|
13
|
+
import { createRefkit } from '@refkit/core'
|
|
14
|
+
import { met } from '@refkit/provider-met'
|
|
15
|
+
|
|
16
|
+
const refkit = createRefkit({ providers: [met()] })
|
|
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,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@refkit/provider-met",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "The Metropolitan Museum of Art 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
|
+
"met-museum",
|
|
14
|
+
"metropolitan-museum",
|
|
15
|
+
"museum",
|
|
16
|
+
"cc0",
|
|
17
|
+
"public-domain",
|
|
18
|
+
"images"
|
|
19
|
+
],
|
|
7
20
|
"main": "./dist/index.js",
|
|
8
21
|
"types": "./dist/index.d.ts",
|
|
9
22
|
"exports": {
|
|
@@ -13,7 +26,7 @@
|
|
|
13
26
|
}
|
|
14
27
|
},
|
|
15
28
|
"dependencies": {
|
|
16
|
-
"@refkit/core": "0.
|
|
29
|
+
"@refkit/core": "0.3.0"
|
|
17
30
|
},
|
|
18
31
|
"files": [
|
|
19
32
|
"dist",
|