{"id":17862572,"url":"https://github.com/krdlab/daab-session","last_synced_at":"2025-04-02T21:15:04.313Z","repository":{"id":36931232,"uuid":"165911480","full_name":"krdlab/daab-session","owner":"krdlab","description":"simple session middleware for daab","archived":false,"fork":false,"pushed_at":"2023-01-07T04:39:37.000Z","size":2376,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-09T12:16:59.870Z","etag":null,"topics":["daab"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/krdlab.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}},"created_at":"2019-01-15T19:35:08.000Z","updated_at":"2022-03-28T00:42:10.000Z","dependencies_parsed_at":"2023-01-17T07:18:34.135Z","dependency_job_id":null,"html_url":"https://github.com/krdlab/daab-session","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krdlab%2Fdaab-session","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krdlab%2Fdaab-session/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krdlab%2Fdaab-session/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krdlab%2Fdaab-session/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/krdlab","download_url":"https://codeload.github.com/krdlab/daab-session/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246892848,"owners_count":20850850,"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":["daab"],"created_at":"2024-10-28T08:53:16.649Z","updated_at":"2025-04-02T21:15:04.280Z","avatar_url":"https://github.com/krdlab.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# daab-session\n\nThis library adds support for a conversation session to daab.\n\n## Installation\n\n```sh\nnpm install daab-session\n```\n\n## Usage\n\nYou can use this library as follows:\n\n```javascript\nconst { withSession } = require('daab-session');\n\nconst actions = robot =\u003e {\n  robot.respond(/ping$/i, res =\u003e {\n    let session = res.session; // current session object. it has 'id' and 'data' fields.\n    ...\n  });\n};\n\nmodule.exports = withSession(actions);\n```\n\nThe default store is MemoryStore. There is RedisStore as another store implementation.\n\nMore information about usage can be found in the [examples directory](examples/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrdlab%2Fdaab-session","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkrdlab%2Fdaab-session","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrdlab%2Fdaab-session/lists"}