Skip to main content

Architecture Overview

The Reformer Platform is a modular automation stack that connects a Node.js/Express API, a React dashboard, and several third-party services (Stripe, ClickUp, Dropbox, Close CRM, Resend, Slack, Cal.com, Intercom, Vimeo, Spotify, Hunter, Pirsch, PageSpeed, Webflow AI). 15 custom MCP servers provide AI assistants with direct access to all services. This page shows how those pieces fit together and where to start when troubleshooting or extending the system.

Core Components

ComponentLocationPurpose
Backend APIreformer-platform/src/server.jsExpress server exposing onboarding, billing, integrations, and health endpoints.
Automation Orchestratorreformer-platform/services/automation-orchestrator.jsCentral coordinator invoked by onboarding flows; dispatches downstream integrations.
Frontend Dashboard/dashboardReact/Vite app surfaced to internal team and clients (Cloudflare Pages).
DatabaseSupabase PostgreSQL (DATABASE_URL)Stores members, integrations, automation state.
Integrationsreformer-platform/services/*.jsService-specific SDK wrappers (ClickUp, Slack, Dropbox, Resend, Close, etc.).
MCP Serversreformer-platform/mcp-servers/*/15 custom MCP servers providing AI assistants with direct access to all services.

Request Flow (Onboarding v2)

  1. Trigger: Dashboard or external system sends POST /api/onboarding-v2 with member details.
  2. Validation: Express route validates payload, logs request, and normalizes data.
  3. Orchestration: automation-orchestrator.js kicks off tasks:
    • Create ClickUp project structure (clickup-service.js).
    • Generate Dropbox folders (dropbox-service.js).
    • Send Resend onboarding emails (resend-service.js).
    • MCP servers enable AI assistants to manage all services directly from Cursor.
    • Notify Slack (slack-service.js).
    • Update Close CRM lead (close-service.js).
  4. Result: Response returns success/failure per integration; errors routed to alerting channel.

Hosting & Environments

EnvironmentBase URLNotes
Developmenthttp://localhost:10000Run via npm run dev. Uses local env file with test credentials.
Staginghttps://staging.reformer-platform.pages.devOptional; inherits staging API base.
Productionhttps://reformer-platform.onrender.comRender.com service; all env vars configured per reformer-platform/ENV-TEMPLATE.md.

Frontend dashboard is deployed separately on Cloudflare Pages (Webflow build) and communicates with the backend via the environment-specific API base URL.

Key Files

  • reformer-platform/src/api/onboarding-v2.js – Primary onboarding endpoint.
  • reformer-platform/src/api/checkout.js – Stripe billing flow.
  • reformer-platform/services/* – Integration wrappers (ClickUp, Slack, Dropbox, etc.).
  • reformer-platform/scripts/* – Automation helpers (ClickUp setup, bug updates).

Next Steps