diff --git a/.obsidian/workspace.json b/.obsidian/workspace.json index 63c98f17..b1d9f0bf 100644 --- a/.obsidian/workspace.json +++ b/.obsidian/workspace.json @@ -13,12 +13,12 @@ "state": { "type": "markdown", "state": { - "file": "fleeting-notes/2024-11-15.md", + "file": "fleeting-notes/2025-01-05.md", "mode": "source", "source": false }, "icon": "lucide-file", - "title": "2024-11-15" + "title": "2025-01-05" } }, { @@ -49,8 +49,7 @@ "title": "2025-01-01" } } - ], - "currentTab": 2 + ] } ], "direction": "vertical" @@ -188,8 +187,10 @@ }, "active": "cdd64a28cc6fe199", "lastOpenFiles": [ - "fleeting-notes/2024-12-23.md", "fleeting-notes/2025-01-01.md", + "fleeting-notes/2025-01-05.md", + "fleeting-notes/2024-11-15.md", + "fleeting-notes/2024-12-23.md", "fleeting-notes/2024-12-20.md", "fleeting-notes/2024-12-07.md", "fleeting-notes/2024-12-13.md", @@ -212,8 +213,6 @@ "fleeting-notes/2024-12-05.md", "fleeting-notes/2024-12-04.md", "fleeting-notes/2024-12-03.md", - "fleeting-notes/2024-11-24.md", - "fleeting-notes/2024-11-25.md", "planning/TikTok Filters.canvas", "planning/Face Wall Game.canvas", "planning/Face wall game.canvas", diff --git a/fleeting-notes/2025-01-01.md b/fleeting-notes/2025-01-01.md index b8cbd2d9..28bfc441 100644 --- a/fleeting-notes/2025-01-01.md +++ b/fleeting-notes/2025-01-01.md @@ -13,4 +13,4 @@ Some things on my mind: - Simplify my notes setup to make it _even_ easier to jot notes and write more essays. I like this guide https://stephango.com/vault - Finish off my big two game. building it has gotten me wanting to learn more about real time systems. I wanna go deeper into websockets and server sent events. - building big two has made me want to explore building my own version of pocketbase with better types like convex. Hono.js looks like it could be core pillar to build this. -- I keep want to get better at vim and neovim. I want to build up my dev workflow with thi +- I keep want to get better at vim and neovim. I want to build up my dev workflow with this. diff --git a/fleeting-notes/2025-01-05.md b/fleeting-notes/2025-01-05.md new file mode 100644 index 00000000..f302edeb --- /dev/null +++ b/fleeting-notes/2025-01-05.md @@ -0,0 +1,14 @@ +--- +publish_date: 2025-01-05 +tags: + - realtime +--- + + +Nerd sniped myself trying to drop pocketbase as my realtime db. A sort of simpler hacky alternative has been to use server sent events. I've gotten something working by combining hono.js , drizzle orm and sqlite. hono.js makes it really easy to create a sse endpoint, drizzle gives me TS QOL and sqllite lite will just make deploying things easier. + + +1. within my insertion POST hono endpoint i emit an insert event along with the data payload +2. within my sse endpoint, its listening to events in step one +3. when an event is received, the sse endpoint will write to the SSE stream. +