{"id":13789170,"url":"https://github.com/cuo9958/node-config","last_synced_at":"2026-01-12T06:39:01.312Z","repository":{"id":96640633,"uuid":"157358778","full_name":"cuo9958/node-config","owner":"cuo9958","description":"nodejs的配置中心","archived":false,"fork":false,"pushed_at":"2023-11-10T07:41:16.000Z","size":1634,"stargazers_count":57,"open_issues_count":4,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-18T02:39:27.800Z","etag":null,"topics":["config","nodejs","tcp","website"],"latest_commit_sha":null,"homepage":"http://config.guofangchao.com/","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/cuo9958.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":"2018-11-13T10:01:50.000Z","updated_at":"2024-05-15T09:12:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"eda7fce2-ca28-4e2c-b71f-819440a069c0","html_url":"https://github.com/cuo9958/node-config","commit_stats":{"total_commits":151,"total_committers":2,"mean_commits":75.5,"dds":0.0331125827814569,"last_synced_commit":"13c996f0a269e91b7c3367044e2a22a5d29e9949"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuo9958%2Fnode-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuo9958%2Fnode-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuo9958%2Fnode-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuo9958%2Fnode-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cuo9958","download_url":"https://codeload.github.com/cuo9958/node-config/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253668015,"owners_count":21944961,"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":["config","nodejs","tcp","website"],"created_at":"2024-08-03T21:00:59.391Z","updated_at":"2026-01-12T06:39:01.305Z","avatar_url":"https://github.com/cuo9958.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","NodeJS"],"sub_categories":[],"readme":"# 全新的 nodejs 开发的轻量级配置中心\n\n![星星数](https://img.shields.io/github/stars/cuo9958/node-config?style=social)\n![reactjs](https://img.shields.io/badge/react-16.13.0-brightgreen)\n![nodejs](https://img.shields.io/badge/nodejs-%3E8.0.0-blue)\n\n1. 全新改版，使用到的技术全部替换\n2. 使用快照存储配置内容\n3. 启动即加载全部内容，通过MQ通知更新\n\n## 使用方式\n\n1. 下载项目：[https://github.com/cuo9958/node-config/archive/master.zip](https://github.com/cuo9958/node-config/archive/master.zip)\n2. 解压并安装依赖：`npm install`\n3. 创建自己的配置文件并修改对应的配置\n4. 启动项目,依赖 pm2 的可以修改 pm2.json 文件，依赖 docker 的可以修改 docker 文件\n\n## 版本 v1.1\n\n1. 添加灰度配置\n2. 根据用户的 head 中的 clientid 和 uid 做灰度\n\n想继续研究 socket 消息，rpg 方案的可以查看另外一个项目：https://github.com/cuo9958/node-socket\n\n## 示例展示\n\n![首页](https://github.com/cuo9958/node-config/raw/master/images/demo1.png)\n\n## 第一版本 v1.0\n\n1. 第一个版本没有使用客户端和服务器通讯的模式\n2. 配置内容基于接口的情况获取，更适合 web、app 等模式获取配置\n\n## 版本 v2.0.1\n\n1. redis 订阅发布模式偶尔有抖动，切换成 mq 的广播模式\n\n## 版本 2.0.2\n\n1. 修改新的模式\n2. 增加访客模式，用户名密码不再调用数据库，改用配置，后期增加用户鉴权的插件\n3. 图片压缩库需要梯子才能下载，下载内容位于 github 上面。目前暂时关闭\n4. 增加不使用 mq 的场景\n\n```json\n    // \"imagemin-gifsicle\": \"6.0.1\",\n    // \"imagemin-jpegtran\": \"6.0.0\",\n    // \"imagemin-optipng\": \"7.0.0\",\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcuo9958%2Fnode-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcuo9958%2Fnode-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcuo9958%2Fnode-config/lists"}