all-the-public-replicate-models 1.0.0 → 1.1.0

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 CHANGED
@@ -1,8 +1,6 @@
1
1
  # all-the-public-replicate-models
2
2
 
3
- An offline database of metadata for all the public models on Replicate
4
-
5
- It's all stuffed in a JSON file that's about 17MB.
3
+ Metadata for all the public models on Replicate, bundled up into an npm package.
6
4
 
7
5
  ## Installation
8
6
 
@@ -12,7 +10,7 @@ npm install all-the-public-replicate-models
12
10
 
13
11
  ## Usage
14
12
 
15
- Basic usage:
13
+ Full-bodied usage (all the metadata, ~17MB)
16
14
 
17
15
  ```js
18
16
  import models from 'all-the-public-replicate-models'
@@ -20,6 +18,14 @@ import models from 'all-the-public-replicate-models'
20
18
  console.log(models)
21
19
  ```
22
20
 
21
+ Lite usage (just the basic metadata, ~375K):
22
+
23
+ ```js
24
+ import models from 'all-the-public-replicate-models/lite'
25
+
26
+ console.log(models)
27
+ ```
28
+
23
29
  Find the top 10 models by run count:
24
30
 
25
31
  ```js
package/lite.mjs ADDED
@@ -0,0 +1,3 @@
1
+ import models from './models-lite.json' assert { type: "json" };
2
+
3
+ export default models;