{"id":14969229,"url":"https://github.com/mrdcvlsc/fastify-session-better-sqlite3-store","last_synced_at":"2025-10-26T07:31:08.941Z","repository":{"id":46588562,"uuid":"515466968","full_name":"mrdcvlsc/fastify-session-better-sqlite3-store","owner":"mrdcvlsc","description":"A simple session store for fastify-session using better-sqlite3","archived":false,"fork":false,"pushed_at":"2023-10-23T12:00:52.000Z","size":236,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-30T03:55:50.520Z","etag":null,"topics":["better-sqlite","better-sqlite3","cookies","encrypted","encrypted-session","javascript","javascript-framework","javascript-library","library","npm","npm-module","npm-package","session","session-cookie","session-management","session-storage","session-store","user-sessions"],"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/mrdcvlsc.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":"2022-07-19T06:44:05.000Z","updated_at":"2024-03-16T21:31:22.000Z","dependencies_parsed_at":"2022-07-20T04:32:18.086Z","dependency_job_id":"9399921e-e1ea-43c7-9953-7e79d8cc99a8","html_url":"https://github.com/mrdcvlsc/fastify-session-better-sqlite3-store","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/mrdcvlsc%2Ffastify-session-better-sqlite3-store","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrdcvlsc%2Ffastify-session-better-sqlite3-store/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrdcvlsc%2Ffastify-session-better-sqlite3-store/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrdcvlsc%2Ffastify-session-better-sqlite3-store/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrdcvlsc","download_url":"https://codeload.github.com/mrdcvlsc/fastify-session-better-sqlite3-store/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238284796,"owners_count":19446729,"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":["better-sqlite","better-sqlite3","cookies","encrypted","encrypted-session","javascript","javascript-framework","javascript-library","library","npm","npm-module","npm-package","session","session-cookie","session-management","session-storage","session-store","user-sessions"],"created_at":"2024-09-24T13:41:24.064Z","updated_at":"2025-10-26T07:31:03.564Z","avatar_url":"https://github.com/mrdcvlsc.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fastify-session-better-sqlite3-store\n\nhttps://www.npmjs.com/package/fastify-session-better-sqlite3-store\n\n![ci](https://github.com/mrdcvlsc/fastify-session-better-sqlite3-store/actions/workflows/ci.yml/badge.svg)\n![standard](https://github.com/mrdcvlsc/fastify-session-better-sqlite3-store/actions/workflows/standard.yml/badge.svg)\n![node version](https://img.shields.io/badge/node%20-%3E=%2014.x-brightgreen.svg)\n[![License: MIT](https://img.shields.io/badge/License-MIT-brightgreen.svg)](https://opensource.org/licenses/MIT)\n\nA [better-sqlite3](https://github.com/WiseLibs/better-sqlite3) session store for [@fastify/session](https://github.com/fastify/session). By default [@fastify/session](https://github.com/fastify/session) uses in-memory storage to store sessions. With this small package you can store sessions on an **SQLite3** database instead.\n\n## Installation\n\n```\nnpm install fastify-session-better-sqlite3-store\n```\n\n## Example\n\nUse with `fastify-session`'s `store` property.\n\n```js\nconst fastify = require('fastify')({ logger: true })\nconst fastifyCookie = require('@fastify/cookie')\nconst fastifySession = require('@fastify/session')\nconst db = require('better-sqlite3')('./sqlite.db')\n\n// require module\nconst SqliteStore = require('fastify-session-better-sqlite3-store')\n\nfastify.register(fastifyCookie)\nfastify.register(fastifySession, {\n  store: new SqliteStore(db),\n  // ...\n  // other session options\n  // ...\n})\n```\n\n-----\n\n## License\n\n[MIT Licence](https://github.com/mrdcvlsc/fastify-session-better-sqlite3-store/blob/main/LICENSE)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrdcvlsc%2Ffastify-session-better-sqlite3-store","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrdcvlsc%2Ffastify-session-better-sqlite3-store","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrdcvlsc%2Ffastify-session-better-sqlite3-store/lists"}