Skip to content
Skillpedia
APIs & servers (backend)25k · #10102

nocobase-app-plugin-notification-web-push

What it does

This skill adds Web Push notifications to a NocoBase 3 app, so users can receive alerts on their browsers and devices. It is for developers who want push alerts with secure device subscriptions.

When to use it

  • ✓When you want users to get browser push alerts from a NocoBase app.
  • ✓When you need users to manage their device push preferences on a settings page.
  • ✓When you need to configure HTTPS and VAPID keys for web push.

Skill link

https://github.com/nocobase/nocobase/blob/v3-develop/packages/plugins/app-plugin-notification-web-push/skills/nocobase-app-plugin-notification-web-push/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/nocobase/nocobase/blob/v3-develop/packages/plugins/app-plugin-notification-web-push/skills/nocobase-app-plugin-notification-web-push/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Can you set up browser push notifications in my NocoBase app so users are alerted when an order is approved?”

5 new skills a week. 1 minute to read.

How it works

The AI registers the Web Push plugin, adds its configuration, and places the preferences component on a signed-in page. Notifications are then sent through the existing notification service to chosen devices or users.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Web Push integration

Read this package's README before integration. Register its server plugin after authentication, authorization and notification, and its client factory for localized device preferences. Add pushConfig under push to application default configuration and configure notification.channels.webPush.type as web-push. Mount the exported PushPreferences on an authenticated preferences page and call unsubscribeDevice during sign-out. Provide HTTPS, persistent VAPID and secrets keys, and application-owned installation metadata using pushManifest where installation is needed.

Send title/body/url/dedupeKey with explicit device and user recipients using the existing notification service. URLs include the application's public base path. Business authorization and foreground takeover belong to the application; use the optional named beforeSend hook on every attempt and never put business state into the generic channel. A missing named hook refuses delivery.

The device API is fixed at /api/webPush; browser storage and logout use the framework defaults. defineWebPushPlugin({ title, icon }) accepts application branding, and the worker remains at <publicBasePath>/push-worker.js. Register named afterSubscribe hooks on the service for application initialization after a device is saved; do not mount aliases or customize browser protocols.

Subscriptions accept application language identifiers; untranslated test notifications fall back to English. Renewing an existing subscription preserves its enabled state. Device JSON bodies are strict: listing includes meta.total, PATCH returns the updated device, DELETE returns 204 (404 for missing or unowned devices), and test submission returns 202. Click URLs must be root-relative within the public base path. Message validation rejects the final serialized title/body/url/dedupeKey payload above 3993 UTF-8 bytes before queueing, reserving the aes128gcm encryption overhead within 4096 bytes.

FAQ

Does it need HTTPS?

Yes. The skill says the app must be served over HTTPS for push to work.

Can my app check business rules before a push is sent?

Yes. The application can supply a named hook that runs before each send.

What happens at sign-out?

The skill says to unsubscribe the device during sign-out.

Details

Original description by the author

Integrate encrypted browser push subscriptions and the Web Push notification channel in a NocoBase 3 application.

repo: nocobase/nocobase

Popularity

GitHub stars
25k
Ranking position
#10102
License
—
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills