{"_id":"@aymenkits/notify-express","name":"@aymenkits/notify-express","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@aymenkits/notify-express","version":"1.0.0","description":"Express 4/5 handlers for the in-app notification endpoints every app exposes: list, unread count, mark read, mark all read. Envelope-agnostic, structural typing.","license":"MIT","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"tsc -p tsconfig.json","typecheck":"tsc -p tsconfig.json --noEmit"},"dependencies":{"@aymenkits/notify-core":"1.0.0"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/aymenmokhtarikouki/notifykit.git","directory":"packages/express"},"keywords":["notifications","push","fcm","email","sms","realtime","express"],"engines":{"node":">=18"},"sideEffects":false,"homepage":"https://github.com/aymenmokhtarikouki/notifykit#readme","bugs":{"url":"https://github.com/aymenmokhtarikouki/notifykit/issues"},"author":{"name":"Aymen Mokhtari"},"_id":"@aymenkits/notify-express@1.0.0","gitHead":"4e20b2e1105d0c1e1c24a6635d59a6e0b55bdb44","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-IdrMNGD6TnwiSWAm8G5P5VjOJ8OLvZWEs0m5ymB73sDASn1zkF14a8OYsWaPYrh/3xzCHLKooJuvOM19nIjv/Q==","shasum":"632bbd19774cb46425752c0d2694d385c5d886cf","tarball":"https://registry.npmjs.org/@aymenkits/notify-express/-/notify-express-1.0.0.tgz","fileCount":7,"unpackedSize":11030,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIHxuirmesAPVumsuThx//1wJLU2kp4re1cTdgwlmy34eAiEA6xH8MNcmCLDj0ajy/K2JECUxyHfmqARWHJ+aD7ZhTqI="}]},"_npmUser":{"name":"aymen-mokhtari","email":"ayman.mokhtari@proton.me"},"directories":{},"maintainers":[{"name":"aymen-mokhtari","email":"ayman.mokhtari@proton.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/notify-express_1.0.0_1783791519703_0.08039411574382638"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-11T17:38:39.592Z","1.0.0":"2026-07-11T17:38:39.887Z","modified":"2026-07-11T17:38:40.134Z"},"maintainers":[{"name":"aymen-mokhtari","email":"ayman.mokhtari@proton.me"}],"description":"Express 4/5 handlers for the in-app notification endpoints every app exposes: list, unread count, mark read, mark all read. Envelope-agnostic, structural typing.","homepage":"https://github.com/aymenmokhtarikouki/notifykit#readme","keywords":["notifications","push","fcm","email","sms","realtime","express"],"repository":{"type":"git","url":"git+https://github.com/aymenmokhtarikouki/notifykit.git","directory":"packages/express"},"author":{"name":"Aymen Mokhtari"},"bugs":{"url":"https://github.com/aymenmokhtarikouki/notifykit/issues"},"license":"MIT","readme":"# @aymenkits/notify-express\n\nExpress 4/5 handlers for the standard in-app notification endpoints: list, unread count, mark read, mark all read. Envelope- and auth-agnostic.\n\n## Install\n\n```bash\nnpm install @aymenkits/notify-express\n```\n\nInstalls with it: `@aymenkits/notify-core` (automatic dependency).\n\n## You provide\n\n- Your Express router + auth middleware (reads `req.auth.userId` by default)\n- The `NotificationStore` you built for the notifier\n\nThe package never owns tables, never imports an ORM, HTTP framework, or\nprovider SDK it can take as a parameter — storage and delivery are seams your\napp implements on its own stack.\n\n## Quick example\n\n```ts\nimport { createNotificationHandlers } from '@aymenkits/notify-express'\n\nconst h = createNotificationHandlers(store, { wrapResponse })\nrouter.get('/notifications', requireAuth, h.list)\n```\n\n## Pairs with\n\n- `@aymenkits/auth-express` middleware upstream\n\nKits pair **by shape, never by import** — pass the sibling kit, your own\nservice, or a stub in tests.\n\n## Docs\n\nFull contracts and integration guides live in the repo:\nhttps://github.com/aymenmokhtarikouki/notifykit (`contracts/`, `docs/`).\n\n## License\n\nMIT\n","readmeFilename":"README.md","_rev":"1-717b5a6492b6dcc61b6cc35507ff361f"}