Architecting RaBuOS: Building a Multi-Tenant Enterprise Business OS with Bun and TypeScript
Abstract
The design principles behind RaBuOS, a platform in development: state management, route dispatch and filing-deadline workflows for Indian businesses.
Key Points
Introduction & Development Roadmap
Businesses need predictable workflows, real-time collaboration and help tracking filing deadlines. RaBuOS (Radiece Business Operating System) is a business platform we are building. It is in development.
Our goal is to keep the runtime simple, avoid boilerplate middleware, and build one platform spanning MCA filings, GST automation, visual DAG task workflows, and enterprise document version control.
This article explores the technical foundations of RaBuOS, why we chose Bun and TypeScript, and how we plan multi-tenant isolation.
1. Why Bun as the Unified Runtime Engine
We chose Bun for these reasons:
- Built-in HTTP & WebSocket Server: No need for external dependencies like Express or socket.io.
- Direct TypeScript Execution: No separate transpile step, which keeps container start-up simple.
- Built-in SQLite: Local caching and audit logging without another service.
2. Multi-Tenant Data Isolation & Security Architecture
Tenant data isolation is a core requirement. RaBuOS is designed around Row-Level Security (RLS) and logical sharding:
- Tenant Context: Each inbound request is validated at the API gateway. A request context carries the tenant, so every database query is scoped to one tenant.
- Field-Level Encryption (AES-256-GCM): Sensitive company records (PAN, CIN, bank details) are encrypted before they are written using tenant-specific KMS key derivations.
- Audit Immutability: All CRUD events go to an append-only event log, so the audit trail is tamper-evident.
3. Visual DAG Task Scheduling & Filing Deadlines
RaBuOS models complex business processes (such as annual corporate returns or multi-stage procurement) as Directed Acyclic Graphs (DAGs):
- Automated Dependency Resolution: Tasks automatically unblock and trigger notifications as preceding milestones complete.
- Due Date Reminders: Reminders calculated from MCA, GST and tax calendar deadlines.
- Real-Time WebSocket Synchronization: State changes are pushed to connected dashboards.
To cite this paper or discuss using this work, email us at [email protected].