{"library":"astro-cookie-session","type":"library","category":null,"description":"Middleware for managing session data using cookies in Astro SSR applications. Current version 1.3.0 (released 2024-12, active development). Session data is encrypted and stored client-side in cookies, not on the server, making it suitable for stateless architectures. Supports TypeScript with type-safe session definitions and optional flash messages. Key differentiators: zero external dependencies beyond Astro, encryption of payloads (added in 1.3.0), simple API similar to remix-run session handling, and built-in flash message support.","language":"javascript","status":"active","version":"1.3.0","tags":["javascript","astro","cookie","session","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install astro-cookie-session","imports":["import { createCookieSessionStorage } from 'astro-cookie-session'","const { getSession } = createCookieSessionStorage<MyData>()","type SessionData = { userId: string }"]},{"cmd":"yarn add astro-cookie-session","imports":[]},{"cmd":"pnpm add astro-cookie-session","imports":[]}],"homepage":null,"github":"https://github.com/koyopro/astro-cookie-session","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/astro-cookie-session","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/astro-cookie-session/compatibility"}}