{"library":"cookie-session","type":"library","category":null,"description":"cookie-session is a lightweight middleware for Node.js, primarily used with Express, that implements client-side session management. Unlike server-side session stores (like `express-session`), this module stores the entire session data directly within a signed, but unencrypted, cookie on the client's browser. This approach means no server-side database or resources are required for session storage, which can simplify deployments, especially in load-balanced environments. The current stable version is 2.1.1, released in April 2024, indicating active maintenance. Releases typically align with updates to its underlying `cookies` and `keygrip` dependencies, or to address compatibility with newer Node.js versions. Key differentiators include its minimal server-side footprint and the direct storage of session data in the client's cookie, making it suitable for 'light' sessions or as a complement to a secondary, database-backed store for larger data payloads.","language":"javascript","status":"active","version":"2.1.1","tags":["javascript","connect","express","middleware","session"],"last_verified":"Wed May 27","install":[{"cmd":"npm install cookie-session","imports":["import cookieSession from 'cookie-session'","const cookieSession = require('cookie-session')"]},{"cmd":"yarn add cookie-session","imports":[]},{"cmd":"pnpm add cookie-session","imports":[]}],"homepage":null,"github":"https://github.com/expressjs/cookie-session","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/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/cookie-session/compatibility"}}