Skip to content

Rewrite README and add community docs - #284

Merged
alex-friedl merged 6 commits into
masterfrom
docs/readme-2026
Nov 24, 2026
Merged

alex-friedl merged 6 commits into
masterfrom
docs/readme-2026

Conversation

@alex-friedl

@alex-friedl alex-friedl commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Rewrites the README as a short landing page, moves reference material to docs/, and adds standard community files.

Changes

  • README (245 lines): tagline and typed example up top, install, quick start, usage (settings, destinations, sending, results), a services table with the credentials each needs, and a documentation index. Layout follows Express, Fastify and pino.
  • docs/payload.md: every data field, by service.
  • docs/fcm.md, apns.md, web-push.md, wns.md, adm.md: credentials, settings, sending, errors and proxies per service.
  • Fixed: GCM references, batch size (500, not 1,000), APN mapping typo, fields the code never reads (dryRun, delayWhileIdle, style, multicastId), missing fields (providersExclude, fcmOptions, interruptionLevel, phonegap, ...). Results match the 6.0.2 FCM fix. Inline LICENSE replaced with a link. Stale Coveralls badge removed.
  • Removed claims that don't hold on master:
    • FCM topics and conditions: sendEachForMulticast throws without tokens, so topic sends fail. docs/fcm.md says they aren't supported. Needs a src fix.
    • FCM proxy agents: firebase-admin sends over HTTP/2 without an agent. Proxy docs cover APNs and Web Push only.
  • New: CONTRIBUTING.md, SECURITY.md (email, plus GitHub private reporting once an admin enables it).
  • .github/copilot-instructions.md replaced by AGENTS.md (read by Copilot and other agents). CLAUDE.md imports it.
  • package.json: description, keywords (drop gcm/mpns/windows phone), issues URL. .npmignore excludes docs/ and the agent and contributing files.

Testing

  • npm test (101 passing), npm run lint (eslint . && prettier --check .)
  • ESM named imports verified from an npm pack tarball
  • All relative links, cross-file anchors and external links checked
  • Every data field read in src/ is documented, except recipients (see above)

Needs an org admin (optional)

gh api -X PUT repos/appfeel/node-pushnotifications/private-vulnerability-reporting
gh repo edit appfeel/node-pushnotifications --description "Send push notifications from Node.js to iOS (APNs), Android (FCM), Web Push, Windows (WNS) and Amazon (ADM) with one API" --remove-topic node-gcm,gcm,node-fcm --add-topic firebase,firebase-cloud-messaging,web-push,vapid,wns,adm

🤖 Generated with Claude Code

@alex-friedl
alex-friedl deleted the branch fix/export-fcm-constant November 24, 2026 22:26
@alex-friedl alex-friedl reopened this Nov 24, 2026
@alex-friedl
alex-friedl changed the base branch from fix/export-fcm-constant to master November 24, 2026 22:30
@alex-friedl alex-friedl self-assigned this Nov 24, 2026
alex-friedl and others added 6 commits November 24, 2026 23:39
- Restructure README: tagline, quick start, usage, payload reference
  tables, per-service guides. Fix outdated content (GCM, 1,000-token
  batches, duplicate FCM section, APN mapping typo, unused fields) and
  document the patched FCM result format.
- Add CONTRIBUTING.md and SECURITY.md.
- Replace .github/copilot-instructions.md with AGENTS.md; CLAUDE.md
  imports it.
- Update package.json description, keywords and bugs URL.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Drop FCM topics/conditions: sendEachForMulticast rejects messages without tokens
- Proxy: FCM sends use HTTP/2 without an agent; keep APNs and Web Push
- WNS: header overrides don't apply with sendRaw
- Add Examples to contents; update lint commands for the new scripts

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The README is now a landing page: install, quick start, usage, a services
table and links. Payload reference and per-service guides move to docs/.
Text is rewritten as short full sentences instead of fragments.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@alex-friedl
alex-friedl merged commit c16ef63 into master Nov 24, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant