Pushpad

pushpad

9431 subscribers

PrivacyNewsletter.page

Introducing Pushpad Node v2: full API and TypeScript support is here

2 months ago

We are happy to announce the release of the Pushpad Node SDK v2, a major rewrite of the Node.js library that brings full API access (not just sending notifications) and TypeScript support within your Node.js apps.

What’s new in v2?

Up until now, the official Node.js library supported only the Notifications endpoints of the Pushpad API (i.e. sending push messages).

With v2, you can now access all API endpoints (Subscriptions, Projects, Senders, etc.), just like with our REST API.

This makes it far more powerful for managing your push infrastructure from Node.js apps. It also enables advanced automations that were not possible before.

For example, you can find, count or update subscriptions from server-side. You can detect if a user is subscribed or not using Node.js. You can list sent notifications and get their stats (making it easy to build custom dashboards). You can also manage projects and senders programmatically if you manage many different websites.

You no longer have to mix Node.js and raw HTTP calls for “non-notification” operations: everything lives in one library.

v2 is also aligned with the OpenAPI specification that we announced a few weeks ago.

The new version also brings TypeScript support and code assistance inside your editor when you interact with Pushpad.

It also uses modern JavaScript, like ECMAScript Modules (ESM) and async / await for Promises, improving readability and developer experience.

Migration and compatibility notes

The old push-only library (v1) remains available, but no new features will be added there.

If you are using Pushpad Node, we recommend upgrading to v2.

Please read the UPGRADING.md file in the GitHub repository for more information.

The upgrade should be straightforward, but you can also contact our support if you need assistance with the migration.


Thank you for being part of the Pushpad developer community.

We hope this release helps you build more complete integrations with Pushpad, faster. As always, we welcome your feedback: feel free to open new issues or pull requests in the GitHub repository.

Happy coding,

The Pushpad Team