Offline App with SvelteKit + SQLite Part 1: Setup WebAssembly SQLite



Offline App with SvelteKit + SQLite Part 1: Setup WebAssembly SQLite

Offline App with SvelteKit + SQLite Part 1: Setup WebAssembly SQLite

SvelteKit Playlist: https://www.youtube.com/watch?v=iO4VUbQ6ua4&list=PLIyDDWd5rhaYwAiXQyonufcZgc_xOMtId

Code: https://github.com/phartenfeller/sveltekit-sqlite-offline-app/tree/part1

Check out the first tutorial where I show you how to get SQLite (WebAssembly) up and running in a SvelteKit project. The goal is to make a SvelteKit app that is offline usable.

Follow me:
Twitter: https://twitter.com/phartenfeller
Mastodon: https://mastodon.social/@phartenfeller
Blog: https://hartenfeller.dev/blog
LinkedIn: https://www.linkedin.com/in/phartenfeller/

Support me:
https://www.buymeacoffee.com/hartenfeller
https://paypal.me/phartenfeller

Timestamps:
00:00 About SQLite WebAssembly
03:05 SvelteKit Setup + Logger
06:37 Web Worker Setup
13:02 Load SQLite WebAssembly
20:28 Localhost HTTPs and set headers for OPFS
22:19 OPFS explorer

Resources:
https://sqlite.org/download.html
https://developer.mozilla.org/en-US/docs/WebAssembly
https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API#browser_compatibility
https://sqlite.org/wasm/doc/trunk/persistence.md#coop-coep
https://github.com/tomayac/opfs-explorer

Comments are closed.