{"id":21399003,"url":"https://github.com/appzer/nodejs-pushsafer","last_synced_at":"2025-07-13T20:33:14.230Z","repository":{"id":65371581,"uuid":"67708020","full_name":"appzer/nodeJS-pushsafer","owner":"appzer","description":"Send pushsafer.com push notifications from Node.JS","archived":false,"fork":false,"pushed_at":"2023-03-11T13:20:38.000Z","size":39,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-29T04:37:45.925Z","etag":null,"topics":["android","ios","ipad","iphone","node-js","nodejs","notification","notifications","push","push-notifications","pushnotification","pushnotifications","pushsafer","win10","windows"],"latest_commit_sha":null,"homepage":"https://www.pushsafer.com","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/appzer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-09-08T14:01:23.000Z","updated_at":"2023-03-11T13:20:01.000Z","dependencies_parsed_at":"2024-06-20T19:06:41.723Z","dependency_job_id":"96ddda6b-67ad-4327-bd94-4379377b24f1","html_url":"https://github.com/appzer/nodeJS-pushsafer","commit_stats":{"total_commits":52,"total_committers":3,"mean_commits":"17.333333333333332","dds":"0.40384615384615385","last_synced_commit":"8ee8c876907afdacae689a39163cd2f9f175385c"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/appzer/nodeJS-pushsafer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appzer%2FnodeJS-pushsafer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appzer%2FnodeJS-pushsafer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appzer%2FnodeJS-pushsafer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appzer%2FnodeJS-pushsafer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/appzer","download_url":"https://codeload.github.com/appzer/nodeJS-pushsafer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appzer%2FnodeJS-pushsafer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265200034,"owners_count":23726755,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","ios","ipad","iphone","node-js","nodejs","notification","notifications","push","push-notifications","pushnotification","pushnotifications","pushsafer","win10","windows"],"created_at":"2024-11-22T15:12:31.090Z","updated_at":"2025-07-13T20:33:13.970Z","avatar_url":"https://github.com/appzer.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Pushsafer](https://www.pushsafer.com/de/assets/logos/logo.png)\n\nSend [pushsafer.com](https://www.pushsafer.com) notifications from Node.JS\n\nPushsafer make it easy and safe to get push-notifications in real time on your\n- Android device\n- iOS device (incl. iPhone, iPad, iPod Touch)\n- Windows Phone \u0026 Desktop\n- Browser (Chrome \u0026 Firefox)\n\n[API description](https://www.pushsafer.com/en/pushapi)\n\n## Usage\n\n### Install\n\n\tnpm install pushsafer-notifications\n\t\n### Pushsafer API values\n\nAny API parameters, as found on https://www.pushsafer.com/en/pushapi, can be passed in the object. Here's an example with many different parameters.\n\n```javascript\nvar msg = {\n\tm: 'This is a Node.js test message',   // Message (required)\n\tt: \"Node.js Test\",                     // Title (optional)\n\ts: '8',                                // Sound (value 0-60) (optional)\n\tv: '2',                                // Vibration (empty or value 1-3) (optional)\n\ti: '5',                                // Icon (value 1-177) (optional)\n\tc: '#FF0000',                          // Icon color hexadecimal color code (optional) \n\td: '221',                              // Device or Device group id (optional)\n\tu: 'https://www.pushsafer.com',        // an URL (optional)\n\tut: 'Pushsafer.com',                   // URLs title (optional)\n\tl: '10',                               // Time to Live (optional: 0-43200 minutes)\n\tpr: '2',                               // Priority (optional: -2, -1, 0, 1, 2)\n\tre: '60',                              // Retry (optional: 60-10800 seconds)\n\tex: '60',                              // Expire (optional: 60-10800 seconds)\n\tcr: '20',                              // Confirm (optional: 10-10800 seconds)\n\ta: '1',\t\t\t\t       // Answer\n\tao: 'yes|no|maybe',\t\t       // Answer Options seperated by a pipe character\n\taf: '1',\t\t\t       // Force Answer\n\tp: '',                                 // Image converted to \u003e Data URL with Base64-encoded string (optional)\n\tp2: '',                                // Image 2 converted to \u003e Data URL with Base64-encoded string (optional)\n\tp3: ''                                 // Image 3 converted to \u003e Data URL with Base64-encoded string (optional)\n};\n```\n## Examples\n\n### Sending a message\n```javascript\n\nvar push = require( 'pushsafer-notifications' );\n\nvar p = new push( {\n\tk: 'Your20CharPrivateKey',             // your 20 chars long private key or 15 chars long alias key  (required)\n\tdebug: true\n});\n\nvar msg = {\n\tm: 'This is a Node.js test message',   // Message (required)\n\tt: \"Node.js Test\",                     // Title (optional)\n\ts: '8',                                // Sound (value 0-28) (optional)\n\tv: '2',                                // Vibration (empty or value 1-3) (optional)\n\ti: '5',                                // Icon (value 1-98) (optional)\n\tc: '#FF0000',                          // Icon color hexadecimal color code (optional)\n\td: '221',                              // Device or Device Group id (optional)\n\tu: 'https://www.pushsafer.com',        // an URL (optional)\n\tut: 'Pushsafer.com',                   // URLs title (optional)\n\tl: '10',                               // Time to Live (optional)\n\tpr: '2',                               // Priority (optional: -2, -1, 0, 1, 2)\n\tre: '60',                              // Retry (optional: 60-10800 seconds)\n\tex: '60',                              // Expire (optional: 60-10800 seconds)\n\tcr: '20',                              // Confirm (optional: 60-10800 seconds)\n\ta: '1',                                // Answer\n\tao: 'yes|no|maybe',                    // Answer Options seperated by a pipe character\n\taf: '1',                               // Force Answer\n\tp: '',                                 // Image converted to \u003e Data URL with Base64-encoded string (optional)\n\tp2: '',                                // Image 2 converted to \u003e Data URL with Base64-encoded string (optional)\n\tp3: ''                                 // Image 3 converted to \u003e Data URL with Base64-encoded string (optional)\n};\n\n// console.log( p );\n\np.send( msg, function( err, result ) {\n\t//console.log( 'ERROR:', err );\n\tconsole.log( 'RESULT', result );\n\t// process.exit(0);\n});\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappzer%2Fnodejs-pushsafer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fappzer%2Fnodejs-pushsafer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappzer%2Fnodejs-pushsafer/lists"}