🦆.lol

Fediverse (Lemmy) | GitHub
Feb 10, 2025 | 🔗 | Discuss on Lemmy

Server pushed notifications to a PWA (works on iOS!)

I love the idea of PWAs (progressive web apps, MDN): develop & debug like a website, no app store, works (...mostly) everywhere. Of course, there are some limitations, and each platform works slightly differently, but it still seems like a nice way to create simple apps that don't use too many APIs (or prototype them, at least). I spent a day figuring out how to get a PWA working in iOS, create notifications, and to trigger notifications from the server.

Code, and instructions to run it yourself: web_push_rust_example

I used a few dependencies / resources:


Oct 7, 2023 | 🔗 | Discuss on Lemmy

Publishing .local domains, automatically

My first thing! I've been playing with random things in Docker containers on random local devices recently, but I didn't like using IPs, or ports, or managing DNS servers, or adding DNS entries to all my clients. I love how Traefik configures itself based on Docker compose labels, so I made a tool that does the same thing, but for using mDNS to publish `.local` addresses:

github.com/ducklol2/quack_domains

I swear that I looked around for something like this prior to building it myself, and somehow I didn't find anything - but turns out many others have built something similar. Check them out too, see what makes sense to you!