Skip to content

A world-class Customer Relationship Management system built on @objectstack/spec v3.0.0 protocol with Salesforce-level functionality and Apple/Linear-level UX.

License

Notifications You must be signed in to change notification settings

objectstack-ai/hotcrm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

847 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

HotCRM - Enterprise-Level CRM System

CI CodeQL Code Quality License: MIT Objects Tests Spec

A world-class Customer Relationship Management system built on @objectstack/spec v3.0.0 protocol with Salesforce-level functionality and Apple/Linear-level UX.

⚑ Quick Start in 60 Seconds

# Prerequisites: Node.js >= 20.9.0, pnpm >= 9.0.0
git clone https://github.com/objectstack-ai/hotcrm.git
cd hotcrm
pnpm install
pnpm dev           # Start development server
# Open http://localhost:3000 β€” all 94 business objects loaded
# Verify everything works
pnpm typecheck     # TypeScript β€” expect 0 errors
pnpm test          # Vitest β€” expect 1,759 tests passing

πŸ“– New developers: See DEVELOPMENT_WORKFLOW.md for the full quickstart, first contribution tutorial, and troubleshooting FAQ.

🌟 Overview

HotCRM is a comprehensive, AI-native enterprise CRM covering the complete Lead-to-Cash lifecycle. Built on @objectstack/spec v3.0.0:

  • 94 Business Objects across 6 clouds: Sales, Marketing, Revenue, Service, HR, AI
  • Metadata-Driven: All objects defined in TypeScript (.object.ts) β€” the single source of truth
  • Plugin Architecture: Each business cloud is an independent, deployable plugin
  • ObjectQL: Type-safe query language replacing traditional SQL
  • AI-Native: Every major feature enhanced with AI capabilities
  • Enterprise-Ready: SLA management, approval workflows, multi-currency support

πŸ“š Architecture

Package Dependency Graph

graph TD
    APP["HotCRM Application<br/>(objectstack.config.ts)"]
    RT["@objectstack/runtime"]
    CORE["@hotcrm/core<br/>Shared Utilities"]
    CRM["@hotcrm/crm<br/>Sales Cloud Β· 16 objects"]
    MKT["@hotcrm/marketing<br/>Marketing Cloud Β· 15 objects"]
    FIN["@hotcrm/finance<br/>Revenue Cloud Β· 9 objects"]
    PRD["@hotcrm/products<br/>CPQ Cloud Β· 13 objects"]
    SUP["@hotcrm/support<br/>Service Cloud Β· 23 objects"]
    HR["@hotcrm/hr<br/>HR Cloud Β· 18 objects"]
    AI["@hotcrm/ai<br/>Intelligence Layer"]

    APP --> CRM & MKT & FIN & PRD & SUP & HR & AI
    CRM --> RT & CORE
    MKT --> RT & CORE & CRM
    FIN --> RT & CORE & CRM
    PRD --> RT & CORE & CRM
    SUP --> RT & CORE & CRM
    HR --> RT & CORE
    AI --> RT & CORE
Loading

For detailed architecture documentation, see docs/ARCHITECTURE.md.

Core Principles

  1. Metadata Driven: All business objects are defined natively in TypeScript (.object.ts)
  2. Plugin Architecture: Each business package is an independent plugin with dependency management
  3. ObjectQL: Data queries use ObjectQL syntax for type-safe, flexible queries
  4. UI Engine: Frontend rendering based on ObjectUI framework with Tailwind CSS styling
  5. AI Native: Built-in AI capabilities for intelligent insights and automation
  6. Modular Packages: Clean separation of concerns with pnpm workspaces

Plugin Architecture

HotCRM uses a plugin-based architecture where each business package (CRM, Products, Finance, Support, Marketing, HR) is an independent plugin:

  • CRM Plugin: Core CRM objects (Account, Contact, Lead, Opportunity, etc.)
  • Marketing Plugin: Campaign and marketing automation (depends on CRM)
  • Products Plugin: Product catalog and CPQ functionality (depends on CRM)
  • Finance Plugin: Contract, invoice, and payment management (depends on CRM)
  • Support Plugin: Customer support and knowledge base (depends on CRM)
  • HR Plugin: Human Capital Management - Employee lifecycle and talent management

