{"id":17220908,"url":"https://github.com/strues/koa-resession","last_synced_at":"2025-03-25T15:32:14.477Z","repository":{"id":78323340,"uuid":"58877146","full_name":"strues/koa-resession","owner":"strues","description":"RethinkDB Session storage for Koa 2.","archived":false,"fork":false,"pushed_at":"2016-05-17T21:42:34.000Z","size":9,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-30T13:44:51.045Z","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/strues.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":"2016-05-15T18:22:43.000Z","updated_at":"2018-07-04T04:15:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"573c354e-a5c5-4740-bdde-917f25359410","html_url":"https://github.com/strues/koa-resession","commit_stats":{"total_commits":7,"total_committers":1,"mean_commits":7.0,"dds":0.0,"last_synced_commit":"62baec40335dc4ea3a7479877477a55447ca0202"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strues%2Fkoa-resession","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strues%2Fkoa-resession/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strues%2Fkoa-resession/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strues%2Fkoa-resession/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/strues","download_url":"https://codeload.github.com/strues/koa-resession/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245489764,"owners_count":20623789,"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-10-15T03:53:34.581Z","updated_at":"2025-03-25T15:32:14.438Z","avatar_url":"https://github.com/strues.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Koa-ReSession\n\n![Build Status](https://img.shields.io/travis/strues/koa-resession.svg)\n![Coverage](https://img.shields.io/coveralls/strues/koa-resession.svg)\n![Downloads](https://img.shields.io/npm/dm/koa-resession.svg)\n![Downloads](https://img.shields.io/npm/dt/koa-resession.svg)\n![npm version](https://img.shields.io/npm/v/koa-resession.svg)\n![dependencies](https://img.shields.io/david/strues/koa-resession.svg)\n![dev dependencies](https://img.shields.io/david/dev/strues/koa-resession.svg)\n![License](https://img.shields.io/npm/l/koa-resession.svg)\n\nRethinkDB session storage for Koa 2. Uses async/await in favor of generator functions.\n\n## Getting Started\n\nInstall it via npm:\n\n```shell\nnpm install koa-resession\n```\n\nAnd include in your project:\n\n```javascript\nimport ReSession from 'koa-resession';\nimport session from 'koa-generic-session';\nimport rethinkdbdash from 'rethinkdbdash';\n\nconst sessionStore = new ReSession({\n  connection: rethinkdbdash({host: 'localhost', port: 28015, db: 'session'}),\n  browserSessionsMaxAge: 5000,\n  db: 'session',\n  table: 'sessions'\n});\nsessionStore.setup();\nexport default convert(session({\n  store: sessionStore\n}));\n```\n\n`koa-resession` depends on [rethinkdbdash](https://github.com/neumino/rethinkdbdash) or the default rethinkdb node.js driver. In addition,\nit is built for use with [koa-generic-session](https://github.com/koajs/generic-session). This project is based off of  \n[koa-generic-session-rethinkdb](https://github.com/KualiCo/koa-generic-session-rethinkdb). Unfortunately that project seems unmaintained and has a dependency on co due to its usage of generators.\n\nSession information is made available on ctx.session.\n\n## License\n\nMIT\n\n## ToDo\n- Finish writing tests\n- Show a better example.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstrues%2Fkoa-resession","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstrues%2Fkoa-resession","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstrues%2Fkoa-resession/lists"}