Skip to main content

180workspace Platform Overview

Welcome to the 180workspace Platform Documentation. This portal contains the internal engineering specifications, architectural blueprints, database models, and developer runbooks for the entire 180workspace ecosystem.


🎯 What is 180workspace?​

180workspace is a unified multi-company enterprise business management and operations platform. It bridges traditionally fragmented business functions into a synchronized Work Graph:

  • CRM & Sales Operations: Lead scoring, deals pipeline, customer interactions, and contact books.
  • Human Resources & Team: Employee directory, leaves management, attendance, and automated payroll pipelines.
  • Financial Intelligence: Invoicing, vendor bill tracking, expense categorization, and multi-currency ledger.
  • Traffic Director & Link Infrastructure: High-velocity traffic routing, geo-targeting, web cloaking, and real-time click telemetry.
  • 180 Studio & Creative Media: Asset storage, visual timeline editing, social publishing, and AI-assisted generation.
  • Platform Work Graph Core: Cross-app data relationships, unified notification bus, and centralized audit logging.

🏗️ Architecture at a Glance​

The platform utilizes a Modular Monolith pattern designed for high performance, strict multi-tenant isolation, and real-time responsiveness:

graph TD
Client[Next.js 15 App Router Frontend] -->|HTTPS REST + x-company-id| Gateway[Express.js API Gateway]
Client -->|Socket.IO Namespaces| SocketServer[Real-Time Event Engine]
Gateway --> Auth[JWT & RBAC Security Layer]
Gateway --> TenantMiddleware[company-db Multitenancy Middleware]
TenantMiddleware --> Prisma[Prisma ORM Layer]
Prisma --> PG[(PostgreSQL Atlas - Dynamic Namespaces)]
Gateway --> BullMQ[BullMQ Job Producer]
BullMQ --> Redis[(Redis Cache & Queues)]
Redis --> Worker[Asynchronous Worker Nodes]

Core Technology Stack​

  • Frontend Layer: Next.js 15 (App Router, Server-Side Rendering), React 19, Tailwind CSS, Zustand, Socket.IO Client.
  • Backend API Layer: Node.js, Express.js, TypeScript.
  • Data Persistence: PostgreSQL with Prisma ORM, utilizing company-isolated dynamic schema switching.
  • Asynchronous Execution: Redis with BullMQ for background job scheduling, payroll runs, and telemetry processing.
  • Security & RBAC: Dual-token JWT architecture (short-lived access tokens, refresh tokens), helmet, rate-limiting, and sanitized inputs.

📚 Documentation Roadmap​

Explore the sections below to understand each area of the system:

SectionFocus AreaDescription
System ArchitectureCore DesignComprehensive modular monolith topology, data flow, and deployment models.
Database SchemaData LayerMulti-company isolation, Prisma schema specifications, and relational constraints.
API DocumentationEndpoints & ContractsRESTful API routes, request interceptors, headers, and Socket.IO namespaces.
Authentication & SecurityZero-Trust RBACJWT lifecycle, permission matrix, and mutation audit trail logs.
Local Development RunbookDeveloper OnboardingMonorepo pnpm workspace setup, Docker orchestration, and environment variables.
Business Logic & Work GraphDomain WorkflowsCross-application synergies connecting CRM, HR, Finance, and Marketing.

⚡ Quick Start for Developers​

To run the platform locally, clone the monorepo and run the following in your terminal:

# 1. Install workspace dependencies
pnpm install

# 2. Provision local environment
cp .env.example .env

# 3. Launch full monorepo development cluster
pnpm dev

The documentation portal runs on port 3005, the Next.js frontend on port 3000, the Express backend API on port 5000, and additional micro-web apps on their dedicated ports.