Demo of duckdb-wasm in static sveltekit.
This product analysis focuses on a simple Svelte Kit app that showcases the use of loading duckdb-wasm using Svelte Kit. The goal is to explore how much can be achieved using Vite’s built-in ?worker and ?url loaders for the tags. While the app does not effectively negotiate the different bundles, it demonstrates functionality in other areas. The example on GitHub Pages utilizes the adapter static. This analysis will provide insights into the installation process and summarize the app’s features.
To run the app locally, follow the steps below:
npm install
npm run dev
In summary, this product analysis examined a simple Svelte Kit app that showcases the loading of duckdb-wasm using Vite’s built-in ?worker and ?url loaders. While the app has certain limitations in negotiating different bundles, it successfully integrates duckdb-wasm with the Svelte Kit framework. The installation process involves cloning the GitHub repository, installing dependencies, and running the app locally.