PlandalfDocsSign inStart free trial

Developers

SDK packages

Plandalf's SDK comes two ways: the hosted script that every site can load, and npm packages for apps with a bundler. Both run the same code. This page lists every package and the version npm has.

Packages

PackageVersionFornpm
@plandalf/sdk2.0.0Plandalf JavaScript SDK: checkouts, paywalls, promos and referrals for any website or framework.Publishing soon
@plandalf/react2.0.0React provider, hooks and components for Plandalf checkouts, paywalls and promos. Works with Next.js App Router.Publishing soon
@plandalf/vue0.1.0Vue 3 plugin, composables and a gate component for Plandalf checkouts, paywalls and promos. Works with Nuxt.Publishing soon
@plandalf/svelte0.1.0Svelte stores and actions for Plandalf checkouts, paywalls and promos. Works with SvelteKit, Svelte 4 and 5.Publishing soon
@plandalf/angular0.1.0Angular providers and signals for Plandalf checkouts, paywalls and promos.Publishing soon
npm install @plandalf/sdk
npm install @plandalf/react
npm install @plandalf/vue
npm install @plandalf/svelte
npm install @plandalf/angular

Each framework package depends on @plandalf/sdk, so install only the one for your framework. Plandalf loads its checkout screens from your Plandalf host when a checkout opens, so a checkout looks the same whichever version you installed.

Which to use

Your appUseGuide
Any site, page builder or plain HTMLThe hosted scriptAdd Plandalf to your site
Plain JavaScript with a bundler@plandalf/sdkHTML
React or Next.js@plandalf/reactReact, Next.js
Vue or Nuxt@plandalf/vueVue, Nuxt
Svelte or SvelteKit@plandalf/svelteSvelteKit
Angular@plandalf/angularAngular
AstroThe hosted script, or a framework package inside an islandAstro

Versions

The versions above come from each package's source and from npm when the docs were built. Upgrade with your package manager as usual; the hosted script always runs the latest SDK.