from Hacker News

Show HN: Ahey – A simple pub-sub service built on top of web push

by vasanthv on 1/30/25, 11:39 PM with 16 comments

  • by fzaninotto on 1/31/25, 6:06 AM

    This is nice, but I wonder about the actual use cases of such a service, given the very loose permissions:

    1. Anyone can subscribe to a channel 2. Any registered user can publish to a channel 3. Only registered users can publish to their personal channel (@username)

    The second point in particular is problematic. I don't want to add notifications to my app, only to have a script kiddie use is to spam my users.

  • by edoceo on 1/31/25, 2:14 AM

    This is cool. There was an old post here about one called patchbay (IIRC) then I made one called httpubsub (go, quick and dirty).

    I'm using one called ntfy.sh now; it's good; has all the use-case & app and stuff. Self hostable FTW.

  • by programmarchy on 1/31/25, 12:51 AM

    I’m not super familiar with browser notifications, but I want to use them in my next project. Does this library make it easy to add push notifications to my web app similar to airship for mobile app push notifications?
  • by Tistron on 1/31/25, 7:36 AM

    I just use a telegram bot that my scripts use to send me notifications that I receive in a few different channels, depending on topic.
  • by cess11 on 1/31/25, 10:38 PM

    The resend verification email function in model.js doesn't check the input against database and can probably be used for nefarious purposes.
  • by fitsumbelay on 1/31/25, 4:47 AM

    agreed that this is a cool project, am a bit (just a wee bit) bummed about the express dependency.

    I've never used the Push API but look forward to it, and I appreciate this post for putting this tech back on my radar. I can envision a lot of cool self-hosted projects based on it

  • by ShaggyHotDog on 1/31/25, 4:48 AM

    I haven't tried web notifications yet, good reason to try now.
  • by revskill on 1/31/25, 1:32 AM

    There is no docs ? How can we also listen via http server ?
  • by languagehacker on 1/31/25, 2:17 PM

    Reminds me of yo
  • by ANaimi on 1/31/25, 9:28 AM

    Such a clean codebase and style! great job
  • by Gotperl on 1/31/25, 4:31 PM

    I was disappointed when I found this isn't a service that delivers Publix Subs.