December 16th, 2024 × #local-storage#offline#privacy
Local Data: Sqlite, LocalStorage, Session, Cookies and IndexDB
Discussion on different ways to store data locally in the browser for things like user preferences, allowing app usage before signup, faster data access, privacy, persisting data on refresh, and storing auth tokens.
Scott and Wes dive into the world of local data storage, breaking down the pros and cons of Sqlite, LocalStorage, SessionStorage, Cookies, and IndexedDB. They cover real-world use cases like user settings, offline data, and auth tokens, while sharing their favorite tools and strategies for keeping your data fast and secure.
Show Notes
- 00:00 Welcome to Syntax!
- 00:30 Brought to you by Sentry.io.
- 01:43 Why store data locally.
- 07:08 Where to store data.
- 12:15 BYOJS Storage.
- 13:41 SQlite via WASM.
- 14:12 Penalties of SQLite in browser via WASM.
- 15:29 PGLite.
- 16:23 Dealing with migrations.
- 16:55 The advantages of the approach.
- 18:42 Dexie.
- 19:59 Patch messages.
- 21:25 A few options.
Hit us up on Socials!
Syntax: X Instagram Tiktok LinkedIn Threads
Wes: X Instagram Tiktok LinkedIn Threads