Skip to content

@nostr-dev-kit/sessions

Framework-agnostic session management for NDK with multi-account support and persistence.

Features

  • 🔐 Multi-account support - Manage multiple Nostr accounts simultaneously
  • 💾 Flexible persistence - Built-in localStorage, filesystem, and memory storage
  • 🔄 Auto-sync - Automatically fetch follows, mutes, relays, and events
  • 🎯 Framework-agnostic - Works with React, Svelte, Vue, vanilla JS, Node.js, etc.
  • 🔌 Minimal boilerplate - Simple, intuitive API
  • 🎨 Full TypeScript - Complete type safety

Installation

sh
npm i @nostr-dev-kit/sessions
sh
pnpm add @nostr-dev-kit/sessions
sh
yarn add @nostr-dev-kit/sessions
sh
bun add @nostr-dev-kit/sessions