Skip to main content

PRO Version

SVAR Kanban comes in two editions. The open-source MIT edition covers most board-building needs. The PRO edition adds capabilities that matter for larger, production-grade boards: swimlanes, a group manager, column flow, drag-in from outside the board, dynamic loading, undo/redo history, and data export.

MIT vs PRO at a glance​

The MIT edition ships on the public npm registry and is free for any project. The PRO edition is a commercial package available through a private registry or as a trial.

CapabilityMITPRO
Columns, cards, drag-and-dropYesYes
Built-in editor, context menu, toolbarYesYes
Card customization (sections, custom body, CSS)YesYes
Filtering and sortingYesYes
Virtualization (cards and columns)YesYes
Cover imagesYesYes
Stack layout for narrow screens (render.layout: "stack")YesYes
Automatic columns from card data (columnAccessor)YesYes
Column actions (add-column, update-column, move-column, delete-column)YesYes
Fixed column width (width)YesYes
Card and column menusYesYes
Card list slots (cardListStart, cardListEnd)YesYes
Column summariesYesYes
Custom editor items (rich text, code, attachments)YesYes
REST data provider (RestDataProvider)YesYes
Swimlanes (swimlanes, swimlaneAccessor, swimlane actions)-Yes
Swimlanes in the stack layout-Yes
Group manager (GroupManager)-Yes
Column flow: card grid with cardWidth or cardHeight-Yes
Drag cards in from outside the board (cardProjection)-Yes
Dynamic column loading (dynamicData)-Yes
Undo / redo history-Yes
Export to PDF, PNG, and xlsx (export-data)-Yes

Both editions use the same component names and API for shared features.

The MIT edition accepts the PRO-only props without errors, but they have no effect:

  • cardProjection is accepted and ignored.
  • swimlanes and swimlaneAccessor are inert, so the board shows plain columns.
  • cardWidth and cardHeight are dropped from column configs, so every column renders a regular card list.

PRO-only features​

Swimlanes​

Swimlanes split every column into horizontal lanes, for example by team or priority. Pass the lanes, or omit them to build lanes from the card field that swimlaneAccessor names (swimlane by default). Cards move between lanes by drag-and-drop, and lanes collapse individually. The stack layout keeps the lanes too.

<Kanban {cards} {columns} {swimlanes} swimlaneAccessor="team" />

To change lanes from code, use the add-swimlane, update-swimlane, move-swimlane, and delete-swimlane actions.

Group manager​

GroupManager is a ready-made panel where users add, rename, reorder and delete columns and swimlanes. It can be shown as a sidebar, modal, popup or inline.

<GroupManager
{api}
placement="sidebar"
swimlanes
onclose={() => (open = false)}
/>

Column flow​

A column with cardWidth or cardHeight lays its cards out as a grid of fixed-size tiles that wraps to the column width. If you set only one of them, the other one defaults to 220 (width) or 140 (height). The grid works with virtualization and drag-and-drop.

const columns = [
{ id: "backlog", label: "Backlog" },
{
id: "design",
label: "Design",
width: 480,
cardWidth: 220,
cardHeight: 140,
},
];

Drag from outside​

Set cardProjection while an item from your own UI is dragged over the board. The widget shows the drop placeholder and resolves the target column, lane and position; you add the card on drop.

Dynamic column loading​

Large boards don't need to load all cards up front. Set dynamicData to true and start with an empty cards array. The widget fires request-data as each column becomes visible, and you respond with provide-data to fill it in.

<Kanban
cards={[]}
{columns}
dynamicData={true}
onrequestdata={({ id }) => loadColumn(id)}
/>
async function loadColumn(columnId) {
const cards = await fetch(`/api/cards?column=${columnId}`).then(r =>
r.json()
);
api.exec("provide-data", { id: columnId, cards });
}

Undo and redo​

Enable history on the board to let users step backward and forward through card changes. Every mutating action (add-card, update-card, move-card, duplicate-card, delete-card) pushes a snapshot automatically.

<Kanban {cards} {columns} history={true} bind:this={api} />
<Toolbar {api} undo />

The Toolbar with undo enabled shows undo/redo buttons that reflect the current history state. You can also trigger them programmatically:

api.exec("undo", {});
api.exec("redo", {});

Export to PDF, PNG, and xlsx​

The export-data action collects the visible board data for export. For PDF and PNG, the widget posts the data to the SVAR export service, which returns the generated file. The PRO edition includes the service sources, so you can host it yourself:

import { version } from "@svar/svelte-kanban";

const url = "https://export.svar.dev/kanban/" + version;

api.exec("export-data", { url, format: "pdf", skin: "print" });

For xlsx, pass the exported records to a lightweight client-side library and build the Excel file without a server:

import { writeWorkbook, downloadBlob } from "xlsx-writer-lite";

api.exec("export-data", {
url: async (cfg, records) => {
const blob = await writeWorkbook(records, cfg.excel.columns, {
header: true,
});
downloadBlob(blob, "cards.xlsx");
},
format: "xlsx",
excel: {
columns: [
{ id: "title", label: "Task", width: 50 },
{ id: "status", label: "Status" },
],
},
});

For a UI-driven export flow, pair the board with ExportPopup from @svar-ui/svelte-export-popup. The popup lets users pick the export format and its options in a step-by-step dialog.

Upgrading​

Trial version​

Install the free 30-day trial package from the public registry:

# yarn
yarn add @svar-ui/trial-svelte-kanban

# npm
npm install @svar-ui/trial-svelte-kanban

PRO edition​

See the license page for pricing and purchase details.

After purchase you'll receive an email with credentials for the private npm registry that hosts the PRO build. Log in to the registry first:

npm config set @svar:registry https://npm.svar.dev
npm login --registry=https://npm.svar.dev --scope=@svar --auth-type=legacy

Then install the package:

# yarn
yarn add @svar/svelte-kanban

# npm
npm install @svar/svelte-kanban

When upgrading from MIT to PRO, replace @svar-ui/svelte-kanban with @svar/svelte-kanban in your imports.