Framework compatibility

Restormel Keys is built to fit the stacks you already use. This page helps you choose the right package and get started quickly.

Compatibility at a glance

FrameworkPackageStatus
Next.js (App Router)@restormel/keys + @restormel/keys-react + @restormel/keys-elementsSupported
React (generic)@restormel/keys + @restormel/keys-react + @restormel/keys-elementsSupported
SvelteKit@restormel/keys + @restormel/keys-svelteSupported
Web Components / Astro / vanilla@restormel/keys + @restormel/keys-elementsSupported
Vue / Nuxt🔵 Planned — use headless core or Web Components for now

All UI paths depend on the headless core (@restormel/keys) for resolution, cost, and storage. The React wrapper uses the Web Components under the hood; Svelte uses native Svelte 5 components. Headless only works today without the UI packages.

Install paths

Headless only (no UI) — works today:

bash
pnpm add @restormel/keys

Next.js or React (KeyManager, ModelSelector, CostEstimator): install the core, React wrapper, and elements package.

bash
pnpm add @restormel/keys @restormel/keys-react @restormel/keys-elements

SvelteKit (native Svelte components): install the core plus Svelte wrapper.

bash
pnpm add @restormel/keys @restormel/keys-svelte

Web Components (Astro, vanilla HTML, or any framework): install the core plus elements package.

bash
pnpm add @restormel/keys @restormel/keys-elements

CLI (init, add keys, validate, doctor):

bash
pnpm add -D @restormel/keys-cli

When to use which

  • Headless core (@restormel/keys only) — You want resolution, cost, and server middleware without any UI.
  • React wrapper (@restormel/keys-react) — You're in a React or Next.js app and want drop-in KeyManager, ModelSelector, CostEstimator plus hooks. Recommended for Next.js App Router.
  • Web Components (@restormel/keys-elements) — One integration that works in Astro, vanilla HTML, or any framework.
  • Svelte components (@restormel/keys-svelte) — You're on SvelteKit or Svelte and want native KeyManager, ModelSelector, CostEstimator as Svelte 5 components.

Start with Next.js

  1. Install: pnpm add @restormel/keys @restormel/keys-react @restormel/keys-elements
  2. Add a settings (or similar) page with KeyManager and your key storage.
  3. Use the core on the server for resolution and cost; use the React components on the client for UI.

See also

  • Cloud API — gateway URL, Developer Portal, and API reference
  • Dashboard — create projects and API keys
  • Sign in — authenticate with GitHub
  • Pricing — tiers and plans