python Full Stack 3 files • 22 lines

Full-Stack SaaS Module Blueprint

Multi-layer blueprint with backend service controller, frontend view template, and JSON schema contract.

Repository Files:
backend/service.py (python) 13 lines
"""Backend domain service layer."""


class SubscriptionEvaluator:
    def __init__(self, plan_tier: str, active_seats: int, seat_limit: int):
        self.plan_tier = plan_tier
        self.active_seats = active_seats
        self.seat_limit = seat_limit

    def can_add_member(self) -> bool:
        if self.seat_limit < 0:
            return True
        return self.active_seats < self.seat_limit
frontend/widget.html (html) 4 lines
<div style="font-family:sans-serif;padding:24px;background:#111827;color:#f9fafb;border-radius:16px">
  <h2 style="margin:0 0 8px;color:#34d399">SaaS Workspace Widget</h2>
  <p style="margin:0;color:#9ca3af;font-size:14px">Full-stack starter template ready for team collaboration.</p>
</div>
schema.json (json) 5 lines
{
  "module": "workspace-billing",
  "version": "1.0.0",
  "Authentication": "session+csrf"
}

How to Customize Inside WorkMA

Runtime: Python 3.12 + WorkMA Code Runner / Virtualenv

  1. Open the template directly inside WorkMA Code Nexus or fork it inside your workspace gallery.
  2. Configure any API tokens in the project's Encrypted Secrets Vault.
  3. Edit code in the browser Monaco editor with real-time file locking and 3-way merge safety.
  4. Sync upstream to GitHub with Sentinel regex + AI PR checks enabled.

DLP & Secrets Vault Readiness

All database URIs, JWT secrets, and third-party API keys should live inside WorkMA Encrypted Secrets Vault and inject strictly at runtime rather than committing plaintext .env configs.

More Code Nexus Starter Templates