import { CubeIcon } from '@heroicons/react/outline'
import { DASHBOARD_SIGN_UP_URL } from '@/lib/dashboard-links'
import {
ArrowLeftRight,
Check,
ClipboardCheck,
FolderLock,
HeartPulse,
InfoIcon,
Lightbulb,
List,
Lock,
ShieldAlert,
ShieldCheck,
Sparkles,
Timer,
Users,
UserX,
} from 'lucide-react'
import dynamic from 'next/dynamic'
import { PRODUCT_SHORTNAMES } from 'shared-data/products'
import { Image } from 'ui-patterns/Image'
import { companyStats } from '../company-stats'
import MainProducts from '../MainProducts'
import {
FrameworkLink,
getEditors,
type FeaturesSection,
type FrameworkLinkProps,
type HeroSection,
type Metadata,
type Quotes,
} from './solutions.utils'
import type { SecuritySectionProps } from '@/components/Enterprise/Security'
import { frameworks } from '@/components/Hero/HeroFrameworks'
import RealtimeLogs from '@/components/Products/Functions/RealtimeLogs'
import type { DXSectionProps } from '@/components/Solutions/DeveloperExperienceSection'
import type { MPCSectionProps } from '@/components/Solutions/MPCSection'
import type { PlatformSectionProps } from '@/components/Solutions/PlatformSection'
import type { ResultsSectionProps } from '@/components/Solutions/ResultsSection'
import type { TwoColumnsSectionProps } from '@/components/Solutions/TwoColumnsSection'
const AuthVisual = dynamic(() => import('components/Products/AuthVisual'))
const FunctionsVisual = dynamic(() => import('components/Products/FunctionsVisual'))
const RealtimeVisual = dynamic(() => import('components/Products/RealtimeVisual'))
const editors = getEditors(false)
const data: {
metadata: Metadata
heroSection: HeroSection
quotes: Quotes
why: FeaturesSection
platform: PlatformSectionProps
developerExperience: DXSectionProps
resultsSection: ResultsSectionProps
securitySection: SecuritySectionProps
partnerships: FeaturesSection
platformStarterSection: TwoColumnsSectionProps
mcp: MPCSectionProps
} = {
metadata: {
metaTitle: 'Supabase for Agencies',
metaDescription:
'Build production-ready client applications faster with a fully managed Postgres backend that scales with every engagement.',
},
heroSection: {
id: 'hero',
title: 'Supabase for Agencies',
h1: <>Supabase for Agencies>,
subheader: [
<>
Ship client projects faster, scale with confidence, stay profitable.
>,
<>
You need to deliver production-ready applications quickly without sacrificing quality or
accumulating technical debt. Supabase gives you a fully managed Postgres backend with
everything needed to build and scale client applications while maintaining the flexibility
your clients demand.
>,
],
image: undefined,
ctas: [
{
label: 'Start your project',
href: DASHBOARD_SIGN_UP_URL,
type: 'primary' as const,
},
{
label: 'Request a demo',
href: '#request-demo',
type: 'default' as const,
},
],
},
quotes: {
id: 'quotes',
items: [
{
icon: '/images/logos/publicity/imaginary-space.svg',
avatar: '/images/avatars/thomas-olson.jpeg',
author: 'Thomas Olson',
authorTitle: 'COO, Imaginary Space',
quote: (
<>
Our clients want reliability and scale. Supabase gives us a backend we can trust for
production work.
>
),
},
{
icon: '/images/logos/publicity/sjinnovation.svg',
avatar: '/images/avatars/shahed-islam.jpeg',
author: 'Shahed Islam',
authorTitle: 'CEO, SJ Innovation LLC',
quote: (
<>
Supabase lets us build stable, secure products extremely fast.
>
),
},
{
icon: '/images/logos/publicity/wegetdesign.svg',
avatar: '/images/avatars/omar-moulani.jpeg',
author: 'Omar Moulani',
authorTitle: 'Founder, WeGetDesign',
quote: (
<>
Supabase brings structure and clarity to our backend work. Its interface and tooling
make it easy to deploy, manage, and scale projects without friction.
>
),
},
{
icon: '/images/logos/publicity/brthrs.svg',
avatar: '/images/avatars/zimo-holdijk.png',
author: 'Zimo Holdijk',
authorTitle: 'Lead Product Manager, Brthrs',
quote: (
<>
Supabase is our go-to backend for client work because it's fast to build with and
easy to maintain.
>
),
},
],
},
why: {
id: 'why-agencies',
label: '',
heading: (
<>
Why agencies choose Supabase
>
),
subheading:
'You want to deliver exceptional results for your clients while staying profitable and competitive. At the same time, you need the flexibility to customize solutions and the confidence that your applications will scale. Supabase is the complete Postgres developer platform of choice for agencies building production applications.',
features: [
{
id: 'ship-faster',
icon: Timer,
heading: 'Ship client projects faster',
subheading:
'Deliver production-ready applications in weeks, not months. Supabase provides a complete backend with auto-generated APIs and built-in features, letting you focus on what makes each client project unique rather than rebuilding the same infrastructure every time.',
},
{
id: 'trusted-technology',
icon: CubeIcon,
heading: 'Build on technology your clients can trust',
subheading:
'Give clients enterprise-grade security and compliance without the enterprise complexity. Supabase is “just Postgres,” offering SOC 2 and HIPAA compliance out of the box so their applications are built on battle-tested, portable technology they can grow with.',
},
{
id: 'maintain-scale',
icon: (props: any) => (
),
heading: 'Maintain and scale with ease',
subheading:
'Reduce ongoing maintenance and keep clients happy long after launch. Applications built on Supabase are ready to handle growth, with read replicas, HA architecture, and flexible tooling so you can support every phase of a client engagement.',
},
],
},
platform: {
id: 'postgres-platform',
title: (
<>
Supabase helps you build
>
),
subheading:
'Supabase includes everything you need to deliver complete, production-ready applications for your clients.',
features: [
{
id: 'database',
title: 'Database',
isDatabase: true,
icon: MainProducts[PRODUCT_SHORTNAMES.DATABASE].icon,
subheading: (
<>
A fully managed Postgres database. No forks: 100% pure Postgres.
>
),
className: 'lg:col-span-2 flex-col lg:flex-row px-4 lg:pr-0',
image: (
Issue: We have detected that you have enabled the email provider with an expiry time
of more than an hour. It is recommended to set this value to less th...
),
},
{
id: 'mcp-server',
title: 'MCP Server',
icon: 'M19 5L22 2M2 22L5 19M7.5 13.5L10 11M10.5 16.5L13 14M6.3 20.3C6.52297 20.5237 6.78791 20.7013 7.07963 20.8224C7.37136 20.9435 7.68413 21.0059 8 21.0059C8.31587 21.0059 8.62864 20.9435 8.92036 20.8224C9.21209 20.7013 9.47703 20.5237 9.7 20.3L12 18L6 12L3.7 14.3C3.47626 14.523 3.29873 14.7879 3.17759 15.0796C3.05646 15.3714 2.99411 15.6841 2.99411 16C2.99411 16.3159 3.05646 16.6286 3.17759 16.9204C3.29873 17.2121 3.47626 17.477 3.7 17.7L6.3 20.3ZM12 6L18 12L20.3 9.7C20.5237 9.47703 20.7013 9.21209 20.8224 8.92036C20.9435 8.62864 21.0059 8.31587 21.0059 8C21.0059 7.68413 20.9435 7.37136 20.8224 7.07963C20.7013 6.78791 20.5237 6.52297 20.3 6.3L17.7 3.7C17.477 3.47626 17.2121 3.29873 16.9204 3.17759C16.6286 3.05646 16.3159 2.99411 16 2.99411C15.6841 2.99411 15.3714 3.05646 15.0796 3.17759C14.7879 3.29873 14.523 3.47626 14.3 3.7L12 6Z',
subheading: (
<>
Connect your favorite AI tools—Cursor,
Windsurf, Claude, and more—directly with Supabase.
>
),
image: (
),
},
{
id: 'auto-generated-apis',
title: 'Auto-generated APIs',
icon: 'M4.13477 12.8129C4.13477 14.1481 4.43245 15.4138 4.96506 16.5471M12.925 4.02271C11.5644 4.02271 10.276 4.33184 9.12614 4.88371M21.7152 12.8129C21.7152 11.4644 21.4115 10.1867 20.8688 9.0447M12.925 21.6032C14.2829 21.6032 15.5689 21.2952 16.717 20.7454M16.717 20.7454C17.2587 21.5257 18.1612 22.0366 19.1831 22.0366C20.84 22.0366 22.1831 20.6935 22.1831 19.0366C22.1831 17.3798 20.84 16.0366 19.1831 16.0366C17.5263 16.0366 16.1831 17.3798 16.1831 19.0366C16.1831 19.6716 16.3804 20.2605 16.717 20.7454ZM4.96506 16.5471C4.16552 17.086 3.63965 17.9999 3.63965 19.0366C3.63965 20.6935 4.98279 22.0366 6.63965 22.0366C8.2965 22.0366 9.63965 20.6935 9.63965 19.0366C9.63965 17.3798 8.2965 16.0366 6.63965 16.0366C6.01951 16.0366 5.44333 16.2248 4.96506 16.5471ZM9.12614 4.88371C8.58687 4.08666 7.67444 3.56274 6.63965 3.56274C4.98279 3.56274 3.63965 4.90589 3.63965 6.56274C3.63965 8.2196 4.98279 9.56274 6.63965 9.56274C8.2965 9.56274 9.63965 8.2196 9.63965 6.56274C9.63965 5.94069 9.45032 5.36285 9.12614 4.88371ZM20.8688 9.0447C21.6621 8.50486 22.1831 7.59464 22.1831 6.56274C22.1831 4.90589 20.84 3.56274 19.1831 3.56274C17.5263 3.56274 16.1831 4.90589 16.1831 6.56274C16.1831 8.2196 17.5263 9.56274 19.1831 9.56274C19.8081 9.56274 20.3884 9.37165 20.8688 9.0447Z',
subheading: (
<>
Learn SQL when you’re ready. In the meantime,
Supabase generates automatic APIs so your teams can stay focused on UX.
>
),
image: (
),
},
{
id: 'foreign-data-wrappers',
title: 'Foreign Data Wrappers',
icon: 'M10.2805 18.2121C11.2419 18.6711 12.3325 18.8932 13.4711 18.8084C15.2257 18.6776 16.7596 17.843 17.8169 16.6015M8.21496 8.36469C9.27117 7.14237 10.7928 6.322 12.5311 6.19248C13.7196 6.10392 14.8558 6.34979 15.8474 6.85054M21.7152 12.8129C21.7152 11.4644 21.4115 10.1867 20.8688 9.0447M12.925 21.6032C14.2829 21.6032 15.5689 21.2952 16.717 20.7454M16.717 20.7454C17.2587 21.5257 18.1612 22.0366 19.1831 22.0366C20.84 22.0366 22.1831 20.6935 22.1831 19.0366C22.1831 17.3798 20.84 16.0366 19.1831 16.0366C17.5263 16.0366 16.1831 17.3798 16.1831 19.0366C16.1831 19.6716 16.3804 20.2605 16.717 20.7454ZM4.96506 16.5471C4.16552 17.086 3.63965 17.9999 3.63965 19.0366C3.63965 20.6935 4.98279 22.0366 6.63965 22.0366C8.2965 22.0366 9.63965 20.6935 9.63965 19.0366C9.63965 17.3798 8.2965 16.0366 6.63965 16.0366C6.01951 16.0366 5.44333 16.2248 4.96506 16.5471ZM9.12614 4.88371C8.58687 4.08666 7.67444 3.56274 6.63965 3.56274C4.98279 3.56274 3.63965 4.90589 3.63965 6.56274C3.63965 8.2196 4.98279 9.56274 6.63965 9.56274C8.2965 9.56274 9.63965 8.2196 9.63965 6.56274C9.63965 5.94069 9.45032 5.36285 9.12614 4.88371ZM20.8688 9.0447C21.6621 8.50486 22.1831 7.59464 22.1831 6.56274C22.1831 4.90589 20.84 3.56274 19.1831 3.56274C17.5263 3.56274 16.1831 4.90589 16.1831 6.56274C16.1831 8.2196 17.5263 9.56274 19.1831 9.56274C19.8081 9.56274 20.3884 9.37165 20.8688 9.0447Z',
subheading: (
<>
Connect Supabase to{' '}
BigQuery, Snowflake, ClickHouse and external
APIs for seamless integrations with your clients’ existing systems.
>
),
image: (
),
},
{
id: 'instant-deployment',
title: 'Instant and secure deployment',
icon: 'M12.5 1.5625C6.45939 1.5625 1.5625 6.45939 1.5625 12.5C1.5625 18.5406 6.45939 23.4375 12.5 23.4375C18.5406 23.4375 23.4375 18.5406 23.4375 12.5C23.4375 9.90692 22.5351 7.52461 21.0273 5.64995L11.6145 15.0627L9.61957 13.0677M12.6068 5.82237C8.92939 5.82237 5.94826 8.80351 5.94826 12.4809C5.94826 16.1583 8.92939 19.1395 12.6068 19.1395C16.2842 19.1395 19.2654 16.1583 19.2654 12.4809C19.2654 11.1095 18.8507 9.83483 18.14 8.77557',
subheading: (
<>
No need to set up servers, manage DevOps, or
tweak security settings.
>
),
image: (
<>
>
),
},
{
id: 'observability',
title: 'Observability',
icon: 'M11.1404 7.66537C11.1404 5.18146 13.1541 3.16785 15.638 3.16785H17.3775C19.8614 3.16785 21.875 5.18146 21.875 7.66537V17.3776C21.875 19.8615 19.8614 21.8751 17.3775 21.8751H15.638C13.1541 21.8751 11.1404 19.8615 11.1404 17.3776V7.66537Z M3.125 14.7821C3.125 13.4015 4.24419 12.2823 5.62477 12.2823C7.00536 12.2823 8.12454 13.4015 8.12454 14.7821V19.3754C8.12454 20.7559 7.00536 21.8751 5.62477 21.8751C4.24419 21.8751 3.125 20.7559 3.125 19.3754V14.7821Z M3.125 5.58522C3.125 4.20463 4.24419 3.08545 5.62477 3.08545C7.00536 3.08545 8.12454 4.20463 8.12454 5.58522V6.95164C8.12454 8.33223 7.00536 9.45142 5.62477 9.45142C4.24419 9.45142 3.125 8.33223 3.125 6.95164V5.58522Z',
subheading: (
<>
Built-in logs, query performance tools, and security insights for{' '}
easy debugging.
>
),
image: (
),
},
],
},
resultsSection: {
id: 'results',
heading: (
<>
Top performance,
at any scale
>
),
subheading:
'Supabase ensures optimal database performance at any scale, so you can confidently promise your clients reliable, fast applications without worrying about infrastructure limitations.',
highlights: [
{
heading: companyStats.databasesManaged.label,
subheading: companyStats.databasesManaged.text,
},
{
heading: companyStats.databasesLaunchedDaily.label,
subheading: companyStats.databasesLaunchedDaily.text,
},
],
},
securitySection: {
id: 'security',
label: 'Security',
heading: 'Trusted for medical records, missions to the moon, and everything in between',
subheading:
'Support a full range of potential clients. Supabase offers enterprise-grade security with SOC 2, HIPAA, and GDPR compliance. Client data is encrypted at rest and in transit, with built-in tools for monitoring and managing security threats.',
features: [
{ icon: ShieldCheck, heading: 'SOC 2 Type II certified' },
{ icon: HeartPulse, heading: 'HIPAA compliant' },
{ icon: ShieldAlert, heading: 'DDoS Protection' },
{ icon: Lock, heading: 'Multi-factor Authentication' },
{ icon: ClipboardCheck, heading: 'Vulnerability Management' },
{ icon: Users, heading: 'Role-based access control' },
{ icon: List, heading: 'Database Audit Logs' },
{ icon: Lightbulb, heading: 'Security Advisors' },
{ icon: FolderLock, heading: 'Encrypted Storage' },
{ icon: UserX, heading: 'Network restrictions' },
],
cta: {
label: 'Learn about security',
url: '/security',
},
},
partnerships: {
id: 'partnerships',
label: 'Partnerships',
heading: (
<>
Integrate with a vibrant
partner ecosystem
>
),
subheading:
'Supabase integrates with a vibrant partner ecosystem, allowing your agency to assemble best-in-class solutions for every client.',
features: [
{
icon: Sparkles,
heading: 'Accelerate development with AI builders',
subheading:
'Turn visual prototypes into production-ready applications by connecting front-end tools like Lovable and Bolt to a real Supabase, open-source Postgres backend.',
},
{
icon: Lightbulb,
heading: 'Speed up coding with intelligent IDEs',
subheading:
'Our MCP server integrates with AI code editors, giving them deep context of your database schema to help developers manage your backend directly from your IDE.',
},
{
icon: ArrowLeftRight,
heading: 'Connect to any data source',
subheading:
"Foreign Data Wrappers link Supabase to your clients' existing data sources, allowing you to build applications that integrate seamlessly with their current infrastructure.",
},
],
},
platformStarterSection: {
id: 'platform-starter',
heading: (
<>
Choose your platform to start building in
seconds
>
),
headingRight: (
<>
Or, start with Supabase AI Prompts{' '}
>
),
docsUrl: 'https://supabase.com/docs/guides/ai-tools/ai-prompts',
leftFooter: (
),
aiPrompts: [
{
id: 'auth-setup',
title: 'Bootstrap Next.js app with Supabase Auth',
description:
'## Overview of implementing Supabase Auth SSR\n1. Install @supabase/supabase-js and...',
code: `1. Install @supabase/supabase-js and @supabase/ssr packages.
2. Set up environment variables.
3. Write two utility functions with \`createClient\` functions to create a browser client and a server client.
4. Hook up middleware to refresh auth tokens
`,
language: 'markdown',
docsUrl: 'https://supabase.com/docs/guides/ai-tools/ai-prompts/nextjs-supabase-auth',
},
{
id: 'edge-functions',
title: 'Writing Supabase Edge Functions',
description:
"You're a Supabase Postgres expert in writing row level security policies. Your purpose is to generate...",
code: `1. Try to use Web APIs and Deno’s core APIs instead of external dependencies (eg: use fetch instead of Axios, use WebSockets API instead of node-ws)
2. If you are reusing utility methods between Edge Functions, add them to 'supabase/functions/_shared' and import using a relative path. Do NOT have cross dependencies between Edge Functions.
3. Do NOT use bare specifiers when importing dependecnies. If you need to use an external dependency, make sure it's prefixed with either 'npm:' or 'jsr:'. For example, '@supabase/supabase-js' should be written as 'npm:@supabase/supabase-js'.
4. For external imports, always define a version. For example, 'npm:@express' should be written as 'npm:express@4.18.2'.
5. For external dependencies, importing via 'npm:' and 'jsr:' is preferred. Minimize the use of imports from @'deno.land/x' , 'esm.sh' and @'unpkg.com' . If you have a package from one of those CDNs, you can replace the CDN hostname with 'npm:' specifier.
`,
language: 'markdown',
docsUrl: 'https://supabase.com/docs/guides/ai-tools/ai-prompts/edge-functions',
},
{
id: 'declarative-db-schema',
title: 'Declarative Database Schema',
description:
"You're a Supabase Postgres expert in writing row level security policies. Your purpose is to generate...",
code: `Mandatory Instructions for Supabase Declarative Schema Management
## 1. **Exclusive Use of Declarative Schema**
-**All database schema modifications must be defined within '.sql' files located in the 'supabase/schemas/' directory.`,
language: 'markdown',
docsUrl: 'https://supabase.com/docs/guides/ai-tools/ai-prompts/declarative-database-schema',
},
{
id: 'rls-policies',
title: 'Create RLS policies',
description:
"You're a Supabase Postgres expert in writing row level security policies. Your purpose is to generate...",
code: `You're a Supabase Postgres expert in writing row level security policies. Your purpose is to generate a policy with the constraints given by the user. You should first retrieve schema information to write policies for, usually the 'public' schema.
The output should use the following instructions:
- The generated SQL must be valid SQL.`,
language: 'markdown',
docsUrl: 'https://supabase.com/docs/guides/ai-tools/ai-prompts/database-rls-policies',
},
],
},
mcp: {
id: 'mcp',
heading: (
Supabase MCP server works seamlessly with{' '}
your favorite AI code editor