Better-Notify for Express
Add typed notifications to your Express API with zero config. Better-Notify runs as plain Node.js — import the client in any route handler and send.
Why it fits
- No framework middleware needed — just import and send
- Works with Express 4 and 5
- Use in route handlers, middleware, or background workers
- Pairs with any template engine
Example
routes/auth.ts
import { mail } from '../lib/notifications';
router.post('/signup', async (req, res) => {
const user = await createUser(req.body);
await mail.welcome.send({
to: user.email,
input: { name: user.name },
});
res.json({ ok: true });
});