Each plugin:

  • Is self-contained with its own business objects
  • Can declare dependencies on other plugins
  • Is loaded automatically in dependency order
  • Can be developed and deployed independently

See ROADMAP.md for the full plugin architecture guide.

Repository Structure

HotCRM is built on the @objectstack/runtime engine, focusing purely on business capabilities.

hotcrm/
β”œβ”€β”€ packages/               # Business Capabilities (Plugins)
β”‚   β”œβ”€β”€ crm/               # Sales Cloud (Account, Opportunity, Lead, Contact)
β”‚   β”œβ”€β”€ marketing/         # Marketing Cloud (Campaign, Marketing List)
β”‚   β”œβ”€β”€ finance/           # Revenue Cloud (Contract, Invoice, Payment)
β”‚   β”œβ”€β”€ products/          # CPQ Product Catalog (Product, Quote, Pricing)
β”‚   β”œβ”€β”€ support/           # Service Cloud (Case, Knowledge, SLA)
β”‚   β”œβ”€β”€ hr/                # HR Cloud (Employee, Recruitment, Performance)
β”‚   └── ai/                # AI Services (ML Models, AI Utilities)
β”‚
β”œβ”€β”€ apps/                   # Deployable Applications
β”‚   └── docs/              # Official Documentation Site

Business Packages

Each package is a self-contained plugin defining:

  • Objects: Data models (.object.ts)
  • Logic: Server-side triggers (.hook.ts)
  • UI: Page layouts and views (.page.ts)

Platform Core

The project runs on @objectstack/runtime, which provides:

  • ObjectQL: The ORM replacement.
  • Metadata Registry: Loads and validates all business objects.
  • REST API: Automatically generates endpoints for all objects.

Package Dependencies

Vertical Slice Architecture:

Each domain package is a self-contained vertical slice with schemas, hooks, and actions:

@objectstack/runtime (Foundation)
  β”œβ”€β”€ @hotcrm/crm (Marketing & Sales Vertical Slice)
  β”‚   β”œβ”€β”€ Schemas: Account, Contact, Lead, Opportunity, Campaign, Activity
  β”‚   β”œβ”€β”€ Hooks: Opportunity stage automation
  β”‚   └── Actions: AI Smart Briefing
  β”‚
  β”œβ”€β”€ @hotcrm/support (Customer Service Vertical Slice)
  β”‚   └── Schemas: Case, Knowledge
  β”‚
  β”œβ”€β”€ @hotcrm/products (Product & Pricing Vertical Slice)
  β”‚   └── Schemas: Product, Pricebook, Quote
  β”‚
  β”œβ”€β”€ @hotcrm/finance (Financial Operations Vertical Slice)
  β”‚   └── Schemas: Contract, Payment
  β”‚
  └── @hotcrm/hr (Human Capital Management Vertical Slice)
      └── Schemas: Employee, Candidate, Performance

Simplified Dependencies:

HotCRM Application (root objectstack.config.ts)
  β”œβ”€β”€ @hotcrm/crm (includes schemas + hooks + actions)
  β”œβ”€β”€ @hotcrm/finance
  β”œβ”€β”€ @hotcrm/marketing
  β”œβ”€β”€ @hotcrm/products
  β”œβ”€β”€ @hotcrm/support
  β”œβ”€β”€ @hotcrm/hr
  └── @hotcrm/ai

All Domain Packages
  β”œβ”€β”€ @objectstack/spec (type definitions)
  └── @objectstack/cli (development tools)

πŸš€ Getting Started

Prerequisites

  • Node.js: >= 20.9.0
  • pnpm: >= 9.0.0
  • TypeScript: >= 5.3.0

Installation

# Install pnpm if not already installed
npm install -g pnpm

# Clone the repository
git clone https://github.com/objectstack-ai/hotcrm.git
cd hotcrm

# Install all dependencies
pnpm install

Development

# Start the development server
pnpm dev

# Start with studio interface
pnpm dev:studio

# Build all packages
pnpm build

# Build a specific package
pnpm --filter @hotcrm/crm build
pnpm --filter @hotcrm/finance build

# Run linting on all packages
pnpm lint

# Run tests
pnpm test

# Validate configuration
pnpm validate

# Compile metadata
pnpm compile

# Clean all build artifacts
pnpm clean

Individual Package Development

Each package can also be run independently:

# CRM package
pnpm --filter @hotcrm/crm studio
pnpm --filter @hotcrm/crm validate

# Finance package
pnpm --filter @hotcrm/finance studio
pnpm --filter @hotcrm/finance validate

# Any package
pnpm --filter @hotcrm/{package} studio
pnpm --filter @hotcrm/{package} validate
pnpm --filter @hotcrm/{package} compile

Production

# Build all packages
pnpm build

# Start the production server (CLI-based)
pnpm start

# Or use legacy Express server
pnpm --filter @hotcrm/server start:legacy

Server Startup Options

HotCRM provides two server startup modes:

  1. CLI-based (Recommended): Uses ObjectStack v0.7.2 runtime with objectstack.config.ts

    • pnpm dev - Development mode with hot reload
    • pnpm start - Production mode
    • Loads 20 business objects from configuration
    • Uses ObjectKernel from @objectstack/core
  2. Legacy Express Server: Traditional Express.js server with manual API routing

    • pnpm --filter @hotcrm/server dev:legacy - Development mode
    • pnpm --filter @hotcrm/server start:legacy - Production mode
    • Maintains backward compatibility

πŸ“– Development Documentation

Strategic Planning:

Developer Reference:

  • Development Workflow β€” Quickstart, first contribution tutorial, package scaffolding, troubleshooting
  • Development Roadmap β€” Full development roadmap with phased execution plan
  • Quick Reference β€” Quick lookup for commands, file conventions, and patterns
  • Testing Guide β€” Test organization, patterns, and coverage targets
  • Contributing β€” Contribution guidelines and coding standards
  • Changelog β€” Version history and release notes

πŸ“¦ Package Overview

HotCRM is built as a modular monorepo with independently developed packages. Each package is self-contained with clear responsibilities and can be used or deployed independently.

System-Wide Statistics

Total: 94 Objects | 32 AI Actions | 71 Automation Hooks

Infrastructure Packages

@hotcrm/core

Shared core utilities and type helpers for all HotCRM packages.

Purpose: Common utilities, TypeScript types, Zod integration
Dependencies: None (foundation layer)

Read more β†’

@hotcrm/server

Application server that orchestrates all business packages and provides REST APIs.

Purpose: Runtime server, plugin orchestration, REST API generation
Integrated Packages: All 6 business packages (CRM, Finance, HR, Marketing, Products, Support)
Tech Stack: ObjectStack Runtime, Hono Server, SQLite/MongoDB driver

Read more β†’

@hotcrm/ai

Unified AI/ML service layer providing model registry, prediction services, and ML utilities.

Features:

  • Multi-provider ML integration (AWS SageMaker, Azure ML, OpenAI)
  • Model registry with A/B testing
  • Smart caching (Redis + in-memory)
  • Performance monitoring and health checks
  • SHAP-like explainability
  • Pre-registered models (lead scoring, churn prediction, sentiment analysis, revenue forecast, product recommendation)

Read more β†’

Business Domain Packages

Each domain package is a complete vertical slice containing objects, AI actions, and automation hooks:

@hotcrm/crm - Sales Cloud

16 Objects | 10 AI Actions | 11 Automation Hooks

Complete Sales Cloud with Account, Contact, Lead, Opportunity management, forecasting, territory management, team selling, and competitive tracking.

Objects: Account, Contact, Lead, Opportunity, Activity, Task, Note, Assignment Rule, Opportunity Line Item, Opportunity Contact Role, Forecast, Forecast Item, Territory, Territory Rule, Opportunity Team Member, Competitor

