Better Auth gives you sign-in, OAuth, magic links and organizations as a library. Here is how to mount it in NestJS without the body parser breaking it, protect every route by default, and keep each organization's data apart.
Save a row, then queue a job in Redis, and sooner or later one happens without the other. How to queue jobs in a Postgres table in the same transaction as the change, hand them to BullMQ, and run each one once, with retries and schedules.
Stripe sends some events twice, some out of order, and anyone can call your webhook URL. Here is how to verify, record and apply each event once in NestJS, so a retry never sends a second receipt or rolls a plan back.
Include 500 AI messages in a plan, then charge 2 cents for each one beyond, or stop there. How to count usage in your own database, refuse at the limit, and send only the extra units to Stripe Meters, exactly once.