{"id":17482434,"url":"https://github.com/creationix/nstore-session","last_synced_at":"2025-04-10T02:44:04.225Z","repository":{"id":974621,"uuid":"773006","full_name":"creationix/nstore-session","owner":"creationix","description":"This is a connect session store using nStore","archived":false,"fork":false,"pushed_at":"2012-02-27T14:30:05.000Z","size":107,"stargazers_count":50,"open_issues_count":1,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T04:14:37.933Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/creationix.png","metadata":{"files":{"readme":"README.markdown","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":"2010-07-13T18:38:01.000Z","updated_at":"2024-12-18T03:11:26.000Z","dependencies_parsed_at":"2022-08-16T11:40:31.964Z","dependency_job_id":null,"html_url":"https://github.com/creationix/nstore-session","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/creationix%2Fnstore-session","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/creationix%2Fnstore-session/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/creationix%2Fnstore-session/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/creationix%2Fnstore-session/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/creationix","download_url":"https://codeload.github.com/creationix/nstore-session/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248145584,"owners_count":21055162,"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-18T23:43:12.847Z","updated_at":"2025-04-10T02:44:04.198Z","avatar_url":"https://github.com/creationix.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nStore Session Store for Connect\n\nThis is a simple session store for [Connect][] that uses [nStore][] for persisting session data.  It implements the full Session Store interface and has built-in pruning of stale sessions on every nStore database compaction.\n\n## Usage\n\nCreate a connect app, and use this as the session store.\n\n    var Connect = require('connect'),\n        nStoreSession = require('./lib/nstore-session');\n\n    // Set up a base app with some global filters\n    var App = module.exports = Connect.createServer(\n      Connect.logger(),\n      Connect.cookieDecoder(),\n      Connect.session({store: new nStoreSession()}),\n      Connect.router(function (app) {\n        app.get(\"/\", function (req, res) {\n          res.simpleBody(200, req.session);\n        });\n      })\n    );\n\n## Options\n\nYou can pass options into the call to `new nStoreSession({})`.\n\n - **maxAge** - When the nStore database is compacted, any sessions last accessed more than `maxAge` ago (in ms) will be pruned. Defaults to 1 hour.\n - **dbFile** - Where to store the nStore database, defaults to \"sessions.db\" in the current directory.\n \n[Connect]: http://extjs.github.com/Connect/\n[nStore]: http://github.com/creationix/nstore","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcreationix%2Fnstore-session","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcreationix%2Fnstore-session","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcreationix%2Fnstore-session/lists"}