AI Actions:

  • Enhanced Lead Scoring with ML
  • Account AI (health scoring, churn prediction, cross-sell/upsell)
  • Contact AI (enrichment, buying intent, sentiment analysis)
  • Lead AI (signature parsing, routing, nurturing)
  • Opportunity AI (win probability, risk assessment, next steps)
  • Forecast AI (AI-powered forecast adjustment and predictions)
  • AI Smart Briefing (customer insights)
  • Lead Conversion (Lead β†’ Account + Contact + Opportunity)
  • Sales Performance Analytics
  • Cross-Cloud Lifecycle Automation

Automation:

  • Lead scoring triggers
  • Activity tracking and rollups
  • Contact decision chain validation
  • Account health score calculation
  • Opportunity stage automation
  • Opportunity line item amount rollup
  • Forecast auto-aggregation
  • Territory assignment

Read more β†’

@hotcrm/finance - Revenue Cloud

9 Objects | 5 AI Actions | 8 Automation Hooks

Financial operations with contract lifecycle, invoicing, billing schedules, revenue recognition, and payment methods.

Objects: Contract, Invoice, Invoice Line, Payment, Credit Note, Billing Schedule, Revenue Schedule, Revenue Recognition Rule, Payment Method

AI Actions:

  • Revenue Forecasting (monthly/quarterly with risk analysis)
  • Contract AI (risk scoring, renewal prediction, compliance checking)
  • Invoice Prediction (payment default, cash flow forecasting)
  • Revenue Dashboard Analytics
  • Revenue Recognition AI (ASC 606 compliance assistance)

Automation:

  • Contract billing automation (auto-generate invoices on activation)
  • Invoice status lifecycle management
  • Invoice line calculations and total updates
  • Payment matching and validation
  • Credit note balance adjustments
  • Billing schedule validation and invoice generation
  • Revenue schedule validation and compliance checks

Read more β†’

@hotcrm/hr - Human Capital Management

18 Objects | 4 AI Actions | 18 Automation Hooks

Complete talent management from recruitment to retirement, including benefits and compensation.

Objects: Candidate, Application, Recruitment, Interview, Offer, Onboarding, Employee, Position, Department, Performance Review, Goal, Training, Certification, Attendance, Time Off, Payroll, Benefit, Compensation Plan

AI Actions:

  • Candidate AI (resume parsing, matching, ranking, interview questions)
  • Employee AI (retention risk, career paths, skill gaps, team optimization)
  • Performance AI (insights, SMART goals, development plans, 360-review synthesis)

Automation:

  • Candidate scoring and screening
  • Employee onboarding workflow
  • Performance review rating calculation
  • Offer lifecycle management

Read more β†’

@hotcrm/marketing - Marketing Cloud

15 Objects | 4 AI Actions | 15 Automation Hooks

AI-powered marketing automation with journey orchestration, A/B testing, and multi-touch attribution.

Objects: Campaign, Campaign Member, Email Template, Form, Landing Page, Marketing List, Unsubscribe, Automation Workflow, Email Send, Lead Nurture Program, Touchpoint, Journey, Journey Step, A/B Test, A/B Test Variant

AI Actions:

  • Content Generator (7 functions): Email, social media, landing pages, ad copy, personalization, optimization, tone adaptation
  • Campaign AI (7 functions): Performance optimization, A/B testing, send-time optimization, channel recommendations
  • Marketing Analytics (7 functions): Attribution analysis, ROI forecasting, funnel optimization, lead scoring, journey analytics
  • Journey AI: AI-powered journey optimization and personalization

Automation:

  • Campaign ROI calculation
  • Budget tracking and alerts
  • Member engagement tracking
  • Lead scoring from engagement
  • Statistics aggregation
  • Bounce handling

Read more β†’

@hotcrm/products - CPQ & Pricing

13 Objects | 4 AI Actions | 10 Automation Hooks

Complete Configure-Price-Quote with product catalog, intelligent pricing, order management, and subscriptions.

Objects: Product, Product Bundle, Product Bundle Component, Quote, Quote Line Item, Pricebook, Price Rule, Discount Schedule, Approval Request, Order, Order Item, Subscription, Product Option

