A working starting point
npm install @birchui/svelte @birchui/ganttShow Gantt.svelte
<script>
import { createSvelteAction } from '@birchui/svelte';
import { ganttDefinition } from '@birchui/gantt';
const gantt = createSvelteAction(ganttDefinition);
const tasks = [
{ id: 'fitout', name: 'Level 4 office fit-out' },
{ id: 'survey', parentId: 'fitout', name: 'Site survey', duration: 2 },
{ id: 'strip', parentId: 'fitout', name: 'Strip out', duration: 3 },
{ id: 'handover', parentId: 'fitout', name: 'Handover', type: 'milestone' },
];
const dependencies = [
{ id: 'd1', from: 'survey', to: 'strip', type: 'FS' },
{ id: 'd2', from: 'strip', to: 'handover', type: 'FS' },
];
</script>
<div
style="height: 520px"
use:gantt={{
licenseKey: 'LQ1.your-key',
projectStart: '2026-03-02',
tasks: tasks,
dependencies: dependencies,
showCriticalPath: true,
on: {
taskChange: ({ task }) => console.info('Rescheduled', task.id),
},
}}
></div>Measured: 5,000 tasks with 8,000 links schedule in 60–80 ms, and a single edit reschedules in 8–14 ms.
How it fits Svelte
Birch UI Gantt schedules on working calendars with a forward and backward pass, finish-to-start, start-to-start, finish-to-finish and start-to-finish links, constraints and baselines. In Svelte it mounts through the adapter’s generic widget factory, the same contract every product follows.
The Svelte package offers the Gantt chart both as a component and as a use: action. Components ship as .svelte source and compile with your app through the svelte export condition.
Keep large arrays and the bound api in $state.raw. Deep $state would proxy every record for no gain. During SvelteKit SSR the component renders its empty container, and the widget is created in an effect in the browser.
Questions
Is the Svelte Gantt production ready?
It is a feature-complete v0.1 in early access: the API may still change before 1.0, and every update is free to buyers.
Can it import MS Project files?
Yes, MS Project XML in both directions, without DOMParser, plus JSON and a headless engine for workers.
Is the Svelte Gantt chart written for Svelte 5?
Yes. Props and handlers follow runes, and the action form fits markup where a component would be in the way.
Is Svelte a second-class target?
No. The Svelte adapter runs the same smoke tests in CI as React, Vue and Angular, over the same engine.
Same engine, other pairings
Every Birch UI product runs in every adapter.