Joshua Cloud is a multi-tenant SaaS platform built on a four-level hierarchy, native data isolation at the database layer, and an integrated AI gateway that brings language models into every operational workflow.
The platform is organised into four concentric levels. Each level inherits capabilities from the one above and retains operational autonomy over its sub-levels, with data isolation guaranteed at the database layer.
All requests go through a single FastAPI backend that enforces authentication, per-level scope and isolation policies before touching the database. No service bypasses the gateway.
Joshua Cloud embeds an AI gateway (forge_ai) that unifies access to five providers and offers each level natural-language operations, structured output and a knowledge base with per-studio isolation.
Tenant separation is not just application-level: it is enforced by PostgreSQL Row-Level Security with FORCE policies that hold even against code bugs. Combined with encrypted backups, audit trail and perimeter protection.
| Visible resource | L4 | L3 | L2 | L1 |
|---|---|---|---|---|
| Whole platform | ● | — | — | — |
| Own reseller only | ● | ● | — | — |
| Own studio only | ● | ● | ● | — |
| Own data only | ● | ● | ● | ● |
| Global audit log | ● | — | — | — |
| Own-scope audit log | ● | ● | ● | — |
Technologies chosen for long-term stability, scalability and maintainability. No exotic frameworks, no dependency on a single vendor's proprietary services.
| Principle | Implementation |
|---|---|
| Data isolation | PostgreSQL RLS with FORCE on every multi-tenant table |
| Stateless backend | User session in JWT, immediate horizontal scaling |
| AI as library, not SaaS | forge_ai embedded, no dependency on external gateways |
| Verified backups | Encrypted Borg + automated weekly restore test |
| Reversible migrations | Alembic with up/down tested before every deploy |
| Self-hosted by default | No cloud lock-in; on-prem deployment possible |
To evaluate a reseller partnership, discuss technical requirements or request a deeper look at the architecture.