AI Actions:

  • Pricing Optimizer (competitive analysis, optimal discounts, elasticity)
  • Product Recommendation (customer fit, cross-sell, adoption prediction)
  • Bundle Suggestion (tailored bundles, composition optimization)
  • Order AI (order analytics and predictions)

Automation:

  • Product inventory management
  • Pricebook lifecycle (auto-activation/expiration)
  • Quote pricing calculation
  • Quote line item calculations
  • Approval routing (5-level matrix)
  • Margin protection
  • Contract creation from accepted quotes
  • Order status lifecycle
  • Subscription renewal reminders
  • Discount schedule overlap detection

Read more β†’

@hotcrm/support - Customer Service Cloud

23 Objects | 4 AI Actions | 9 Automation Hooks

Omnichannel case management with SLA tracking, knowledge base, chatbot configuration, and AI-powered routing.

Objects: Case, Case Comment, Knowledge Article, SLA Policy, SLA Template, SLA Milestone, Queue, Queue Member, Routing Rule, Escalation Rule, Skill, Agent Skill, Business Hours, Holiday, Holiday Calendar, Portal User, Forum Topic, Forum Post, Email to Case, Web to Case, Social Media Case, Chatbot Config, Macro

AI Actions:

  • Case AI (auto-categorization, intelligent assignment, RAG search, SLA breach prediction)
  • Knowledge AI (article recommendations, auto-tagging, quality scoring, RAG answers)
  • SLA Prediction (breach probability, resolution time, workload optimization)

Automation:

  • Case entitlement verification
  • Knowledge article scoring
  • AI enhancement (categorization, tagging, summaries)
  • Article workflow automation
  • Usage tracking
  • Search analytics

Read more β†’

πŸ€– AI-Assisted Development

HotCRM includes a comprehensive Agent System to accelerate development. See the Agent Guide for examples and workflows.

The project uses GitHub Copilot Instructions to provide AI agents with domain-specific context for code generation, review, and debugging across all business packages.

πŸ“¦ Core Features

HotCRM implements a comprehensive enterprise system organized into 6 major domains:

1. 🟒 Marketing & Leads

Lead Management (Lead)

  • Lead capture with duplicate detection
  • Public pool for unclaimed leads
  • AI-powered lead scoring (0-100 scale)
  • Automatic data completeness calculation
  • Lead conversion tracking to Account/Contact/Opportunity

Campaign Management (Campaign)

  • Marketing activity planning and execution
  • Budget tracking and ROI calculation
  • Multi-channel campaign support (Email, Social, Events, etc.)
  • Campaign member management
  • AI-generated marketing content and audience analysis

2. πŸ”΅ Sales Force Automation

Customer 360 (Account)

  • Customer/company management with industry classification
  • Parent-child account hierarchies
  • Annual revenue and employee tracking
  • Complete interaction timeline

Contact Management (Contact)

  • Individual contact management with role tracking
  • Decision chain visualization
  • Business card scanning support
  • Social media profile integration

Opportunity Management (Opportunity)

  • Sales pipeline with 7 stages (Prospecting β†’ Closed Won/Lost)
  • AI win probability prediction
  • Next-step recommendations with AI-suggested talking points
  • Competitive intelligence analysis
  • Risk factor identification

Activity Tracking (Activity)

  • Call, email, meeting, and task logging
  • Check-in capability with GPS location
  • AI voice-to-text transcription
  • Automatic action item extraction
  • Sentiment analysis

Product Catalog (Product)

  • SKU management with product families
  • Multi-unit of measure support
  • Inventory tracking with stock status
  • AI-powered sales points generation
  • Smart product bundling recommendations

Price Management (Pricebook)

  • Multi-currency support (CNY, USD, EUR, GBP, JPY, HKD, SGD)
  • Regional and channel-based pricing
  • Tiered pricing strategies
  • Date-effective pricing

Quotation (CPQ) (Quote)

  • Complex quote configuration
  • Multi-level discount approval workflow
  • Automatic tax and shipping calculation
  • PDF generation for customer delivery
  • AI-recommended product bundles based on budget
  • Win probability prediction

