Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create - (861 - Local Data Sqlite LocalStorage Session Cookies and IndexDB.md) #1923

Merged
merged 1 commit into from
Dec 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---
number: 861
title: "Local Data: Sqlite, LocalStorage, Session, Cookies and IndexDB"
date: 1734346800000
url: https://traffic.libsyn.com/syntax/Syntax_-_861.mp3
youtube_url: https://www.youtube.com/watch?v=VzUHeLsJOrs
---

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](#t=00:00)** Welcome to Syntax!
* **[00:30](#t=00:30)** Brought to you by [Sentry.io](https://sentry.io/syntax).
* **[01:43](#t=01:43)** Why store data locally.
* **[01:55](#t=01:55)** User preferences and settings.
* **[02:50](#t=02:50)** Not logged in state (shopping carts, etc).
* **[03:30](#t=03:30)** Data for faster loading.
* **[03:51](#t=03:51)** Privacy concerns.
* **[04:25](#t=04:25)** Large files or drafts.
* **[05:50](#t=05:50)** Auth tokens.
* **[07:08](#t=07:08)** Where to store data.
* **[07:11](#t=07:11)** Cookies.
* **[07:48](#t=07:48)** Local storage.
* **[09:15](#t=09:15)** Session storage.
* **[10:35](#t=10:35)** [IndexedDB](https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API).
* **[12:15](#t=12:15)** [BYOJS Storage](https://github.com/byojs/storage).
* **[13:41](#t=13:41)** SQlite via WASM.
* **[14:12](#t=14:12)** Penalties of SQLite in browser via WASM.
* **[15:29](#t=15:29)** [PGLite](https://github.com/electric-sql/pglite).
* **[16:23](#t=16:23)** Dealing with migrations.
* **[16:55](#t=16:55)** The advantages of the approach.
* **[18:42](#t=18:42)** [Dexie](https://dexie.org/).
* **[19:59](#t=19:59)** Patch messages.
* **[21:25](#t=21:25)** A few options.
* [TinyBase Docs](https://tinybase.org/guides/the-basics/architectural-options/).
* [Local First Web](https://localfirstweb.dev/).

### Hit us up on Socials!

Syntax: [X](https://twitter.com/syntaxfm) [Instagram](https://www.instagram.com/syntax_fm/) [Tiktok](https://www.tiktok.com/@syntaxfm) [LinkedIn](https://www.linkedin.com/company/96077407/admin/feed/posts/) [Threads](https://www.threads.net/@syntax_fm)

Wes: [X](https://twitter.com/wesbos) [Instagram](https://www.instagram.com/wesbos/) [Tiktok](https://www.tiktok.com/@wesbos) [LinkedIn](https://www.linkedin.com/in/wesbos/) [Threads](https://www.threads.net/@wesbos)

Scott: [X](https://twitter.com/stolinski) [Instagram](https://www.instagram.com/stolinski/) [Tiktok](https://www.tiktok.com/@stolinski) [LinkedIn](https://www.linkedin.com/in/stolinski/) [Threads](https://www.threads.net/@stolinski)

Randy: [X](https://twitter.com/randyrektor) [Instagram](https://www.instagram.com/randyrektor/) [YouTube](https://www.youtube.com/@randyrektor) [Threads](https://www.threads.net/@randyrektor)
Loading