Files
musicshare/apps/api/package.json
T
chrisandClaude Opus 5.5 f112a3515c Notifications and sending songs to friends
Reactions to your songs, new followers, and songs sent to you are now
notifications: a bell on the feed (app and website) with an unread
count that updates live, and a list that marks them read. "Send ✉" on
a song sends it to people who follow you, with an optional note.
Settings picks which kinds to be notified about.

Push delivery uses no third-party accounts:
- Android: UnifiedPush through a distributor app (ntfy), pointed at
  our own ntfy server (docker-compose.ntfy.yml). Works the same in
  the F-Droid build; no Firebase.
- Browsers: standard Web Push from the existing service worker.
Both use Web Push encryption with a VAPID key pair the server makes
and keeps in the database. Push addresses are checked like any other
user-supplied URL. Setup is in docs/PUSH.md; the privacy page covers
the new data.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 22:14:34 -04:00

55 lines
1.6 KiB
JSON

{
"name": "@musicshare/api",
"version": "0.0.0",
"license": "AGPL-3.0-or-later",
"private": true,
"type": "module",
"scripts": {
"dev": "concurrently -n api,worker -c blue,magenta \"tsx watch src/server.ts\" \"tsx watch src/worker.ts\"",
"build": "tsup",
"start": "node dist/server.js",
"start:worker": "node dist/worker.js",
"typecheck": "tsc -p .",
"db:generate": "drizzle-kit generate",
"db:migrate": "tsx src/db/migrate.ts",
"test": "vitest run",
"test:unit": "vitest run --project unit",
"test:watch": "vitest",
"start:migrate": "node dist/db/migrate.js",
"admin:promote": "tsx src/scripts/set-role.ts admin",
"admin:demote": "tsx src/scripts/set-role.ts user"
},
"dependencies": {
"@fastify/cookie": "^11.1.2",
"@fastify/cors": "^11.3.0",
"@fastify/multipart": "^10.1.2",
"@fastify/rate-limit": "^11.2.0",
"@fastify/websocket": "^11.3.2",
"@musicshare/shared": "*",
"@node-rs/argon2": "^2.2.1",
"bullmq": "^6.3.11",
"dotenv": "^18.0.5",
"drizzle-orm": "^0.45.3",
"fastify": "^5.12.5",
"ioredis": "^6.0.0",
"nodemailer": "^10.0.15",
"postgres": "^3.4.9",
"sharp": "^0.35.5",
"undici": "^6.29.0",
"web-push": "^3.6.7",
"zod": "^4.6.5"
},
"devDependencies": {
"@types/node": "^26.6.4",
"@types/nodemailer": "^8.0.2",
"@types/web-push": "^3.6.4",
"@types/ws": "^8.18.2",
"concurrently": "^10.0.5",
"drizzle-kit": "^0.31.11",
"tsup": "^8.5.1",
"tsx": "^4.23.15",
"typescript": "~6.0.3",
"vitest": "^5.0.3"
}
}