{"repo":"Octo8080X/fresh-session","free":true,"listed":false,"github":"https://github.com/Octo8080X/fresh-session","clone":"git clone https://github.com/Octo8080X/fresh-session.git","description":"Dead simple cookie-based session for Deno Fresh.","language":"TypeScript","stars":82,"topics":["authentication","cookie","deno","fresh","session","typescript"],"license":null,"category":"auth-billing-email","readme_excerpt":"Fresh Session 🍋 Dead simple cookie-based session for Deno Fresh v2. Features - 🔐 AES-GCM 256-bit encryption - Secure session data with encrypted cookies - 💾 Multiple storage backends - Memory, Cookie, Deno KV, Redis, SQL - ⚡ Flash messages - One-time messages for redirects - 🔄 Session rotation - Regenerate session ID for security - 🎯 TypeScript first - Full type safety Installation Quick Start Sample app notes: - sample/session memory.ts uses MemorySessionStore - sample/session cookie.ts shows the cookie store pattern - sample/session kv.ts shows the Deno KV store pattern - sample/session redis.ts shows the Redis store pattern - sample/session mysql.ts shows the MySQL store pattern - sample/session postgres.ts shows the PostgreSQL store pattern Redis/MySQL/PostgreSQL sample notes: - Samples read REDIS HOST , REDIS PORT , MYSQL HOST , MYSQL PORT , POSTGRES HOST , POSTGRES PORT - Defaults (when using with-resource ): - Redis: 127.0.0.1:6380 - MySQL: 127.0.0.1:3307 - PostgreSQL: 127.0.0.1:5433 1. Create a session middleware 2. Use session in your routes Session API Storage Backends Memory Store (Development) Simple in-memory storage. Data is lost when the server restarts. Cookie Store Stores session data in the cookie itself. No server-side storage needed. ⚠️ Cookie size limit is 4KB. Use for small session data only. Deno KV Store Persistent storage using Deno KV. Recommended for Deno Deploy. Redis Store For distributed environments with Redis. SQL Store (MySQL, PostgreSQL,","default_branch":null,"files":null,"tree":[],"storefront":"/r/Octo8080X","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Octo8080X/fresh-session/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}