{"id":16989115,"url":"https://github.com/espimarisa/session-rethinkdb-ts","last_synced_at":"2025-06-26T15:32:23.588Z","repository":{"id":52600672,"uuid":"328860776","full_name":"espimarisa/session-rethinkdb-ts","owner":"espimarisa","description":"A RethinkDB session store for express-session.","archived":false,"fork":false,"pushed_at":"2025-05-13T22:02:18.000Z","size":183,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-14T00:54:43.782Z","etag":null,"topics":["express","express-session","rethinkdb","session","session-store","typescript"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/session-rethinkdb-ts","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"zlib","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/espimarisa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/funding.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"ko_fi":"espimarisa","github":"espimarisa"}},"created_at":"2021-01-12T03:27:26.000Z","updated_at":"2025-05-13T22:00:03.000Z","dependencies_parsed_at":"2024-10-28T13:23:34.887Z","dependency_job_id":"d9619b5e-f82d-4c33-9655-d80e3eec8999","html_url":"https://github.com/espimarisa/session-rethinkdb-ts","commit_stats":null,"previous_names":["espimarisa/session-rethinkdb-ts","sysdotini/session-rethinkdb-ts"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/espimarisa/session-rethinkdb-ts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/espimarisa%2Fsession-rethinkdb-ts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/espimarisa%2Fsession-rethinkdb-ts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/espimarisa%2Fsession-rethinkdb-ts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/espimarisa%2Fsession-rethinkdb-ts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/espimarisa","download_url":"https://codeload.github.com/espimarisa/session-rethinkdb-ts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/espimarisa%2Fsession-rethinkdb-ts/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262094412,"owners_count":23257960,"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":["express","express-session","rethinkdb","session","session-store","typescript"],"created_at":"2024-10-14T03:05:29.993Z","updated_at":"2025-06-26T15:32:23.569Z","avatar_url":"https://github.com/espimarisa.png","language":"TypeScript","funding_links":["https://ko-fi.com/espimarisa","https://github.com/sponsors/espimarisa"],"categories":[],"sub_categories":[],"readme":"# session-rethinkdb-ts\n\nA RethinkDB session store for express-session.\n\n## Maintenance Mode\n\nThis package is in maintenance mode and will only receive security and major bug-fix updates.\n\n## Installation\n\n```sh\n# npm\nnpm i session-rethinkdb-ts\n# yarn\nyarn add session-rethinkdb-ts\n# pnpm\npnpm add session-rethinkdb-ts\n# or, if you're cool and use bun\nbun add session-rethinkdb-ts\n```\n\n## Usage\n\nFor a list of valid connectOptions, see the [typings][options] for rethinkdb-ts. Additionally, you can pass an already existing store via the 2nd paramater.\n\n```TS\nimport { RethinkDBStore } from \"session-rethinkdb-ts\";\nimport express from \"express\";\nimport session from \"express-session\";\n\nconst app = express();\n\n// Creates the store\nconst store = new RethinkDBStore({\n  // RethinkDB connection options.\n  connectOptions: {\n    db: \"db\",\n  },\n  sessionTable: \"session\", // RethinkDB table to store session info to. Defaults to \"session\".\n  sessionTimeout: 86400000, // How long a session ID is valid for. Defaults to 1 day.\n  flushTimeout: 60000, // How long to wait before flushing data. Defaults to 1 minute.\n});\n\n// Uses express session with the store\n// Valid options: https://github.com/expressjs/session#sessionoptions\napp.use(session({\n  store: store,\n  saveUninitialized: false,\n}));\n\n// The rest of your Express server code...\n```\n\n## License\n\n[zlib][zlib]\n\n[zlib]: \"LICENSE.md\" \"A link to the zlib license.\"\n[options]: https://github.com/rethinkdb/rethinkdb-ts/blob/de4c51a53f8bc50c2784f302a831938e3e4cfd1a/src/types.ts#L41 \"RethinkDB Connect Options\"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fespimarisa%2Fsession-rethinkdb-ts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fespimarisa%2Fsession-rethinkdb-ts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fespimarisa%2Fsession-rethinkdb-ts/lists"}