{"id":18801870,"url":"https://github.com/mitscherlich/egg-session-mongo","last_synced_at":"2025-07-20T11:33:07.206Z","repository":{"id":39421967,"uuid":"123614786","full_name":"Mitscherlich/egg-session-mongo","owner":"Mitscherlich","description":":egg: mongodb store for egg session","archived":false,"fork":false,"pushed_at":"2025-07-07T20:59:22.000Z","size":1467,"stargazers_count":2,"open_issues_count":6,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-08T00:52:42.323Z","etag":null,"topics":["egg-plugin","egg-session","eggplugin","mongodb","session"],"latest_commit_sha":null,"homepage":"","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/Mitscherlich.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2018-03-02T18:21:26.000Z","updated_at":"2025-04-24T11:22:28.000Z","dependencies_parsed_at":"2023-02-19T14:00:30.108Z","dependency_job_id":"238142ce-8e24-4dbf-929e-b06a503e3a7d","html_url":"https://github.com/Mitscherlich/egg-session-mongo","commit_stats":{"total_commits":205,"total_committers":5,"mean_commits":41.0,"dds":0.375609756097561,"last_synced_commit":"2a5316dda92510305c5efacb98c04c1f2eef26ab"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Mitscherlich/egg-session-mongo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mitscherlich%2Fegg-session-mongo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mitscherlich%2Fegg-session-mongo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mitscherlich%2Fegg-session-mongo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mitscherlich%2Fegg-session-mongo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mitscherlich","download_url":"https://codeload.github.com/Mitscherlich/egg-session-mongo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mitscherlich%2Fegg-session-mongo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266117751,"owners_count":23879111,"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":["egg-plugin","egg-session","eggplugin","mongodb","session"],"created_at":"2024-11-07T22:25:34.361Z","updated_at":"2025-07-20T11:33:06.622Z","avatar_url":"https://github.com/Mitscherlich.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# egg-session-mongo\n\n[![NPM version][npm-image]][npm-url]\n[![build status][travis-image]][travis-url]\n[![Test coverage][codecov-image]][codecov-url]\n[![David deps][david-image]][david-url]\n[![Known Vulnerabilities][snyk-image]][snyk-url]\n[![npm download][download-image]][download-url]\n\n[npm-image]: https://img.shields.io/npm/v/egg-session-mongo.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/egg-session-mongo\n[travis-image]: https://img.shields.io/travis/Mitscherlich/egg-session-mongo.svg?style=flat-square\n[travis-url]: https://travis-ci.org/Mitscherlich/egg-session-mongo\n[codecov-image]: https://img.shields.io/codecov/c/github/Mitscherlich/egg-session-mongo.svg?style=flat-square\n[codecov-url]: https://codecov.io/github/Mitscherlich/egg-session-mongo?branch=master\n[david-image]: https://img.shields.io/david/Mitscherlich/egg-session-mongo.svg?style=flat-square\n[david-url]: https://david-dm.org/Mitscherlich/egg-session-mongo\n[snyk-image]: https://snyk.io/test/npm/egg-session-mongo/badge.svg?style=flat-square\n[snyk-url]: https://snyk.io/test/npm/egg-session-mongo\n[download-image]: https://img.shields.io/npm/dm/egg-session-mongo.svg?style=flat-square\n[download-url]: https://npmjs.org/package/egg-session-mongo\n\nA session extension for store session in MongoDB.\n\nsee Chinese version: [中文](README.zh_CN.md)\n\n## Install\n\n```bash\n$ npm i egg-session-mongo --save\n```\n\n## Usage\n\n```js\n// {app_root}/config/plugin.js\nexports.sessionMongo = {\n  enable: true,\n  package: 'egg-session-mongo',\n};\n```\n\nor you can overwrite you `MongoStore` options in `app.js`.\n\n```js\n// {app_root}/app.js\nmodule.exports = app =\u003e {\n  const MongoStore = require('egg-session-mongo')(app);\n\n  app.beforeStart(async () =\u003e {\n    app.sessionStore = new MongStore(/* options */);\n  });\n};\n```\n\nsee [app.js](app.js) for more detail.\n\n## Configuration\n\n```js\n// {app_root}/config/config.default.js\nexports.sessionMongo = {\n  url: 'mongodb://127.0.0.1/test'\n};\n```\n\nsee [config/config.example.js](config/config.example.js) for more detail.\n\n## Questions \u0026 Suggestions\n\nPlease open an issue [here](https://github.com/eggjs/egg/issues).\nor open an issue just at this repo's [issue](https://github.com/Mitscherlich/egg-session-mongo/issues) for more timely reply\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitscherlich%2Fegg-session-mongo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmitscherlich%2Fegg-session-mongo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitscherlich%2Fegg-session-mongo/lists"}