all-the-public-replicate-models 1.195.0 → 1.196.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "all-the-public-replicate-models",
3
3
  "description": "Metadata for all the public models on Replicate, bundled up into an npm package",
4
- "version": "1.195.0",
4
+ "version": "1.196.0",
5
5
  "devDependencies": {
6
6
  "chai": "^4.3.10",
7
7
  "lodash-es": "^4.17.21",
package/script/stats.js CHANGED
@@ -73,6 +73,43 @@ async function compareAndGenerateMD() {
73
73
  markdownContent += 'No active models today.\n';
74
74
  }
75
75
 
76
+ // Top Model Authors
77
+ markdownContent += '\n## Top Model Authors by Run Count\n';
78
+ const modelsByOwner = newModels.reduce((acc, model) => {
79
+ if (!acc[model.owner]) {
80
+ acc[model.owner] = [];
81
+ }
82
+ acc[model.owner].push(model);
83
+ return acc;
84
+ }, {});
85
+
86
+ const topAuthors = Object.entries(modelsByOwner).map(([owner, models]) => ({
87
+ owner,
88
+ modelCount: models.length,
89
+ totalRuns: models.reduce((sum, model) => sum + model.run_count, 0),
90
+ })).sort((a, b) => b.totalRuns - a.totalRuns).slice(0, 30);
91
+
92
+
93
+ markdownContent += '| Author | Models | Total Runs |\n|--------|--------|------------|\n';
94
+ for (const author of topAuthors) {
95
+ const ownerUrl = `https://replicate.com/${author.owner}`;
96
+ markdownContent += `| [${author.owner}](${ownerUrl}) | ${author.modelCount} | ${author.totalRuns} |\n`;
97
+ }
98
+
99
+
100
+ // Top Model Authors by Model Count
101
+ markdownContent += '\n## Top Model Authors by Model Count\n';
102
+ const authorsByModelCount = Object.entries(modelsByOwner).map(([owner, models]) => ({
103
+ owner,
104
+ modelCount: models.length,
105
+ })).sort((a, b) => b.modelCount - a.modelCount).slice(0, 30);
106
+
107
+ markdownContent += '| Author | Model Count |\n|--------|-------------|\n';
108
+ for (const author of authorsByModelCount) {
109
+ const ownerUrl = `https://replicate.com/${author.owner}`;
110
+ markdownContent += `| [${author.owner}](${ownerUrl}) | ${author.modelCount} |\n`;
111
+ }
112
+
76
113
  // Write to stats.md
77
114
  await fs.writeFile('stats.md', markdownContent);
78
115
  }