[HN Gopher] Show HN: Ahey - A simple pub-sub service built on to...
___________________________________________________________________
Show HN: Ahey - A simple pub-sub service built on top of web push
Author : vasanthv
Score : 103 points
Date : 2025-01-30 23:39 UTC (23 hours ago)
(HTM) web link (ahey.io)
(TXT) w3m dump (ahey.io)
| programmarchy wrote:
| 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?
| revskill wrote:
| There is no docs ? How can we also listen via http server ?
| williamstein wrote:
| Docs here? https://github.com/vasanthv/ahey
| edoceo wrote:
| 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.
| mazambazz wrote:
| Ntfy is phenomenal. I love having my own compiled app for the
| background notifications on a self-hosted instance. It's so
| easy to hook any update or alerts I want into and get it
| delivered to any of my devices.
|
| Also, a really nifty cross-platform clipboard.
| fitsumbelay wrote:
| 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
| ShaggyHotDog wrote:
| I haven't tried web notifications yet, good reason to try now.
| fzaninotto wrote:
| 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.
| throwaway_352 wrote:
| The second point is solved with the 3rd point I think. In your
| case you need to create a user channel
|
| From the FAQ:
|
| > Ahey.io has two types of channels:
|
| > Regular channels: Any authenticated user can publish to these
| channels.
|
| > User channels: These channels are in the format @username,
| and only the user who created the user account can publish to
| it.
| Tistron wrote:
| 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.
| xeonax wrote:
| Same here. you also get buttons to interact.
| ANaimi wrote:
| Such a clean codebase and style! great job
| languagehacker wrote:
| Reminds me of yo
| Gotperl wrote:
| I was disappointed when I found this isn't a service that
| delivers Publix Subs.
| easton wrote:
| I'll fund a startup that uses web push to tell me when chicken
| tender subs are on sale, though.
| cess11 wrote:
| The resend verification email function in model.js doesn't check
| the input against database and can probably be used for nefarious
| purposes.
___________________________________________________________________
(page generated 2025-01-31 23:02 UTC)