import { useBreakpoint } from 'common' import { DASHBOARD_SIGN_UP_URL } from '@/lib/dashboard-links' import { Check, CheckCircle, Sparkles, Timer, Zap } from 'lucide-react' import dynamic from 'next/dynamic' import { PRODUCT_SHORTNAMES } from 'shared-data/products' import { Image } from 'ui-patterns/Image' import MainProducts from '../MainProducts' import type { FeaturesSection, HeroSection, Metadata, PostGridProps, Quotes, } from './solutions.utils' import { FrameworkLink, getEditors } from './solutions.utils' import { frameworks } from '@/components/Hero/HeroFrameworks' import type { MPCSectionProps } from '@/components/Solutions/MPCSection' const AuthVisual = dynamic(() => import('components/Products/AuthVisual')) const ComputePricingCalculator = dynamic( () => import('components/Pricing/ComputePricingCalculator') ) const FunctionsVisual = dynamic(() => import('components/Products/FunctionsVisual')) const RealtimeVisual = dynamic(() => import('components/Products/RealtimeVisual')) const AIBuildersLogos = dynamic(() => import('components/Solutions/AIBuildersLogos')) const useVibeCodersContent: () => { metadata: Metadata heroSection: HeroSection quotes: Quotes why: FeaturesSection platform: any platformStarterSection: any mcp: MPCSectionProps postGrid: PostGridProps } = () => { const isXs = useBreakpoint(640) const editors = getEditors(isXs) return { metadata: { metaTitle: 'Supabase for Vibe Coders', metaDescription: 'Your weekend prototype deserves production. Stop letting backend complexity kill your momentum. Supabase is the production-ready backend that works with your AI tools from day one.', }, heroSection: { id: 'hero', title: 'Vibe Coders', h1: ( <> Your weekend prototype deserves production ), subheader: [ <> Weekend project. Real users. Now what? Stop letting backend complexity kill your momentum. , ], image: undefined, ctas: [ { label: 'Start Your Project', href: DASHBOARD_SIGN_UP_URL, type: 'primary' as any, }, ], }, quotes: { id: 'quotes', items: [ { icon: '/images/logos/publicity/lovable.svg', avatar: '/images/avatars/anton-osika.jpg', author: 'Anton Osika', authorTitle: 'Lovable - CEO', quote: ( <> We chose Supabase because it's{' '} extremely user friendly and{' '} covers all the needs to build full-stack applications . ), }, { icon: '/images/logos/publicity/bolt.svg', avatar: '/images/avatars/eric-simons.jpg', author: 'Eric Simmons', authorTitle: 'Bolt.new - CEO', quote: ( <> Supabase is awesome. Supabase is the{' '} key database integration that we have...because it’s the{' '} best product in the world for storing and retrieving data . ), }, { icon: '/images/logos/publicity/v0.svg', avatar: '/images/avatars/guillermo-rauch.jpg', author: 'Guillermo Rauch', authorTitle: 'Vercel (v0) - CEO', quote: ( <> v0 integrates with Supabase seamlessly. If you ask v0 to generate an application and it needs Supabase,{' '} you’ll be prompted to create a Supabase account right there in the application . ), }, ], }, why: { id: 'why-supabase', label: '', heading: ( <> The Vibe Coder's Dilemma ), subheading: "Your AI assistant nails the prototype. Users actually want it. Then reality hits. Authentication breaks. Databases crash. Deployment becomes a nightmare. You're not alone. Every vibe coder hits this wall.", features: [ { id: 'built-for-how-you-build', icon: Zap, heading: 'Built for how you build', subheading: 'Supabase is a complete production-ready back-end that includes everything you need to ship full-featured apps.', }, { id: 'prototype-to-production', icon: Timer, heading: 'From prototype to production', subheading: 'Start with a weekend project and scale to millions of users. Supabase handles the complexity so you can focus on what matters - building great products.', }, { id: 'vibe-coding-toolkit', icon: CheckCircle, heading: 'Break through with our Vibe Coding Toolkit', subheading: 'Tools, articles, and other resources to help you deploy your application to production with confidence.', }, ], }, platform: { id: 'vibe-coding-platform', title: ( <> Built for how you build ), subheading: 'Supabase is a production-ready backend that works with your AI tools from day one. No DevOps degree required. No months of setup. No "learning the hard way." Just ship.', className: '', features: [ { id: 'database', title: 'Database', isDatabase: true, icon: MainProducts[PRODUCT_SHORTNAMES.DATABASE].icon, subheading: ( <> A fully managed database that’s simple for creators and{' '} trusted by enterprises. ), className: 'lg:col-span-2 flex-col lg:flex-row', image: (
{[ { name: 'Jon Meyers', pub: 'All', active: false }, { name: 'Chris Martin', pub: 'All', active: true }, { name: 'Amy Quek', pub: 'No', active: false }, { name: 'Riccardo Bussetti', pub: 'No', active: false }, { name: 'Beng Eu', pub: 'All', active: false }, { name: 'Tyler Hillery', pub: 'All', active: false }, ].map((row) => ( ))}
NAME PUBLICATION
{row.name} {row.pub}
), highlights: ( ), }, { id: 'authentication', title: 'Authentication', icon: MainProducts[PRODUCT_SHORTNAMES.AUTHENTICATION].icon, subheading: ( <> Let your users{' '} login with email, Google, Apple, GitHub, and more . Secure and trusted. ), className: 'border-l-0! sm:border-l! sm:border-t-0!', image: , }, { id: 'realtime', title: 'Realtime', icon: MainProducts[PRODUCT_SHORTNAMES.REALTIME].icon, subheading: ( <> Build immersive{' '} multi-player, collaborative experiences. ), className: 'border-l-0!', image: ( ), }, { id: 'edge-functions', title: 'Edge Functions', icon: MainProducts[PRODUCT_SHORTNAMES.FUNCTIONS].icon, subheading: <>Custom backend logic when you want to dive into code., className: 'border-l-0! sm:border-l!', image: , }, { id: 'storage', title: 'Storage', icon: MainProducts[PRODUCT_SHORTNAMES.STORAGE].icon, subheading: ( <> Affordable and fast, for all the videos and images you need in your app. ), className: 'border-l-0! lg:border-l!', image: ( Storage ), }, { id: 'vectors', title: 'AI Ready', 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: ( <> When you’re ready to explore vectors and{' '} the power of AI, Supabase is there with industry-standard tools to guide you. ), className: 'border-l! lg:border-l-0!', image: ( Vector embeddings ), }, { id: 'pricing', title: 'Pricing for builders', className: 'sm:col-span-2 flex-col', icon: ( ), subheading: ( <> A generous free tier, plus fair, flexible pricing when you’re ready to scale. ), image: (
), }, ], }, 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: (
{frameworks.map((framework) => ( ))}
), aiPrompts: [ { id: 'auth-setup', title: 'Bootstrap Next.js app with Supabase Auth', code: `1. Install @supabase/supabase-js and @supabase/ssr packages. 2. Set up environment variables. 3. Write two utility functions with \u0060createClient\u0060 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', 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', 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', 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
), ctaLabel: 'Connect your AI tools', documentationLink: '/docs/guides/getting-started/mcp', frameworks: editors, apiExamples: [ { lang: 'json', title: 'macOS', code: `{ "mcpServers": { "supabase": { "command": "npx", "args": [ "-y", "@supabase/mcp-server-supabase@latest", "--read-only", "--project-ref=" ], "env": { "SUPABASE_ACCESS_TOKEN": "" } } } }`, }, { lang: 'json', title: 'Windows', code: `{ "mcpServers": { "supabase": { "command": "cmd", "args": [ "/c", "npx", "-y", "@supabase/mcp-server-supabase@latest", "--read-only", "--project-ref=" ], "env": { "SUPABASE_ACCESS_TOKEN": "" } } } }`, }, { lang: 'json', title: 'Windows (WSL)', code: `{ "mcpServers": { "supabase": { "command": "wsl", "args": [ "npx", "-y", "@supabase/mcp-server-supabase@latest", "--read-only", "--project-ref=" ], "env": { "SUPABASE_ACCESS_TOKEN": "" } } } }`, }, { lang: 'json', title: 'Linux', code: `{ "mcpServers": { "supabase": { "command": "npx", "args": [ "-y", "@supabase/mcp-server-supabase@latest", "--read-only", "--project-ref=" ], "env": { "SUPABASE_ACCESS_TOKEN": "" } } } }`, }, ], }, postGrid: { header: <>The Vibe Coding Toolkit, subheader: ( <> Supabase gives you the tools to easily manage databases, authentication, and backend infrastructure so you can build faster and ship with confidence. ), }, } } export { useVibeCodersContent as default }