{"id":31450603,"url":"https://github.com/dpikalov/fcm-rest","last_synced_at":"2026-05-06T06:33:14.884Z","repository":{"id":57954361,"uuid":"529377098","full_name":"dpikalov/fcm-rest","owner":"dpikalov","description":"Small nodejs lib to send push notifications via REST API (google FCM).","archived":false,"fork":false,"pushed_at":"2022-09-02T15:18:25.000Z","size":9,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-01T04:28:20.650Z","etag":null,"topics":["fcm","fcm-notifications","firebase","nodejs","npm","rest-api"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dpikalov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-08-26T19:10:51.000Z","updated_at":"2025-07-20T15:51:14.000Z","dependencies_parsed_at":"2023-01-17T18:30:32.224Z","dependency_job_id":null,"html_url":"https://github.com/dpikalov/fcm-rest","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dpikalov/fcm-rest","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpikalov%2Ffcm-rest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpikalov%2Ffcm-rest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpikalov%2Ffcm-rest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpikalov%2Ffcm-rest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dpikalov","download_url":"https://codeload.github.com/dpikalov/fcm-rest/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpikalov%2Ffcm-rest/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278143526,"owners_count":25937129,"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","status":"online","status_checked_at":"2025-10-03T02:00:06.070Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["fcm","fcm-notifications","firebase","nodejs","npm","rest-api"],"created_at":"2025-10-01T04:22:10.323Z","updated_at":"2026-05-06T06:33:14.869Z","avatar_url":"https://github.com/dpikalov.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FCM-REST\n![npm install](https://img.shields.io/npm/v/fcm-rest)\n![npm install](https://img.shields.io/npm/l/fcm-rest)\n![npm install](https://img.shields.io/npm/dm/fcm-rest)\n\n\nFCM implementation based on REST API, supports proxy. No dependencies on firebase framework.\n\nImplements ```send-message``` HTTP APIs ```v1``` and ```legacy```\n\n**Legacy API**  \nhttps://firebase.google.com/docs/cloud-messaging/send-message#send_using_the_fcm_legacy_http_api\n\n**V1 API**  \nhttps://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages\n\n\n## Installation\n```\nnpm install fcm-rest\n```\n## Usage\n```\nimport fcm from 'fcm-rest'\n//const fcm = require('fcm-rest')\n\n// recipient\nconst clientToken = 'ZkVNZ...'\n```\n```\n// Use legacy FCM API\nconst serverKey = 'AAAA...'\nawait fcm.sendMessageLegacy(serverKey, clientToken, {\n  notification: { title: 'Hi there' }\n})\n```\n```\n// Use v1 FCM API\nconst gcpServiceAccount = {\n  client_email: '***',\n  project_id  : '***',\n  private_key : '***',\n  ...\n}\nawait fcm.sendMessageV1(gcpServiceAccount, clientToken, {\n  notification: { title: 'Hi there' }\n})\n\n```\n```\n// Send v1 topic\nawait fcm.sendMessageV1(gcpServiceAccount, undefined, {\n  notification: { title: 'Hi there' },\n  topic: 'topic-name'\n})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdpikalov%2Ffcm-rest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdpikalov%2Ffcm-rest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdpikalov%2Ffcm-rest/lists"}