{"id":13695209,"url":"https://github.com/replicate/all-the-public-replicate-models","last_synced_at":"2025-04-26T11:56:22.906Z","repository":{"id":198145305,"uuid":"700159623","full_name":"replicate/all-the-public-replicate-models","owner":"replicate","description":"📦 Metadata for all the public models on Replicate, bundled up into an npm package.","archived":false,"fork":false,"pushed_at":"2025-04-26T00:08:32.000Z","size":369236,"stargazers_count":36,"open_issues_count":1,"forks_count":5,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-04-26T10:00:01.494Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://replicate.com/docs/reference/http#models.list","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/replicate.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-10-04T04:08:12.000Z","updated_at":"2025-04-26T00:08:36.000Z","dependencies_parsed_at":"2024-01-16T01:34:41.652Z","dependency_job_id":"91446ea5-0756-417e-b642-1501b447cf8c","html_url":"https://github.com/replicate/all-the-public-replicate-models","commit_stats":null,"previous_names":["zeke/all-the-public-replicate-models","replicate/all-the-public-replicate-models"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/replicate%2Fall-the-public-replicate-models","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/replicate%2Fall-the-public-replicate-models/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/replicate%2Fall-the-public-replicate-models/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/replicate%2Fall-the-public-replicate-models/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/replicate","download_url":"https://codeload.github.com/replicate/all-the-public-replicate-models/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250968878,"owners_count":21515681,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T18:00:19.634Z","updated_at":"2025-04-26T11:56:22.885Z","avatar_url":"https://github.com/replicate.png","language":"JavaScript","funding_links":[],"categories":["Open-source tools"],"sub_categories":[],"readme":"# all-the-public-replicate-models\n\nMetadata for all[^1] the public models on Replicate, bundled up into an npm package.\n\nThis package also includes [historical daily run counts](#stats) for each model, which are updated daily.\n\n## Installation\n\n```sh\nnpm install all-the-public-replicate-models\n```\n\n## Usage (as a library)\n\nFull-bodied usage (all the metadata, ~17MB)\n\n```js\nimport models from 'all-the-public-replicate-models'\n\nconsole.log(models)\n```\n\nLite usage (just the basic metadata, ~375K):\n\n```js\nimport models from 'all-the-public-replicate-models/lite'\n\nconsole.log(models)\n```\n\nFind the top 10 models by run count:\n\n```js\nimport models from 'all-the-public-replicate-models'\nimport {chain} from 'lodash-es'\n\nconst mostRun = chain(models).orderBy('run_count', 'desc').take(10).value()\nconsole.log({mostRun})\n```\n\n## Stats\n\nThis package also includes historical daily run counts for each model, which are updated daily.\n\n```js\nimport stats from 'all-the-public-replicate-models/stats'\n\nconsole.log(stats[\"black-forest-labs/flux-schnell\"].slice(-5))\n\n/*\n[\n  { date: '2025-01-03', totalRuns: 176951005, dailyRuns: 1071498 },\n  { date: '2025-01-04', totalRuns: 178025758, dailyRuns: 1074753 },\n  { date: '2025-01-05', totalRuns: 179119496, dailyRuns: 1093738 },\n  { date: '2025-01-06', totalRuns: 180272877, dailyRuns: 1153381 },\n  { date: '2025-01-07', totalRuns: 181445133, dailyRuns: 1172256 }\n]\n*/\n```\n\nSee [example.js](example.js) for a code snippet that uses the stats.\n\n## Usage (as a CLI)\n\nThe CLI dumps the model metadata to standard output as a big JSON object:\n\n```command\n$ npx all-the-public-replicate-models\n```\n\nThe output will be:\n\n```\n[\n  {...},\n  {...},\n  {...},\n]\n```\n\nYou can use [jq](https://stedolan.github.io/jq/) to filter the output. Here's an example that finds all the whisper models and sorts them by run count:\n\n```command\nnpx all-the-public-replicate-models | jq -r 'map(select(.name | contains(\"whisper\"))) | sort_by(.run_count) | reverse | .[] | \"\\(.url) \\(.run_count)\"'\n```\n\n- https://replicate.com/openai/whisper 3790120\n- https://replicate.com/m1guelpf/whisper-subtitles 38020\n- https://replicate.com/hnesk/whisper-wordtimestamps 28889\n- https://replicate.com/alqasemy2020/whisper-jax 20296\n- https://replicate.com/wglodell/cog-whisperx-withprompt 19326\n- https://replicate.com/daanelson/whisperx 15528\n...\n\n\nOr you can dump all the model data to a file:\n\n```command\nnpx all-the-public-replicate-models \u003e models.json\n```\n\n[^1]: Technically it's not _all_ the models, but every model that is public, has at least one published version, and has at least one example prediction.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freplicate%2Fall-the-public-replicate-models","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freplicate%2Fall-the-public-replicate-models","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freplicate%2Fall-the-public-replicate-models/lists"}