{"id":13530387,"url":"https://github.com/silverwind/updates","last_synced_at":"2026-04-28T23:00:48.143Z","repository":{"id":41344803,"uuid":"112921626","full_name":"silverwind/updates","owner":"silverwind","description":"CLI tool to update npm, uv, cargo, go and actions dependencies","archived":false,"fork":false,"pushed_at":"2026-04-25T22:43:23.000Z","size":13846,"stargazers_count":106,"open_issues_count":3,"forks_count":9,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-04-26T00:36:28.785Z","etag":null,"topics":["bun","cargo","dependabot","dependencies","dependency-management","dependency-manager","go-dependencies","golang","npm","npm-check-updates","package-json","renovate","uv","uv-dependencies"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/silverwind.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2017-12-03T11:18:57.000Z","updated_at":"2026-04-25T22:43:14.000Z","dependencies_parsed_at":"2026-02-06T16:13:21.523Z","dependency_job_id":null,"html_url":"https://github.com/silverwind/updates","commit_stats":{"total_commits":997,"total_committers":6,"mean_commits":"166.16666666666666","dds":0.007021063189568744,"last_synced_commit":"5b6745eff9ea7c8dc3945b6058de77693b3d3455"},"previous_names":[],"tags_count":362,"template":false,"template_full_name":null,"purl":"pkg:github/silverwind/updates","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silverwind%2Fupdates","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silverwind%2Fupdates/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silverwind%2Fupdates/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silverwind%2Fupdates/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/silverwind","download_url":"https://codeload.github.com/silverwind/updates/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silverwind%2Fupdates/sbom","scorecard":{"id":480621,"data":{"date":"2025-08-11","repo":{"name":"github.com/silverwind/updates","commit":"f0363675d7051ef844c890554016464d11a595cd"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.yaml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":10,"reason":"30 commit(s) and 2 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: BSD 2-Clause \"Simplified\" License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yaml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/silverwind/updates/ci.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yaml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/silverwind/updates/ci.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yaml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/silverwind/updates/ci.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yaml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/silverwind/updates/ci.yaml/master?enable=pin","Info:   0 out of   3 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-19T16:31:08.217Z","repository_id":41344803,"created_at":"2025-08-19T16:31:08.217Z","updated_at":"2025-08-19T16:31:08.217Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32296157,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T09:34:17.070Z","status":"ssl_error","status_checked_at":"2026-04-26T09:34:00.993Z","response_time":129,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["bun","cargo","dependabot","dependencies","dependency-management","dependency-manager","go-dependencies","golang","npm","npm-check-updates","package-json","renovate","uv","uv-dependencies"],"created_at":"2024-08-01T07:00:49.141Z","updated_at":"2026-04-28T23:00:48.100Z","avatar_url":"https://github.com/silverwind.png","language":"TypeScript","funding_links":[],"categories":["Development","JavaScript","TypeScript"],"sub_categories":["Npm"],"readme":"# updates\n[![](https://img.shields.io/npm/v/updates.svg?style=flat)](https://www.npmjs.org/package/updates) [![](https://img.shields.io/npm/dm/updates.svg)](https://www.npmjs.org/package/updates) [![](https://packagephobia.com/badge?p=updates)](https://packagephobia.com/result?p=updates) [![](https://depx.co/api/badge/updates)](https://depx.co/pkg/updates)\n\n![](./screenshot.png)\n\n`updates` is a CLI tool which checks for dependency updates. It is typically able to complete in less than a second.\n\n## Supported files\n\n- `package.json`, `pnpm-workspace.yaml` - npm dependencies\n- `pyproject.toml` - uv dependencies\n- `go.mod`, `go.work` - go dependencies\n- `Cargo.toml` - rust dependencies, including workspaces\n- `.{github,gitea,forgejo}/workflows` - actions and docker images\n- `Dockerfile*`, `docker-*.{yml,yaml}` - docker images\n\n## Usage\n\n```bash\n# check for updates\nnpx updates\n\n# update package.json and install new dependencies\nnpx updates -u \u0026\u0026 npm i\n```\n\n## Options\n\n|Option|Description|\n|:-|:-|\n|`-u, --update`|Update versions and write dependency file|\n|`-f, --file \u003cpath,...\u003e`|File or directory to use, defaults to current directory|\n|`-M, --modes \u003cmode,...\u003e`|Which modes to enable. Either `npm`, `pypi`, `go`, `cargo`, `actions`, `docker`. Default: `npm,pypi,go,cargo,actions,docker`|\n|`-i, --include \u003cdep,...\u003e`|Include only given dependencies|\n|`-e, --exclude \u003cdep,...\u003e`|Exclude given dependencies|\n|`-l, --pin \u003cdep=range\u003e`|Pin dependency to given semver range|\n|`-C, --cooldown \u003cduration\u003e`|Minimum dependency age, e.g. `7` (days), `1w`, `2d`, `6h`|\n|`-p, --prerelease [\u003cdep,...\u003e]`|Consider prerelease versions|\n|`-R, --release [\u003cdep,...\u003e]`|Only use release versions, may downgrade|\n|`-g, --greatest [\u003cdep,...\u003e]`|Prefer greatest over latest version|\n|`-t, --types \u003ctype,...\u003e`|Dependency types to update|\n|`-P, --patch [\u003cdep,...\u003e]`|Consider only up to semver-patch|\n|`-m, --minor [\u003cdep,...\u003e]`|Consider only up to semver-minor|\n|`-d, --allow-downgrade [\u003cdep,...\u003e]`|Allow version downgrades when using latest version|\n|`-S, --sockets \u003cnum\u003e`|Maximum number of parallel HTTP sockets opened. Default: 96|\n|`-T, --timeout \u003cms\u003e`|Network request timeout in ms (go probes use half). Default: 5000|\n|`-r, --registry \u003curl\u003e`|Override npm registry URL|\n|`-I, --indirect`|Include indirect Go dependencies|\n|`-E, --error-on-outdated`|Exit with code 2 when updates are available and 0 when not|\n|`-U, --error-on-unchanged`|Exit with code 0 when updates are available and 2 when not|\n|`-j, --json`|Output a JSON object|\n|`-x, --no-cache`|Disable HTTP cache|\n|`-n, --no-color`|Disable color output|\n|`-v, --version`|Print the version|\n|`-V, --verbose`|Print verbose output to stderr|\n|`-h, --help`|Print the help|\n\nOptions that take multiple arguments can take them either via comma-separated value or by specifying the option multiple times. If an option has a optional `dep` argument but none is given, the option will be applied to all dependencies instead. All `dep` options support glob matching via `*` or regex (on CLI, wrap the regex in slashes, e.g. `'/^foo/'`).\n\n## Config File\n\nThe module can be configured with `updates.config.{ts,js,mjs,mts}` in your repo root.\n\n```ts\nimport type {Config} from \"updates\";\n\nexport default {\n  exclude: [\n    \"semver\",\n    \"@vitejs/*\",\n    /^react(-dom)?$/,\n  ],\n  pin: {\n    \"typescript\": \"^5.0.0\",\n  },\n} satisfies Config;\n```\n\n### Config Options\n\n- `include` *Array\\\u003cstring | RegExp\u003e*: Array of dependencies to include\n- `exclude` *Array\\\u003cstring | RegExp\u003e*: Array of dependencies to exclude\n- `types` *Array\\\u003cstring\u003e*: Array of dependency types to use\n- `registry` *string*: URL to npm registry\n- `cooldown` *number | string*: Minimum dependency age, e.g. `7` (days), `\"1w\"`, `\"2d\"`, `\"6h\"`\n- `pin` *Record\\\u003cstring, string\u003e*: Pin dependencies to semver ranges\n- `files` *Array\\\u003cstring\u003e*: File or directory paths to use\n- `modes` *Array\\\u003cstring\u003e*: Which modes to enable\n- `greatest` *boolean | Array\\\u003cstring | RegExp\u003e*: Prefer greatest over latest version\n- `prerelease` *boolean | Array\\\u003cstring | RegExp\u003e*: Consider prerelease versions\n- `release` *boolean | Array\\\u003cstring | RegExp\u003e*: Only use release versions\n- `patch` *boolean | Array\\\u003cstring | RegExp\u003e*: Consider only up to semver-patch\n- `minor` *boolean | Array\\\u003cstring | RegExp\u003e*: Consider only up to semver-minor\n- `allowDowngrade` *boolean | Array\\\u003cstring | RegExp\u003e*: Allow version downgrades\n- `inherit` *object*: Opt-in to inheriting select fields from other tools' configs (see [Renovate config](#renovate-config))\n\nCLI arguments have precedence over options in the config file. `include`, `exclude`, and `pin` options are merged.\n\n### Renovate config\n\nIf a [Renovate](https://docs.renovatebot.com/) config is found, `ignoreDeps` and simple `packageRules` are inherited as `exclude`/`pin`. `minimumReleaseAge` is *not* inherited as `cooldown` by default — opt in via:\n\n```ts\nexport default {\n  inherit: {\n    renovate: {cooldown: true},\n  },\n} satisfies Config;\n```\n\nValues in `updates.config` override anything inherited.\n\n## API\n\n`updates` can be used as a library:\n\n```ts\nimport {updates} from \"updates\";\n\nconst output = await updates({\n  files: [\"package.json\"],\n  include: [/^react/],\n  modes: [\"npm\"],\n});\n//=\u003e {\n//=\u003e   \"results\": {\n//=\u003e     \"npm\": {\n//=\u003e       \"dependencies\": {\n//=\u003e         \"react\": {\n//=\u003e           \"old\": \"18.0.0\",\n//=\u003e           \"new\": \"19.2.0\",\n//=\u003e           \"info\": \"https://github.com/facebook/react\",\n//=\u003e           \"age\": \"2 days\"\n//=\u003e         }\n//=\u003e       }\n//=\u003e     }\n//=\u003e   }\n//=\u003e }\n```\n\nThe `updates()` function accepts all [config options](#config-options).\n\n## Environment Variables\n\n|Variable|Description|\n|:-|:-|\n|`UPDATES_FORGE_TOKENS`|Comma-separated list of `host:token` pairs for authenticating against forge APIs (e.g. `github.com:ghp_xxx,gitea.example.com:tok_xxx`)|\n|`UPDATES_GITHUB_API_TOKEN`|GitHub API token for authenticating forge API requests|\n|`GITHUB_API_TOKEN`|Fallback GitHub API token|\n|`GH_TOKEN`|Fallback GitHub API token|\n|`GITHUB_TOKEN`|Fallback GitHub API token|\n|`HOMEBREW_GITHUB_API_TOKEN`|Fallback GitHub API token|\n|`GOPROXY`|Go module proxy URL. Default: `https://proxy.golang.org,direct`|\n|`GONOPROXY`|Comma-separated list of Go module patterns to fetch directly, bypassing the proxy|\n|`GOPRIVATE`|Fallback for `GONOPROXY` when not set|\n\nToken resolution order for forge APIs: `UPDATES_FORGE_TOKENS` (matched by hostname) \u003e `UPDATES_GITHUB_API_TOKEN` \u003e `GITHUB_API_TOKEN` \u003e `GH_TOKEN` \u003e `GITHUB_TOKEN` \u003e `HOMEBREW_GITHUB_API_TOKEN`.\n\n© [silverwind](https://github.com/silverwind), distributed under BSD licence\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsilverwind%2Fupdates","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsilverwind%2Fupdates","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsilverwind%2Fupdates/lists"}