anand1234/frappe-saas-boilerplate ? reverse-engineered prompt

Reverse engineered prompt

Build me a production ready multi tenant SaaS boilerplate on Frappe that I can use as the base for a real customer facing product. I want one management site that can create new tenant sites for each customer, either from a signup page, from a CLI command, or from an API call. Each tenant should be isolated with its own database and site, and the system should support subscription plans, billing with Stripe and Razorpay, webhook handling, and basic usage tracking like users, storage, and activity.

Set it up to run cleanly with Docker Compose for local development and production, with Traefik, MariaDB, Redis, and the Frappe backend all wired together. Please make it easy to add my own custom Frappe apps later, and include a simple way to seed plans, run migrations, back up sites, and manage the full lifecycle of tenants like trials, suspension, and cleanup. If you need to check current Frappe or Stripe docs online, go ahead.