{"id":20806300,"url":"https://github.com/nodesource/ncm-proxy","last_synced_at":"2025-05-07T04:24:20.148Z","repository":{"id":55145899,"uuid":"165881421","full_name":"nodesource/ncm-proxy","owner":"nodesource","description":"Local Proxy for NCM 2.0","archived":false,"fork":false,"pushed_at":"2021-01-07T07:09:06.000Z","size":72,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":20,"default_branch":"master","last_synced_at":"2025-04-14T18:53:20.781Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nodesource.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}},"created_at":"2019-01-15T16:06:13.000Z","updated_at":"2024-03-12T12:44:04.000Z","dependencies_parsed_at":"2022-08-14T13:30:30.116Z","dependency_job_id":null,"html_url":"https://github.com/nodesource/ncm-proxy","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodesource%2Fncm-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodesource%2Fncm-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodesource%2Fncm-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodesource%2Fncm-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nodesource","download_url":"https://codeload.github.com/nodesource/ncm-proxy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252811442,"owners_count":21807938,"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-11-17T19:19:10.268Z","updated_at":"2025-05-07T04:24:20.111Z","avatar_url":"https://github.com/nodesource.png","language":"JavaScript","readme":"# ncm-proxy\nLocal Proxy for [NCM 2.0](https://docs.nodesource.com/ncm_v2/docs).\n\n## About\n\nThis is a simple proxy server that is run locally on the computer doing the `npm` installations. When an install happens it will use the NCM API to look up score data and then either just log what was done or rewrite the proxied results to prevent installs of non-certified information.\n\n## Usage\n\nStart an ncm proxy server on port `14313` (`14`=N, `3`=C, `13`=M):\n\n```bash\n$ NCM_TOKEN=xxx npx @nodesource/ncm-proxy\n```\n\nTo obtain an ncm token please see [the docs](https://docs.nodesource.com/ncm_v2/docs#ci-createatoken).\n\nThen configure as your npm registry:\n\n```bash\n$ npm install express --registry=http://localhost:14313\n```\n\n## Custom port\n\nSet the `PORT` environment variable to launch on a different port:\n\n```bash\n$ NCM_TOKEN=xxx PORT=8080 npx @nodesource/ncm-proxy\n```\n\n## Custom registry\n\nYou can also use a different registry than the default `https://registry.npmjs.org/`:\n\n```bash\n$ NCM_TOKEN=xxx npx @nodesource/ncm-proxy https://registry.npmjs.org\n```\n\n## Routes\n\nAll except listed routes are simply proxied through:\n\n### `GET /:package`\n### `GET /@scope%2f:package`\n\nRewrite tarball urls to point at the proxy.\n\n### `GET /:package/-/:package-:version.tgz`\n### `GET /@:scope?/:package/-/:package-:version.tgz`\n\nReturn `404` if the module has a score lower than 85 or is on the whitelist,\notherwise proxy through.\n\n# License \u0026 copyright\n\nCopyright © NodeSource.\n\nLicensed under the MIT open source license, see the LICENSE file for details.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnodesource%2Fncm-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnodesource%2Fncm-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnodesource%2Fncm-proxy/lists"}