{"id":13487617,"url":"https://github.com/eggjs/egg-datahub","last_synced_at":"2025-10-28T15:58:30.038Z","repository":{"id":32025787,"uuid":"131175001","full_name":"eggjs/egg-datahub","owner":"eggjs","description":"Macaca DataHub plugin for Egg.js","archived":false,"fork":false,"pushed_at":"2022-03-28T07:34:57.000Z","size":33,"stargazers_count":19,"open_issues_count":0,"forks_count":5,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-10-19T07:35:42.673Z","etag":null,"topics":["datahub","eggjs","macaca","mock"],"latest_commit_sha":null,"homepage":"https://macacajs.github.io/macaca-datahub","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/eggjs.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}},"created_at":"2018-04-26T15:22:02.000Z","updated_at":"2022-07-07T03:37:53.000Z","dependencies_parsed_at":"2022-08-07T17:01:29.434Z","dependency_job_id":null,"html_url":"https://github.com/eggjs/egg-datahub","commit_stats":null,"previous_names":["macacajs/egg-datahub"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/eggjs/egg-datahub","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eggjs%2Fegg-datahub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eggjs%2Fegg-datahub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eggjs%2Fegg-datahub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eggjs%2Fegg-datahub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eggjs","download_url":"https://codeload.github.com/eggjs/egg-datahub/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eggjs%2Fegg-datahub/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281467278,"owners_count":26506462,"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","status":"online","status_checked_at":"2025-10-28T02:00:06.022Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["datahub","eggjs","macaca","mock"],"created_at":"2024-07-31T18:01:01.269Z","updated_at":"2025-10-28T15:58:30.008Z","avatar_url":"https://github.com/eggjs.png","language":"JavaScript","funding_links":[],"categories":["仓库"],"sub_categories":["插件"],"readme":"# egg-datahub\n\n---\n\n[![NPM version][npm-image]][npm-url]\n[![build status][travis-image]][travis-url]\n[![Test coverage][coveralls-image]][coveralls-url]\n[![node version][node-image]][node-url]\n[![egg version][egg-image]][egg-url]\n[![npm download][download-image]][download-url]\n\n[npm-image]: https://img.shields.io/npm/v/egg-datahub.svg\n[npm-url]: https://npmjs.org/package/egg-datahub\n[travis-image]: https://img.shields.io/travis/eggjs/egg-datahub.svg\n[travis-url]: https://travis-ci.org/eggjs/egg-datahub\n[coveralls-image]: https://img.shields.io/codecov/c/github/eggjs/egg-datahub.svg\n[coveralls-url]: https://codecov.io/gh/eggjs/egg-datahub\n[node-image]: https://img.shields.io/badge/node.js-%3E=_8-green.svg\n[node-url]: http://nodejs.org/download/\n[egg-image]: https://img.shields.io/badge/egg-%3E=_2-green.svg\n[egg-url]: https://github.com/eggjs/egg\n[download-image]: https://img.shields.io/npm/dm/egg-datahub.svg\n[download-url]: https://npmjs.org/package/egg-datahub\n\n\u003e Macaca DataHub plugin for Egg.js\n\n## Installation\n\n```\n$ npm i egg-datahub --save-dev\n```\n\n## Configuration\n\nconfig/plugin.js\n\n```javascript\nexports.datahub = {\n  enable: true,\n  package: 'egg-datahub'\n};\n```\n\nconfig.unittest.js (default config)\n\n```javascript\nexports.datahub = {\n  port: 9200,\n  hostname: 'localhost'\n};\n```\n\n## Example\n\n[hackernews-datahub](//github.com/eggjs/examples/tree/master/hackernews-datahub)\n\n\u003c!-- GITCONTRIBUTOR_START --\u003e\n\n## Contributors\n\n|[\u003cimg src=\"https://avatars.githubusercontent.com/u/11460601?v=4\" width=\"100px;\"/\u003e\u003cbr/\u003e\u003csub\u003e\u003cb\u003ezivyangll\u003c/b\u003e\u003c/sub\u003e](https://github.com/zivyangll)\u003cbr/\u003e|[\u003cimg src=\"https://avatars.githubusercontent.com/u/1011681?v=4\" width=\"100px;\"/\u003e\u003cbr/\u003e\u003csub\u003e\u003cb\u003exudafeng\u003c/b\u003e\u003c/sub\u003e](https://github.com/xudafeng)\u003cbr/\u003e|[\u003cimg src=\"https://avatars.githubusercontent.com/u/52845048?v=4\" width=\"100px;\"/\u003e\u003cbr/\u003e\u003csub\u003e\u003cb\u003esnapre\u003c/b\u003e\u003c/sub\u003e](https://github.com/snapre)\u003cbr/\u003e|[\u003cimg src=\"https://avatars.githubusercontent.com/u/2139038?v=4\" width=\"100px;\"/\u003e\u003cbr/\u003e\u003csub\u003e\u003cb\u003ezhangyuheng\u003c/b\u003e\u003c/sub\u003e](https://github.com/zhangyuheng)\u003cbr/\u003e|[\u003cimg src=\"https://avatars.githubusercontent.com/u/156269?v=4\" width=\"100px;\"/\u003e\u003cbr/\u003e\u003csub\u003e\u003cb\u003efengmk2\u003c/b\u003e\u003c/sub\u003e](https://github.com/fengmk2)\u003cbr/\u003e|\n| :---: | :---: | :---: | :---: | :---: |\n\n\nThis project follows the git-contributor [spec](https://github.com/xudafeng/git-contributor), auto updated at `Sun Mar 27 2022 22:44:45 GMT+0800`.\n\n\u003c!-- GITCONTRIBUTOR_END --\u003e\n\n## License\n\nThe MIT License (MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feggjs%2Fegg-datahub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feggjs%2Fegg-datahub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feggjs%2Fegg-datahub/lists"}