Skip to main content

Install

During early access, the SDK comes from Nitrakit's package registry. You get an access token with your invite: it lets your machines and your CI download the packages. Keep it out of your repository, the same as any other credential: the steps below read it from an environment variable (NITRAKIT_TOKEN) or from your user-level Gradle settings.

No token yet? Request early access.

The web SDK is @nitrakit/web, with @nitrakit/react, @nitrakit/vue, @nitrakit/svelte and @nitrakit/angular on top. Point the @nitrakit scope at the registry in your project's .npmrc (safe to commit: the token comes from the environment):

.npmrc
@nitrakit:registry=https://packages.nitrakit.dev/api/packages/nitrakit/npm/
//packages.nitrakit.dev/api/packages/nitrakit/npm/:_authToken=${NITRAKIT_TOKEN}

Then, with NITRAKIT_TOKEN set:

npm install @nitrakit/web # or @nitrakit/react, @nitrakit/vue, @nitrakit/svelte, @nitrakit/angular

pnpm and Yarn (v1) read the same .npmrc. For Yarn 2+, add the scope to .yarnrc.yml:

.yarnrc.yml
npmScopes:
nitrakit:
npmRegistryServer: "https://packages.nitrakit.dev/api/packages/nitrakit/npm/"
npmAuthToken: "${NITRAKIT_TOKEN}"

Versions​

All packages share one version number and are released together. Use the same version on every platform you ship.