Contract Management (Contract)

  • Contract lifecycle management
  • Renewal reminders and tracking
  • E-signature integration ready
  • Payment plan management

Payment Tracking (Payment)

  • Payment schedule and milestone tracking
  • Invoice management
  • Overdue monitoring with automated reminders
  • Collection assignment and prioritization
  • Multiple payment methods support

3. 🟠 Service & Customer Success

Case Management (Case)

  • Multi-channel ticket intake (Email, Web, Phone, WeChat, Chat)
  • SLA management with automatic calculation
  • AI-powered auto-assignment to best agent
  • Priority and escalation management
  • Customer satisfaction tracking
  • AI solution recommendations from knowledge base

Knowledge Base (Knowledge)

  • Help documentation and FAQ management
  • Article categorization and tagging
  • Version control and review workflow
  • Public/Internal/Partner visibility levels
  • AI-generated article summaries
  • RAG (Retrieval-Augmented Generation) support with vector embeddings
  • Usage analytics and helpfulness scoring

4. 🟣 Human Capital Management

Recruitment & Talent Acquisition

  • Position Management (Position): Job requisitions with requirements
  • Candidate Pipeline (Candidate, Application): Applicant tracking with resume parsing
  • Interview Scheduling (Interview): Multi-round interview coordination
  • Offer Management (Offer): Employment offer generation and tracking

Employee Lifecycle

  • Employee Master Data (Employee): Core employee information and records
  • Onboarding (Onboarding): New hire onboarding workflows
  • Department Structure (Department): Organizational hierarchy

Time & Performance

  • Time Off Management (Time_Off): PTO, sick leave, vacation tracking
  • Attendance Tracking (Attendance): Daily attendance with clock in/out
  • Goal Management (Goal): OKR and KPI tracking
  • Performance Reviews (Performance_Review): 360-degree feedback and annual reviews

Compensation & Development

  • Payroll Processing (Payroll): Salary calculations and benefits
  • Training Programs (Training): Learning and development catalog
  • Certifications (Certification): Professional certification tracking

5. 🟀 Platform Foundation

Metadata-Driven Architecture

  • All objects defined natively in TypeScript (.object.ts)
  • ObjectQL query language for type-safe data access
  • Dynamic field and layout management
  • Custom validation rules

Business Automation

  • Trigger-based workflows
  • Approval processes
  • Automatic calculations
  • Cross-object updates

6. πŸ€– AI Copilot

AI Enhancement Throughout

  • Lead: Auto-scoring, data enrichment from email signatures
  • Campaign: Content generation, audience analysis, channel recommendations
  • Opportunity: Win probability, next-step suggestions, competitive intel
  • Activity: Voice transcription, action item extraction, sentiment analysis
  • Product: Sales point generation, bundling recommendations
  • Quote: Smart product combinations, optimal discount suggestions
  • Case: Auto-categorization, intelligent routing, solution recommendations
  • Knowledge: Content summarization, related article discovery, RAG-ready embeddings
  • Candidate: Resume parsing, interview question generation
  • Employee: Performance insights, attrition prediction, skills gap analysis

