Gathering detailed insights and metrics for @pusher/push-notifications-server
Gathering detailed insights and metrics for @pusher/push-notifications-server
Gathering detailed insights and metrics for @pusher/push-notifications-server
Gathering detailed insights and metrics for @pusher/push-notifications-server
npm install @pusher/push-notifications-server
88.1
Supply Chain
84.4
Quality
76.8
Maintenance
50
Vulnerability
98.6
License
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
20 Stars
169 Commits
23 Forks
11 Watching
11 Branches
14 Contributors
Updated on 28 Mar 2024
JavaScript (95.43%)
TypeScript (4.57%)
Cumulative downloads
Total Downloads
Last day
-19.3%
1,651
Compared to previous day
Last week
10.6%
9,472
Compared to previous week
Last month
-2.8%
39,326
Compared to previous month
Last year
20.4%
462,842
Compared to previous year
1
Full documentation for this SDK can be found here
The Beams Node.js server SDK is available on npm here.
You can install this SDK by using npm:
1$ npm install @pusher/push-notifications-server --save
Or yarn if you prefer:
1$ yarn add @pusher/push-notifications-server
Use your instance id and secret (you can get these from the dashboard) to create a Beams PushNotifications instance:
1const PushNotifications = require('@pusher/push-notifications-server'); 2 3let pushNotifications = new PushNotifications({ 4 instanceId: 'YOUR_INSTANCE_ID_HERE', 5 secretKey: 'YOUR_SECRET_KEY_HERE' 6});
Once you have created your Beams PushNotifications instance, you can immediately publish a push notification to your devices, using Device Interests:
1pushNotifications.publishToInterests(['hello'], { 2 apns: { 3 aps: { 4 alert: 'Hello!' 5 } 6 }, 7 fcm: { 8 notification: { 9 title: 'Hello', 10 body: 'Hello, world!' 11 } 12 } 13}).then((publishResponse) => { 14 console.log('Just published:', publishResponse.publishId); 15}).catch((error) => { 16 console.log('Error:', error); 17});
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 7/12 approved changesets -- score normalized to 5
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
dangerous workflow patterns detected
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More