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
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 app | Use | Guide |
|---|---|---|
| Any site, page builder or plain HTML | The hosted script | Add Plandalf to your site |
| Plain JavaScript with a bundler | @plandalf/sdk | HTML |
| React or Next.js | @plandalf/react | React, Next.js |
| Vue or Nuxt | @plandalf/vue | Vue, Nuxt |
| Svelte or SvelteKit | @plandalf/svelte | SvelteKit |
| Angular | @plandalf/angular | Angular |
| Astro | The hosted script, or a framework package inside an island | Astro |
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.