🎯 Key Statistics

  • 94 Core Objects (TypeScript): Complete enterprise coverage across 6 major clouds
    • CRM (16 objects): Account, Contact, Lead, Opportunity, Activity, Task, Note, Assignment Rule, Opportunity Line Item, Opportunity Contact Role, Forecast, Forecast Item, Territory, Territory Rule, Opportunity Team Member, Competitor
    • Marketing (15 objects): Campaign, Campaign Member, Email Template, Form, Landing Page, Marketing List, Unsubscribe, Automation Workflow, Email Send, Lead Nurture Program, Touchpoint, Journey, Journey Step, A/B Test, A/B Test Variant
    • Products (13 objects): Product, Product Bundle, Product Bundle Component, Quote, Quote Line Item, Pricebook, Price Rule, Discount Schedule, Approval Request, Order, Order Item, Subscription, Product Option
    • Finance (9 objects): Contract, Invoice, Invoice Line, Payment, Credit Note, Billing Schedule, Revenue Schedule, Revenue Recognition Rule, Payment Method
    • Support (23 objects): Case, Case Comment, Knowledge Article, Forum Topic, Forum Post, Queue, Queue Member, Routing Rule, Escalation Rule, SLA Policy, SLA Milestone, SLA Template, Agent Skill, Skill, Business Hours, Holiday, Holiday Calendar, Portal User, Email to Case, Web to Case, Social Media Case, Chatbot Config, Macro
    • HR (18 objects): Employee, Department, Position, Candidate, Application, Interview, Offer, Recruitment, Onboarding, Time Off, Attendance, Goal, Performance Review, Payroll, Training, Certification, Benefit, Compensation Plan
  • 6 Business Clouds: Sales, Marketing, Revenue (Products + Finance), Service, HR, Platform/AI
  • 7 Sales Stages: Complete pipeline from Prospecting to Closed Won/Lost
  • 8 Currencies: Multi-currency support for global operations
  • 6 Service Channels: Email, Web, Phone, WeChat, Chat Bot, Mobile App
  • 500+ Fields: Comprehensive data capture across all objects
  • AI-First Design: Every major object has AI enhancement capabilities

🎨 Design Philosophy

HotCRM follows a design language inspired by:

  • Apple macOS: Clean, minimalist, high-contrast typography
  • Linear: Smooth animations, subtle shadows, perfect spacing
  • Tailwind Utilities: Utility-first CSS for rapid iteration

Design principles:

  • Large border radius (rounded-xl, rounded-2xl)
  • Subtle borders (border-gray-200)
  • Frosted glass effects (backdrop-blur)
  • High contrast dark text
  • Generous white space

πŸ€– AI Integration

Smart Briefing

When viewing a customer page, the AI analyzes:

  • Recent activities (last 10 interactions)
  • Email communications
  • Historical data
  • Industry context

Output:

  • 200-word executive summary
  • Personalized next-step recommendations
  • Industry-specific sales talking points

πŸ“– API Documentation

ObjectQL Examples

// Query accounts with opportunities
const accounts = await db.query({
  object: 'Account',
  fields: ['Name', 'Industry', 'AnnualRevenue'],
  filters: {
    Industry: { $in: ['Technology', 'Finance'] }
  },
  related: {
    Opportunities: {
      fields: ['Name', 'Amount', 'Stage']
    }
  }
});

Trigger Example

// Opportunity Stage Change Trigger
export async function onOpportunityStageChange(ctx: TriggerContext) {
  if (ctx.new.Stage === 'Closed Won') {
    // Create contract
    await ctx.db.doc.create('Contract', {
      AccountId: ctx.new.AccountId,
      OpportunityId: ctx.new.Id,
      Status: 'Draft'
    });
    
    // Update account
    await ctx.db.doc.update('Account', ctx.new.AccountId, {
      CustomerStatus: 'Active Customer'
    });
  }
}

πŸ”’ Security

  • All data operations are audited
  • Row-level security support
  • Field-level permissions
  • Encrypted sensitive data
  • Weekly CodeQL security scans
  • Automated dependency updates via Dependabot

πŸ€– Automation & CI/CD

HotCRM includes comprehensive GitHub Actions workflows for automation:

  • Continuous Integration: Automated builds, linting, and testing on every PR
  • Security Scanning: Weekly CodeQL analysis for vulnerability detection
  • Code Quality: Automated quality checks and best practices enforcement
  • Automated Releases: Tag-based releases with automatic changelog generation
  • Documentation: Auto-deploy to GitHub Pages
  • Dependency Management: Weekly automated dependency updates
  • Issue Management: Auto-greeting for first-time contributors
  • PR Automation: Auto-labeling based on changed files

For workflow configuration details, see the individual workflow files in .github/workflows/.

πŸ“„ License

MIT License - see LICENSE file for details

🀝 Contributing

Contributions are welcome! Please read our CONTRIBUTING.md guide first.

πŸ“ž Support

For support and questions, please open an issue on GitHub.

About

A world-class Customer Relationship Management system built on @objectstack/spec v3.0.0 protocol with Salesforce-level functionality and Apple/Linear-level UX.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages