Shane Tobar

Let Me Know when the next post is out

web; lmk; astro
170 words

A while back, I read Deane Barker's The Missing Protocol: Let Me Know. It's a neat little concept where users are notified when some one happens, then moves on/is discarded. We scrap most of the relationship associated with typical subscriptions.

So I implemented a small version for this site where every note in a series gets a JSON endpoint under /lmk/. The latest post returns happened: false. Publishing the next post flips the previous endpoint to true, with a message and a link to the new note. Since the site is statically generated, the server side is really just JSON files produced at build time. The available endpoints are listed at /lmk.json.

The browser client stores subscriptions in localStorage, checks them when the page loads or when you press "Check now", and fires a notification when something happens. Resolved subscriptions are deleted automatically.

It is not a full background agent currently as checks only happen when the client runs.

That's pretty much all I've got. Shout out to Deane Barker again, this was/is cool!