Installation

Add @codecanon/nuska to your project.

Access

@codecanon/nuska is a protected package on the npm registry. Only authorized users can install it.

To get access, contact us to purchase a license. Once confirmed, your npm account will be added to the allowed list and you will be able to install the package.

Requirements

  • TypeScript 5+
  • Node.js 18+, Bun, Deno, or any modern edge runtime
  • React 18+ (only if using @codecanon/nuska/react)

Install

bun add @codecanon/nuska

Entry points

The package ships three tree-shakable entry points:

ImportUse for
@codecanon/nuskaCore engine, types, and in-memory adapters
@codecanon/nuska/adaptersAll adapters — Memory + IndexedDB
@codecanon/nuska/reactReact hook, provider, and context hook

You only pay for what you import. The React bindings do not pull in the IndexedDB adapters, and vice versa.

Next.js

No extra configuration needed. The package ships dual ESM/CJS builds and Next.js handles it automatically.

Vite / React Router

Works out of the box. No special configuration required.

On this page