{"id":16883374,"url":"https://github.com/hardillb/node-red-private-catalogue-builder","last_synced_at":"2025-04-11T12:08:55.725Z","repository":{"id":68666334,"uuid":"324354123","full_name":"hardillb/node-red-private-catalogue-builder","owner":"hardillb","description":"node-red-private-catalogue-builder","archived":false,"fork":false,"pushed_at":"2023-09-29T21:51:04.000Z","size":101,"stargazers_count":6,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-25T08:23:30.311Z","etag":null,"topics":["node-red","npm","registry","verdaccio"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hardillb.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}},"created_at":"2020-12-25T12:01:21.000Z","updated_at":"2024-12-12T02:36:49.000Z","dependencies_parsed_at":"2024-10-13T16:11:32.596Z","dependency_job_id":null,"html_url":"https://github.com/hardillb/node-red-private-catalogue-builder","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hardillb%2Fnode-red-private-catalogue-builder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hardillb%2Fnode-red-private-catalogue-builder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hardillb%2Fnode-red-private-catalogue-builder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hardillb%2Fnode-red-private-catalogue-builder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hardillb","download_url":"https://codeload.github.com/hardillb/node-red-private-catalogue-builder/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248397271,"owners_count":21097083,"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":["node-red","npm","registry","verdaccio"],"created_at":"2024-10-13T16:11:30.054Z","updated_at":"2025-04-11T12:08:55.696Z","avatar_url":"https://github.com/hardillb.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# node-red-private-catalogue-builder\n\nA minimal web app to host a `catalogue.json` file for a private repository of\nNode-RED nodes.\n\nIntended to be run in it's own container as part of either \n[multi-tenant-node-red]() or [multi-tenant-node-red-k8s]()\n\n## Configure\n\nThe container takes the following Environment variables:\n\n - PORT - Which port to listen on (defaults to `3000`)\n - HOST - Which local IP Address to bind to (defaults to `0.0.0.0`)\n - REGISTRY - A host and optional port number to connect to the NPM registry (defaults to `http://registry:4873`)\n - KEYWORD - The npm keyword to filter on (defaults to `node-red`)\n\n It presents 2 HTTP endpoints\n\n  - /update - a POST to this endpoint will trigger a rebuild of the catalogue\n  - /catalogue.json - a GET request returns the current catalogue\n\nThe `/update` endpoint is intended to be used with the verdaccio private registry configured to send notifications\nwhen packages are uploaded/updated. e.g.\n\n```\nnotify:\n  method: POST\n  headers: [{'Content-Type': 'application/json'}]\n  endpoint: http://catalogue/update\n  content: '{\"name\": \"{{name}}\", \"versions\": \"{{versions}}\", \"dist-tags\": \"{{dist-tags}}\"}'\n```\n\n## Build\n\nBuild and push the container to the private container repository.\n\n```\n$ docker build . -t catalogue\n$ docker tag catalogue private.example.com/catalogue\n$ docker push private.example.com/catalogue\n```\n\n## Deploy\n\n### Docker-compose\n\n```\n  catalogue:\n    image: catalogue\n    networks:\n      - internal\n     environment:\n      - \"REGISTRY=registry:4873\"\n    depends_on:\n      - registry\n    expose:\n      - \"3000\"\n```\n\n### Kubernetes\n\n```\n      - name: catalogue\n        image: private.example.com/catalogue\n        ports:\n        - containerPort: 3000\n        env:\n        - name: REGISTRY\n          value: 'registry:4873'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhardillb%2Fnode-red-private-catalogue-builder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhardillb%2Fnode-red-private-catalogue-builder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhardillb%2Fnode-red-private-catalogue-builder/lists"}