Components for Businesses, Not Buttons

React gave us component-based UI. mdxui gives us component-based businesses. Declare your startup in a single file—auth, billing, agents, APIs—all wired and ready.

You've built this scaffolding before.

47 files·3,200 lines·6 integrations·2 weeks
        • providers.ts
        • session.ts
        • middleware.ts
        • callbacks.ts
        • stripe.ts
        • webhooks.ts
        • checkout.ts
        • plans.ts
          • users.ts
          • teams.ts
          • billing.ts
        • middleware
        • validators
        • components
        • charts
        • layouts
        • invites.ts
        • permissions.ts
        • seats.ts
        • db.ts
        • email.ts
        • analytics.ts
      • schema.prisma
    • package.json
    • ... (23 more files)

One File. Full Business.

This isn't a mockup. Each component deploys real infrastructure.

my-saas.mdx
---
$type: SaaS
$id: acme-analytics
name: "Acme Analytics"
---

<Startup
  name="Acme Analytics"
  domain="acme.analytics"
  billing={stripe}
/>

<Agent
  name="DataAnalyst"
  role="Analyze metrics and surface insights"
  tools={[query, visualize, report]}
/>

<Service
  name="Analytics API"
  endpoints={[track, identify, query]}
  rateLimit={{ requests: 10000, window: "1h" }}
/>

<Dashboard metrics={[mrr, churn, nps]} />

<Team invites billing={perSeat} />
Type-safe
Auto-wired
Production-ready

Three Layers of Abstraction

mdxui components operate at three levels—each one eliminating categories of work you'd otherwise do by hand.

Declare the Business
<Startup/><Agency/><Marketplace/>

These aren't UI widgets—they're entire business models. Drop in a Startup component and you get authentication, billing, team management, and a customer dashboard.

Hire the Team
<Agent/><Workflow/><Function/>

AI-native primitives that execute business logic. Define an Agent with a role and tools—it starts working. Chain agents into Workflows that run autonomously.

Expose the APIs
<API/><Integration/><Webhook/>

Services-as-Software that connect and compose. Define endpoints, rate limits, and authentication in one place. Integrations are first-class citizens.

Everything You Need

Each component auto-wires to production infrastructure. No configuration required.

Authentication

OAuth, magic links, and SSO built-in

Billing

Stripe subscriptions and usage-based pricing

AI Agents

Deploy intelligent agents with tool access

Database

Postgres with automatic migrations

Teams

Multi-tenant workspaces and permissions

APIs

Type-safe REST and GraphQL endpoints

Email

Transactional and marketing emails

Webhooks

Receive and send event notifications

Components

Pre-built dashboard and admin UI

Frequently Asked Questions

Everything you need to know about mdxui.

Why mdxui?

See how mdxui compares to building from scratch.

FeatureTraditional Stackmdxui
Time to MVP2-4 weeks1 day
Auth & SSO
Billing Integration
AI Agents
Type-safe APIsManualAuto-generated
Database MigrationsManualAutomatic
Team Management
Production ReadyConfigureOut of the box

Stop Wiring. Start Declaring.

Your next startup is a single file away.