Shared Services Architecture

Central infrastructure layer — all modules consume these unified services. No duplication allowed.

13

Active Services

2

Service Events

5

System Logs

0

Audit Entries

Authentication Service

Security

Centralized user authentication, session management, and identity verification

get_current_userupdate_profile

Base44 Auth SDK — session tokens, OAuth, OTP

Authorization Service (RBAC)

Security

Role-based access control and permission validation across all modules

check_rolecheck_permissionget_permissions

Owner / Manager / User role tiers with permission matrix

Stripe Payment Service

Infrastructure

All payment operations — subscriptions, one-time payments, deposits, refunds, revenue splitting

create_checkoutprocess_refundget_statussplit_revenue

Admin-only refunds, audit-logged, Stripe webhook validated

Cloudflare R2 Storage Service

Infrastructure

Centralized file storage with signed URLs — images, videos, documents, project files

uploadupload_privateget_signed_url

Signed URLs, private storage default, access-controlled

Notification Service

Communication

Centralized notifications for email, in-app, dashboard alerts, and system events

createbroadcastlistmark_read

User-scoped, triggered by workflow events

Messaging Service

Communication

Central communication system — project threads, direct messages, group chats, file attachments

sendlist_threadmark_read

Thread-scoped, read receipts, attachments via Storage Service

Email Service

Communication

Centralized email delivery for transactional emails, notifications, and communications

send

Audit-logged, templated, from-name controlled

AI Service Layer

Intelligence

Central AI gateway — content generation, image enhancement, text analysis, automation suggestions

invoke_llmgenerate_imagetranscribeget_usage

Subscription-tier limits, usage tracking, Stripe billing validation

Search Service

Intelligence

Global permission-aware search across products, projects, clients, partners, bookings, files

global

Role-based filtering, permission-aware results

File Management Service

Infrastructure

Upload validation, type restrictions, security scanning, storage routing to R2

validateupload

Type validation, size limits, access control enforcement

Logging Service

Operations

Immutable system event tracking — user actions, system actions, errors, performance

createlist

Owner-only full access, immutable records

Analytics Service

Operations

Centralized data aggregation — sales, bookings, projects, payments, traffic, AI usage

dashboardtrack_event

Role-scoped metrics, no independent module calculations

Audit Service

Security

Immutable sensitive action tracking — role changes, payments, refunds, approvals, file access

listcreate

Owner full access, manager limited access, immutable logs