@nexusts/session
v0.9.6
Published
Cookie / Memory / Drizzle sessions
Readme
@nexusts/session
NexusTS — Bun-native fullstack framework
Description
Cookie / Memory / Drizzle sessions.
3 backends. Cookie is HMAC-signed and stateless. Memory is single-process. Drizzle is shared across pods. Built-in sessionMiddleware() exposes getSession(c) and setSession(c, data).
Install
This module is part of the NexusTS monorepo. Each module is published as its own npm package under the @nexusts/ scope.
Most apps start with just the core:
bun add @nexusts/coreThen add this module only if you need it:
bun add @nexusts/sessionPeer dependencies
None. No external dependencies for the cookie / memory backends. The Drizzle and Redis backends require those packages.
Usage
import { /* public API */ } from "@nexusts/session";See the user guide and the example app for a working demo.
License
MIT — see the root LICENSE.
