Skip to content

push

APNs + FCM push notification relay with Hasura event-trigger fan-out. Free: MIT licensed.

Terminal window
nself plugin install push

Provides a push notification relay for Apple Push Notification service (APNs) and Firebase Cloud Messaging (FCM). Integrates with Hasura event triggers so database events fan out directly to device push notifications without custom server code. Tracks delivery state for each notification.

Env VarDefaultDescription
PUSH_APNS_KEY_IDnoneAPNs key ID from Apple Developer portal
PUSH_APNS_TEAM_IDnoneApple Developer team ID
PUSH_APNS_PRIVATE_KEYnoneAPNs .p8 private key (base64 encoded)
PUSH_APNS_BUNDLE_IDnoneiOS app bundle identifier
PUSH_FCM_PROJECT_IDnoneFirebase project ID
PUSH_FCM_CREDENTIALSnoneFirebase service account JSON (base64 encoded)
PUSH_APNS_ENVproductionproduction or sandbox

No fixed external port. The push relay runs as an internal service triggered by Hasura events.

2 tables added to your Postgres database:

  • np_push_queue: queued push notifications pending delivery
  • np_push_log: delivery history and status per notification

None. Internal only.

The push plugin registers a Hasura event trigger. When a row is inserted into np_push_queue, Hasura calls the push relay to deliver it. No custom webhook code required.