An open-source, multi-tenant Business OS foundation (Zelo OS) for interoperable Business Cores and AI-native applications.
面向多 Core 协同与 AI Native 应用的开源多租户业务操作系统(Zelo OS)底座。
English | 简体中文
Zelo has one clear goal: let a single company build and run all of its internal and external business systems on one unified Zelo OS foundation—internally covering Rental, CRM, TMS, WMS, ERP, and Ticketing, and externally powering branded storefronts, enterprise customer portals, Mini Programs, and governed open APIs.
Each domain plugs in as an autonomous Core (business package). Employees and users never have to sign out across disconnected tools—they switch workspaces and business domains inside one Zelo shell according to their granted permissions. The base owns identity, RBAC, canonical object references, reliable events, automation, and optional AI/MCP control planes—enabling safe cross-Core data interoperability without ever trespassing on any Core's data sovereignty. The base boots, builds, and exports cleanly with zero Cores installed.
Quick Links: Preview · Why Zelo OS · Architecture & Capabilities · Quick Start · Build a Core · Modules & Examples
AI Native Agent Workbench — Dual-mode Agent / Admin shell with governed tool calls, Model Gateway budget accounting, live execution trace, and human approval gates.
| Agent Capabilities, MCP & Automations | Shared Multi-Tenant Admin Dashboard |
|---|---|
![]() |
![]() |
| Permission-scoped Core capabilities & scheduled workflows | Unified shell with KPIs, priority queue & Light/Dark themes |
Enterprise software has been stuck between rigid monolithic ERPs (tangled schemas, risky upgrades) and fragmented SaaS silos (constant re-logins, fragile webhooks, broken permissions). Zelo OS takes the operating-system model—a neutral kernel running autonomous Business Cores:
- Internal & External on One Kernel: Start with one core business package and install CRM, Ticketing, TMS, or WMS on the same base as your company grows, alongside storefronts, enterprise portals, and Mini Programs—inheriting unified identity, org RBAC, integrations, files, and messaging out of the box.
- Zero Logouts — Switch Workspaces & Domains by Permission: Staff sign in once and move across permitted business domains inside one shell. A sales rep works in CRM while holding scoped read-only visibility into Support Tickets (seeing live customer repair status) and Rental fulfillment summaries—without ever editing tickets or viewing other teams' financials. External customers self-serve via storefronts, portals, and Mini Programs synced live with internal ops while strictly isolated to authorized projections.
- Zero Industry Intrusion: The base maintains 58 industry-agnostic platform models and 17 base migrations. Each Core owns its own MySQL tables, raw SQL migrations, pricing/stock logic, and write authority—the base never creates industry tables or mutates Core facts behind its back.
- Canonical References Where Reference ≠ Authority:
CoreObjectReferencegives Cores a uniform way to point at objects across domains, but every cross-Core read or action re-verifies live membership, Core grants, and object/field ACLs on both source and target Cores. Source revocation stops downstream reads immediately. - Transactional Fact Handoff & Original Receipts: Powered by the built-in Reliable Events & Automation Engine (
/events,/automation), a source Core hands off minimal authorized facts inside its original transaction; target Cores run idempotent actions and persist original receipts—unknownstates always reconcile by original receipt, never blind retries. - Independent Upgrades & Opt-In AI: Base and Cores upgrade and roll back independently. AI Native and MCP are strictly opt-in; cross-Core agent orchestration enforces live multi-Core permissions, approval gates, and a single budget ledger.
| Core Combination | Governed Interoperability & Sovereignty Boundary |
|---|---|
| Rental × CRM | Settled rental orders hand off completion facts in-transaction; CRM logs service timelines, creates follow-ups, and runs customer value, repeat-cycle, and churn analysis—without touching Rental's billing ledger |
| Rental × TMS | Rental owns vehicle/equipment contracts and billing; when delivery, remote pickup, or cross-branch transfer is needed, TMS handles fleet dispatch, routing, GPS tracking, freight, and maintenance, returning original receipts |
| Rental / CRM × Ticketing | Inspection damage or enterprise complaints auto-create repair/support tickets; technicians resolve with ticket-scoped context and feed receipts back without exposing financial or customer PII |
| CRM / Orders × WMS / ERP | Won deals or confirmed orders trigger WMS picking/outbound and then ERP/Finance invoicing via immutable rules; stock stays in WMS and ledgers stay in Finance with end-to-end idempotency |
| Multi-Core × AI Agent / MCP | Agents compose live authorized facts across Cores (e.g., "find expiring high-value leases (CRM) → check fleet dispatch & maintenance (Rental + TMS) → draft renewal plan for human approval") while each Core enforces auth and writes |
Current Scope: All OS kernel primitives above (zero-Core runtime, two-tier Core grants, independent upgrades,
CoreObjectReference, reliable events/automation, business components, and AI/MCP) ship in this repository.Example Tickets,Example Records, and standaloneRental Coreserve as live references;CRM Coreis evolving cross-Core collaboration in its own repo, andTMS / WMS / ERPCores are open for community co-creation.
flowchart TD
Internal[Unified Internal Workspace · Zero-Logout Workspace & Domain Switching by Permission] --> Identity
External[External Touchpoints · Storefront / Enterprise Portal / Mini Programs / Governed MCP] --> Identity
subgraph Base[Zelo OS Base Kernel · Zero Industry Coupling]
Identity[Unified Auth / Multi-Tenancy / Org RBAC] --> CoreHost[Core Host, Two-Tier Grants & Package Manager]
Console[Admin Shell / Subscriptions / Integrations / Business Components] --> CoreHost
Collab[Cross-Core Object Ref · Reliable Events & Automation Bus] --> CoreHost
AI[Optional AI Native Runtime / Model Gateway / MCP] --> CoreHost
Data[Platform Data Layer · 58 Models / 17 Migrations]
end
CoreHost <-->|Authorized facts, references & original receipts| Rental[Rental Core · Rental]
CoreHost <-->|Authorized facts, references & original receipts| CRM[CRM Core · Customer Ops]
CoreHost <-->|Authorized facts, references & original receipts| Ecosystem[TMS / WMS / ERP / Ticketing / Your Core]
Rental --> RentalData[Autonomous Rental Tables & Clients]
CRM --> CrmData[Autonomous Customer Tables & Analytics]
Ecosystem --> EcoData[Autonomous Core Tables & Migrations]
| Base Domain | Built-in Capabilities | Modules |
|---|---|---|
| Identity, Multi-Tenancy & Security | Two-tier SaaS/tenant accounts, JWT refresh/revocation, org & RBAC trees, rate limiting, security baselines | platform-server · platform-contracts |
| Shared Admin Shell & UI | React 19 + UIArc shell, Light/Dark themes & brand accent, EN/ZH locales, shared settings, Core UI primitives (CorePage, CoreList, useCoreForm) |
platform-admin · Core Page Guide |
| Subscriptions, Integrations & Tools | Subscription plans & commerce quotas, dictionaries, numbering, filter presets, email invites, SMTP/IMAP, AES-GCM vault, files/notifications/jobs | platform-api · platform-server |
| Core Lifecycle & Independent Upgrades | Manifest & compatibility checks, SaaS tenant grants, member assignments, disable/remove preflight, zelo-core online discovery & pinned deployment locks |
core-contracts · core-host · platform-core-host |
| Cross-Core Events & Business Components | CoreObjectReference, transactional reliable events & immutable automation rules, optional shared business components (custom fields, views, CSV/XLSX transfer, comments & attachments) |
Events & Automation · Business Components |
| Optional AI Native & MCP | Task orchestration/recovery, Model Gateway, budget ledger, knowledge ACLs, human approval & receipt reconciliation, OAuth MCP Server & Harness plugin | ai-native-server · mcp-server · harness-plugin |
Ownership Rule: The base owns identity, tenancy, two-tier grants, shell, cross-Core collaboration bus, and upgrade preflight. Each Core owns its tables, SQL migrations, domain permissions, rules, pages, and original receipts.
Prerequisites: Node.js >= 22.12 (22 LTS recommended) · npm · MySQL 8.4 (or Docker Compose).
Create an empty local MySQL database named zelo_platform_* and export ZELO_PLATFORM_DATABASE_URL, AUTH_TOKEN_SECRET (>= 32 bytes), and SEED_PLATFORM_PASSWORD (>= 8 chars with letters & digits):
git clone https://github.com/JinPen-G/Zelo.git && cd Zelo
npm ci
npm run db:generate && npm run build
npm run db:migrate:deploy && npm run db:initialize
npm run devOpen http://127.0.0.1:5176 (API :3091, override via ZELO_PLATFORM_WEB_PORT / ZELO_PLATFORM_API_PORT) and sign in as platform / admin to manage tenants, RBAC, integrations, and /platform/core-packages.
Running Hosts with Business Cores: See example-tickets-api for the minimal starter host, or JinPen-G/Zelo-rental-core for the full production Rental host (4 client apps + dual-Core profile). Full environment details live in apps/platform-api and config/environment.cjs.
Attach a new vertical Core without modifying base source code—follow the 5-Step Integration Guide or paste the Agent Task Template directly to your coding agent:
- Scaffold Manifest & Migrations: Generate a minimal Core with
create.jsor model after example-tickets-core with your Core ID, permissions, and standalone SQL migrations. - Implement Domain Services & Single-Source OpenAPI: Reuse base auth, transactions, and event handoff; drive validation and OpenAPI from one schema (AI tools optional).
- Contribute Admin Pages: Use
CorePage,CoreList, anduseCoreFormfrom@rental-os/platform-admin/coreto inherit shell, theming, and cache isolation. - Package & Verify with
check.js: Build a standard.tgz(core.manifest.json,openapi.json,CORE_GUIDE.md, SQL migrations) and verify zero violations. - Assemble & Grant: Pin the package in a host deployment lock, run migrations, grant the Core to tenants as SaaS admin, and assign members as tenant admin.
npm run build -w @rental-os/core-contracts
node packages/core-contracts/dist/capabilities.js --query SaveButton --json # Index live base components/pages/APIs
node packages/core-contracts/dist/check.js <core-dir> --host <host-json> --json # Verify Core package compliance
npm run export:platform -- --repo . --repository https://github.com/JinPen-G/Nativark --commit <full-sha> --out zelo-platform.tgzDiscovery & Commercialization: Add GitHub Topic
zelo-coreand attach your.tgzartifact to a Release to appear automatically in/platform/core-packageson any Zelo deployment. Because the base is MIT-licensed, you control your Core's license and business model—open-source, Open-Core with paid add-ons/clients/connectors, or standalone commercial Cores that compose cleanly with other community Cores on Zelo OS.
Stack: TypeScript 5.6 · NestJS 10 · React 19 · Vite 8 · Tailwind CSS 4 · UIArc · Prisma 5.22 · MySQL 8.4 (npm workspaces).
| Category | Path / Repository | Purpose & Docs |
|---|---|---|
| Zero-Core Hosts | apps/platform-api · apps/platform-admin |
Standalone zero-Core API & admin hosts: API · Admin |
| Base Packages | packages/core-contracts · core-host · platform-* |
Contracts/CLIs/scaffold & platform backend/frontend: Guide · Kernel · Server · Host Adapter · Admin |
| Base UI Libraries | packages/ui-arc · ui-motiq · ui-tablecn |
Design system, motion & data-table sources: UIArc · Motiq · Tablecn |
| Optional AI & MCP | packages/ai-native-* · mcp-server · clients/harness-plugin |
AI orchestration/gateway/budget & OAuth MCP: AI Server · AI Data · AI Admin · MCP · Harness Plugin |
| Starter Core | packages/example-tickets-core · apps/example-tickets-* |
Minimal non-rental Core (3 tables, 4 pages, disable/re-enable): Core · API · Web |
| Components & Events Ref | packages/example-records-core |
Complete reference for shared business components & reliable events/automation: Records Core |
| Official Rental Core | JinPen-G/Zelo-rental-core | Standalone production vertical Core (4 categories, 4 client apps, MCP host & multi-Core profile): Repo & Releases |
| Marketing Website | JinPen-G/Zelo-website | Independently maintained Zelo website (excluded from base dependencies) |
Verification commands, naming compatibility & legacy history
- Verification:
npm run lint/npm run build(public API & admin);npm run contract:validate/npm run dto:validate(OpenAPI & auth policies);node scripts/check-selected-prisma-types.cjs --mode <platform|rental|rental-ai>(in-memory Prisma type check); standalone packaging & ops scripts at scripts/package-platform-host.cjs and scripts/ops/deployment/README.md. - Compatibility Naming: Brand and companion repos use Zelo (
zelo-corediscovery topic). Official base releases retainhttps://github.com/JinPen-G/Nativarkas their stablesource.repository(see Stable Release Source), while@rental-os/*workspace scopes and legacyRENTAL_*env prefixes remain for migration compatibility without affecting zero-Core export. - Historical Monorepo Checkout: The legacy combined app and workflow (.github/workflows/nativark-release.yml) remain pinned at
46db0945…. Active development uses this zero-Core base and standalone Core repositories.
- Contributing: PRs, Issues, and independent vertical Cores (open-source or Open-Core) are welcome. Keep the base strictly industry-agnostic (
platform-*andcore-*must never depend on a specific business Core). AI coding agents: start with AGENTS.md (CLAUDE.md). - Security: Report auth, cross-tenant, credential, or Core-isolation vulnerabilities privately via GitHub Private Vulnerability Reporting—never in public Issues.
- License: Public source and docs are MIT-licensed (formerly Nativark; original copyright retained). Third-party notices: UIArc · Motiq · Tablecn · Animate UI.





