Over the last few weeks I built ShipBlazor, a starter kit for SaaS products on .NET 10. Here are the five decisions that mattered most, with the reasoning, so you can reuse them in your own projects.
- Make tenant isolation the default, not a habit
A global query filter keyed on the current organization, automatic stamping of new rows, and a SaveChanges check that throws on cross-tenant writes. With no organization set, queries return nothing. You can’t forget a where clause you never have to write.
- Treat payment webhooks as unreliable
Stripe can send events twice or out of order. Store processed event ids, ignore events older than the last one applied, and never trust a webhook without checking its signature.
- One service per feature owns the side effects
Pages and the API call the same service, which writes the activity log and publishes outgoing webhooks. Nothing gets audited in one place and forgotten in another.
- Charge for AI before you call the model
Record the request first, call the model, and delete the record if it fails. Plan limits hold under concurrency, and customers never pay for errors.
- Make the right way the easy way
A generator creates new features following the same rules, and an AGENTS.md file teaches AI coding assistants those rules. Conventions only last if following them is less work than ignoring them.
If you’d rather start from all of this already built and tested, that’s what ShipBlazor is. You can try the live demo or see the details; it’s 30% off with LAUNCH30 during launch week.