diff --git a/shows/861 - Local Data Sqlite LocalStorage Session Cookies and IndexDB.md b/shows/861 - Local Data Sqlite LocalStorage Session Cookies and IndexDB.md new file mode 100644 index 00000000..bf20f421 --- /dev/null +++ b/shows/861 - Local Data Sqlite LocalStorage Session Cookies and IndexDB.md @@ -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) \ No newline at end of file