sveltekit-typescript

Sveltekit Typescript

Demo of duckdb-wasm in static sveltekit.

A simple svelte-kit app to show loading duckdb-wasm using svelte-kit.

Andre Kohn has a base svelte example, but it requires a lot of rollup configuration and I want to see how far you can get using vite's built-in ?worker and ?url loaders for the tags.

It doesn't properly negotiate the different bundles, but everything else seems to work.

Example using adapter static on github pages.

To run locally:

git clone https://github.com/duckdb-wasm-examples/sveltekit-typescript sveltekit-typescript
cd sveltekit-typescript
npm i
npm run dev

and visit http://localhost:1922/sveltekit-typescript.

Top categories

svelte logo

Want a Svelte site built?

Hire a Svelte developer
Loading Svelte Themes