The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
new blocks added
Jonathan Summers-Muircc4f2ac437de
diff --git a/www/pages/edge-functions/edge-functions.tsx b/www/pages/edge-functions/edge-functions.tsxindex ba9ea9be7d3..6e211a26a4b 100644--- a/www/pages/edge-functions/edge-functions.tsx+++ b/www/pages/edge-functions/edge-functions.tsx@@ -3,6 +3,9 @@ import {Button,IconArrowUpRight,IconCode,+ IconFastForward,+ IconGlobe,+ IconLock,IconShuffle,IconX,Radio,@@ -42,34 +45,28 @@ import TweetCard from '~/components/TweetCard'const featureBlocks = [{- title: 'Title of thing',- description: 'Title of thing adasd adsdsdasdasd dsadasda adsdds',+ title: 'Instant deployment',+ description: 'Deploy Edge Functions in seconds',highlightLines: '8',+ icon: <IconFastForward />,},{- title: 'Title of thing',- description: 'Title of thing adasd adsdsdasdasd dsadasda adsdds',- highlightLines: '11..23',- },- {- title: 'Title of thing',- description: 'Title of thing adasd adsdsdasdasd dsadasda adsdds',- highlightLines: '28',- },- {- title: 'Title of thing',- description: 'Title of thing adasd adsdsdasdasd dsadasda adsdds',- highlightLines: '31',+ title: 'Global',+ description: 'Deployed to 29 regions worldwide',+ highlightLines: '8',+ icon: <IconGlobe />,},{- title: 'Title of thing',- description: 'Title of thing adasd adsdsdasdasd dsadasda adsdds',- highlightLines: '31',+ title: 'Typescript ready',+ description: 'TypeScript, WASM, ES Modules',+ highlightLines: '8',+ img: 'typescript.svg',},{- title: 'Title of thing',- description: 'Title of thing adasd adsdsdasdasd dsadasda adsdds',- highlightLines: '31',+ title: 'Async triggers',+ description: 'Invoke Edge Functions based on any event in your database',+ highlightLines: '28',+ badge: 'Coming soon',},]@@ -170,8 +167,35 @@ function Database() {<SectionContainer><div className="col-span-12 mb-10 space-y-12 lg:mb-0 lg:col-span-3 ">- <div className="grid grid-cols-12 gap-32 items-center">- <div className="flex flex-col col-span-5 gap-8">+ <div className="grid grid-cols-4 gap-8 rounded">+ {featureBlocks.map((item) => {+ return (+ <div className="flex flex-col gap-4 px-8 py-6 border rounded group bg-scale-100 dark:bg-scale-300">+ {item.img ? (+ <img+ src={`/images/product/functions/${item.img}`}+ className="w-12 h-12 rounded-md"+ />+ ) : (+ <div className="flex items-center justify-center w-12 h-12 transition-all border rounded-md bg-scale-300 dark:bg-scale-500 text-scale-1200 group-hover:text-brand-900 group-hover:scale-105">+ {item.icon ? item.icon : <IconCode strokeWidth={2} />}+ </div>+ )}+ <div>+ <h3 className="text-lg text-scale-1200">{item.title}</h3>+ <p className="text-sm text-scale-900">{item.description}</p>+ </div>+ </div>+ )+ })}+ </div>+ </div>+ </SectionContainer>++ <SectionContainer>+ <div className="col-span-12 mb-10 space-y-12 lg:mb-0 lg:col-span-3 ">+ <div className="grid lg:grid-cols-12 gap-6 lg:gap-32 items-center">+ <div className="flex flex-col lg:col-span-5 gap-8"><div><h3 className="h2">Anatomy of the Edge</h3><p className="p">@@ -218,7 +242,7 @@ function Database() {})}</div></div>- <div className="col-span-7 overflow-hidden">+ <div className="lg:col-span-7 overflow-hidden"><ScrollableCodeBlocklang="ts"highlightLines={currentSelection ? currentSelection : undefined}@@ -271,154 +295,6 @@ serve(async (req) => {</div></SectionContainer>- <SectionContainer>- <div className="col-span-12 mb-10 space-y-12 lg:mb-0 lg:col-span-3 ">- <div className="text-center">- <h3 className="h2">This is a title</h3>- <p className="p">This is a title</p>- </div>-- <div className="grid grid-cols-3 gap-8 rounded">- {featureBlocks.map((item) => {- return (- <div className="flex flex-col gap-4 px-8 py-6 border rounded group bg-scale-100 dark:bg-scale-300">- <div className="flex items-center justify-center w-12 h-12 transition-all border rounded-md bg-scale-300 dark:bg-scale-500 text-scale-1200 group-hover:text-brand-900 group-hover:scale-105">- <IconCode strokeWidth={2} />- </div>- <div>- <h3 className="text-lg text-scale-1200">{item.title}</h3>- <p className="text-sm text-scale-900">{item.description}</p>- </div>- </div>- )- })}- </div>- </div>- </SectionContainer>-- <SectionContainer>- <div className="grid grid-cols-12">- <div className="col-span-12 mb-10 lg:mb-0 lg:col-span-3">- <div className="flex items-center mb-4 space-x-2">- <ProductIcon icon={Solutions['database'].icon} />- <IconX />- <img src={`${basePath}/images/product/database/postgresql-icon.svg`} width={30} />- </div>- <h4 className="h4">Just Postgres</h4>- <p className="p">Every Supabase project is a dedicated Postgres database.</p>- <p className="text-sm p">- 100% portable. Bring your existing Postgres database, or migrate away at any time.- </p>- </div>- <div className="col-span-12 mb-10 lg:mb-0 lg:col-span-3 lg:col-start-5">- <div className="flex items-center mb-4 space-x-2">- <ProductIcon icon={Solutions['database'].icon} />- <IconX />- <ProductIcon icon={Solutions['authentication'].icon} />- </div>-- <h4 className="h4">Built-in Auth</h4>- <p className="p">Leveraging PostgreSQL's proven Row Level Security.</p>- <p className="text-sm p">- Integrated with JWT authentication which controls exactly what your users can- access.- </p>- </div>- <div className="col-span-12 lg:col-span-3 lg:col-start-9">- <div className="flex items-center mb-4 space-x-2">- <ProductIcon icon={Solutions['database'].icon} />- <IconX />- <ProductIcon icon={'M13 10V3L4 14h7v7l9-11h-7z'} />- </div>-- <h4 className="h4">Realtime enabled</h4>- <p className="p">Data-change listeners over websockets.</p>- <p className="text-sm p">- Subscribe and react to database changes, milliseconds after they happen.- </p>- </div>- </div>- </SectionContainer>-- {/* <SectionContainer>÷ */}- <SectionContainer className="text-center md:pb-0 lg:pb-0">- <div className="grid grid-cols-12">- <div className="col-span-12 lg:col-span-8 lg:col-start-3">- <h2 className="h3">Easy to use dashboard</h2>-- <p className="p">- The simplicity of a Table Editor, or the power of a SQL editor. Your choice.- </p>- </div>- </div>- </SectionContainer>- <div className="grid">- <div className={'dashboard-tabs sbui-tabs--underline-alt'}>- <Tabs- size="xlarge"- activeId={dashboardSwiperActiveIndex.toString()}- onChange={(e: string) => handleDashboardSwiperNav(Number(e))}- type="underlined"- tabBarStyle={{- marginBottom: 0,- // borderBottom: '1px solid #dedede',- }}- // block- >- <Tabs.Panel id="0" label="Table editor">- <span></span>- </Tabs.Panel>- <Tabs.Panel id="1" label="SQL editor">- <span></span>- </Tabs.Panel>- </Tabs>- </div>- </div>-- <Swiper- // @ts-ignore- onSwiper={setDashboardSwiper}- style={{ overflow: 'hidden' }}- initialSlide={0}- spaceBetween={0}- slidesPerView={1}- speed={300}- allowTouchMove={false}- >- <div className="grid grid-cols-12">- <SwiperSlide key={0}>- <SectionContainer className="pt-16 pb-0">- <ImageCarousel- content={TableViewCarouselData}- footer={[- <TweetCard- handle="@Elsolo244"- key="@Elsolo244"- img_url={`${basePath}/images/twitter-profiles/v6citnk33y2wpeyzrq05_400x400.jpeg`}- quote="Where has @supabase been all my life? 😍"- />,- ]}- />- </SectionContainer>- </SwiperSlide>- <SwiperSlide key={1}>- <SectionContainer className="pt-16 pb-0">- <ImageCarousel- content={SqlViewCarouselData}- footer={[- <TweetCard- handle="@jim_bisenius"- key="@jim_bisenius"- img_url={`${basePath}/images/twitter-profiles/rLgwUZSB_400x400.jpg`}- quote="@MongoDB or @MySQL?!?! Please, let me introduce you to @supabase and the wonderful world of @PostgreSQL before it's too late!!"- />,- ]}- />- </SectionContainer>- </SwiperSlide>- </div>- </Swiper>-<SectionContainer className="-mb-48"><APISection// @ts-ignorediff --git a/www/public/images/product/functions/typescript.svg b/www/public/images/product/functions/typescript.svgnew file mode 100644index 00000000000..339da0b637e--- /dev/null+++ b/www/public/images/product/functions/typescript.svg@@ -0,0 +1,6 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg width="512" height="512" fill="none" version="1.1" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">+<title>TypeScript logo</title>+ <rect width="512" height="512" rx="50" fill="#3178c6"/>+ <path d="m317 407v50c8.1 4.2 18 7.3 29 9.4s23 3.1 35 3.1c12 0 23-1.1 34-3.4 11-2.3 20-6.1 28-11 8.1-5.3 15-12 19-21s7.1-19 7.1-32c0-9.1-1.4-17-4.1-24s-6.6-13-12-18c-5.1-5.3-11-10-18-14s-15-8.2-24-12c-6.6-2.7-12-5.3-18-7.9-5.2-2.6-9.7-5.2-13-7.8-3.7-2.7-6.5-5.5-8.5-8.4-2-3-3-6.3-3-10 0-3.4 0.89-6.5 2.7-9.3s4.3-5.1 7.5-7.1c3.2-2 7.2-3.5 12-4.6 4.7-1.1 9.9-1.6 16-1.6 4.2 0 8.6 0.31 13 0.94 4.6 0.63 9.3 1.6 14 2.9 4.7 1.3 9.3 2.9 14 4.9 4.4 2 8.5 4.3 12 6.9v-47c-7.6-2.9-16-5.1-25-6.5s-19-2.1-31-2.1c-12 0-23 1.3-34 3.8s-20 6.5-28 12c-8.1 5.4-14 12-19 21-4.7 8.4-7 18-7 30 0 15 4.3 28 13 38 8.6 11 22 19 39 27 6.9 2.8 13 5.6 19 8.3s11 5.5 15 8.4c4.3 2.9 7.7 6.1 10 9.5 2.5 3.4 3.8 7.4 3.8 12 0 3.2-0.78 6.2-2.3 9s-3.9 5.2-7.1 7.2-7.1 3.6-12 4.8c-4.7 1.1-10 1.7-17 1.7-11 0-22-1.9-32-5.7-11-3.8-21-9.5-30-17zm-84-123h64v-41h-179v41h64v183h51z" clip-rule="evenodd" fill="#fff" fill-rule="evenodd" style="fill:#fff"/>+</svg>