π Initial Release: Session SDK for TypeScript
π£ Wristband TypeScript Session SDK 0.1.0 Release π
No Wristband account required.
You can use this SDK with any auth provider, or it works seamlessly when integrating with Wristband's multi-tenant auth platform.
What is it?
This SDK provides secure, encrypted cookie-based session management for TypeScript applications across Node.js and edge runtimes. SDK features:
- π― Framework Agnostic - Express, Next.js, Remix, and more
- π Universal Runtime Support - Node.js, Cloudflare Workers, Vercel Edge, and more
- π¦ Zero Dependencies - Pure TypeScript with web standards
- π Secure Encryption - AES-256-GCM encryption with Web Crypto API
- π Secret Key Rotation - Seamless secret rotation without invalidating sessions
- β‘ High Performance - Deferred mode prevents redundant encryption in Node.js
- π‘οΈ CSRF Protection - Optional token-based CSRF protection
Why use it?
Most session libraries either expose your data in signed cookies (readable by anyone) or require you to run backend stores like Redis. This SDK strikes a balance: it encrypts the cookie data so nobody can read it while requiring zero backend infrastructure. Now you can ship secure sessions without adding complexity to your stack.
Installation
Available on npm for installation with your preferred package manager.
npm install @wristband/typescript-session
Documentation
See the GitHub README for complete documentation, API reference, and usage examples.