Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

feat: lw13 tiger d5 (#30963)

Wen Bo Xie93df22db8db1
diff --git a/apps/www/_blog/2024-09-30-lw12-hackathon-winners.mdx b/apps/www/_blog/2024-09-30-lw12-hackathon-winners.mdx
index 490dc12acd0..9740902eeac 100644
--- a/apps/www/_blog/2024-09-30-lw12-hackathon-winners.mdx
+++ b/apps/www/_blog/2024-09-30-lw12-hackathon-winners.mdx
@@ -1,5 +1,5 @@
---
-title: 'Supabase Launch Week 12 Hackathon'
+title: 'Supabase Launch Week 12 Hackathon Winners'
description: Announcing the winners of the Supabase Launch Week 12 Hackathon.
author: tyler_shukert
image: lw12/hackathon-winners/thumbnail.png
diff --git a/apps/www/_blog/2024-12-06-database-build-v2.mdx b/apps/www/_blog/2024-12-06-database-build-v2.mdx
new file mode 100644
index 00000000000..f0fa53de492
--- /dev/null
+++ b/apps/www/_blog/2024-12-06-database-build-v2.mdx
@@ -0,0 +1,321 @@
+---
+title: 'database.build v2: Bring-your-own-LLM'
+description: Use any OpenAI API compatible LLMs in database.build
+author: gregnr,jgoux
+image: launch-week-13/day-5-database-build-v2/og.png
+thumb: launch-week-13/day-5-database-build-v2/thumb.png
+categories:
+ - launch-week
+ - developers
+ - postgres
+tags:
+ - launch-week
+ - AI
+ - postgres
+date: '2024-12-06T00:00:03'
+toc_depth: 3
+launchweek: '13'
+---
+
+We've been hard at work since launching [database.build](https://database.build) (formerly postgres.new), and we're thrilled to unveil a lineup of new features, starting with: Bring-your-own-LLM.
+
+<div className="video-container mb-8">
+ <iframe
+ className="w-full"
+ src="https://www.youtube-nocookie.com/embed/IQ8xqmht-gk"
+ title="3 AI models tried to build my database"
+ allow="accelerometer; autoplay; clipboard-write; encrypted-media; fullscreen; gyroscope; picture-in-picture; web-share"
+ allowFullScreen
+ />
+</div>
+
+You can now use your own Large Language Model (LLM) via any OpenAI-compatible provider.
+
+In case you missed it, database.build is an [in-browser Postgres sandbox with AI assistance](/blog/postgres-new). You can spin up an unlimited number of Postgres databases and interact with them using natural language (via LLM). This is possible thanks to [PGlite](https://pglite.dev) - a WASM build of Postgres that can run directly in the browser.
+
+With database.build, simply describe what you would like to build and AI will help you scaffold your tables. You can also drag-and-drop CSVs to automatically generate tables based on their contents, then query them using regular SQL.
+
+## Bring your own LLM
+
+Since day one, our goal has been to make database.build freely accessible to everyone. To achieve this while also mitigating abuse (and sky-high OpenAI bills), we required users to sign in with their GitHub accounts. We also introduced modest rate limits to throttle excessive AI usage and ensure fair access for everyone.
+
+Though this setup has worked well for most users, power users have reported regularly hitting these rate limits. Others have expressed interest in experimenting with alternative models or even running database.build entirely locally. These are all valid use cases we're excited to support. That's why today, we're introducing a new option: connect your own Large Language Model (LLM) via any OpenAI-compatible provider.
+
+<video
+ className="overflow-hidden rounded-md border wide"
+ width="99%"
+ autoPlay
+ loop
+ muted
+ playsInline
+ controls={true}
+>
+ <source src="/images/blog/launch-week-13/day-5-database-build-v2/byo-llm.mp4" type="video/mp4" />
+</video>
+
+When you bring your own LLM, you get:
+
+- **No login required**: Build AI-assisted databases without needing a GitHub account.
+- **No rate limits:** Your usage is only limited by your chosen provider.
+- **More control:** Ensure your chat messages go only to providers you trust.
+- **Greater flexibility:** Choose your model and customize prompts to suit your needs.
+
+For organizations with strict AI policies or firewall restrictions, BYO-LLM makes it easy to route AI messages through company-approved API endpoints, like Azure's OpenAI Service.
+
+### OpenAI compatibility
+
+If you've worked with large language models, you've probably noticed that OpenAI's API structure has become an unofficial standard. Many LLM providers now offer OpenAI-compatible APIs, making it easier to use alternative models with existing tools and libraries built around OpenAI's APIs.
+
+This is great news for BYO-LLM, as it means connecting to other LLM providers beyond OpenAI (such as [xAI](https://x.ai)) is trivial - as long as they provide an OpenAI-compatible API.
+
+You might be wondering: does this mean you connect database.build locally to [Ollama](https://ollama.com), since it also has an OpenAI-compatible API? The answer is yes! But with a few limitations, keep reading!
+
+### How to use it
+
+At the left of database.build's header you'll find a new button labeled **Bring your own LLM**. Tap this button to open a sidebar where you can connect your own LLM provider.
+
+<Img
+ className="border-none"
+ alt="database.build v2 BYO-LLM"
+ src="/images/blog/launch-week-13/day-5-database-build-v2/byo-llm.png"
+ zoommable
+ wide
+/>
+
+From here, pass in your LLM provider's base URL, your associated API key, and the model you wish to use.
+
+<Img
+ className="border-none"
+ alt="database.build v2 BYO-LLM API key"
+ src="/images/blog/launch-week-13/day-5-database-build-v2/byo-llm-api-key.png"
+ zoommable
+ wide
+/>
+
+Note that all settings and keys are stored locally and never leave your browser. Even the API requests themselves are [sent directly from the browser](https://github.com/supabase-community/database-build/blob/5b23ed1a5bc306ed202dcc726dfeb5efe1696abc/apps/web/sw.ts) without a backend proxy - keep reading!
+
+It's important to note that the model you choose will drastically impact your experience with database.build. To work properly, database.build requires a few key features from the model:
+
+- **Tool calling**: In order to execute SQL on your behalf, generate charts, and everything else available today, the model needs to support tool (functional) calls. Recent state-of-the-art models support this, but many others still don't and won't work with database.build.
+- **SQL understanding**: It sounds obvious, but without a model trained on a moderate-to-high amount of SQL knowledge, database.build will struggle to build anything useful.
+- **Chart.js knowledge**: This is important if you plan on generating charts, since the model is responsible for generating the chart configuration passed into Chart.js.
+
+Because of this, we recommend sticking with OpenAI's gpt-4o if you wish for the same experience you are used to. To save on API costs, you could try gpt-4o-mini, though keep in mind that it may sometimes miss important information or fail to build more complex schemas. If you're feeling a bit adventurous, we would love to see what other providers and models you try with database.build and your experience with each of them.
+
+Finally, we give you the freedom to customize the system prompt passed to the model. So far this has been catered for interactions with gpt-4o, so you'll likely want to adjust this if you are using another model.
+
+### Under the hood
+
+To make this work in a privacy-first way, all LLM API requests are sent directly from the browser. This means that all of your messages, schema, data, and API keys will only be sent directly to your provider's API without routing through a backend proxy.
+
+This is possible thanks to two important pieces:
+
+- CORS-friendly APIs
+- Service workers
+
+### CORS-friendly APIs
+
+If you've developed any browser app that connects to a backend API, you've likely experienced CORS. CORS stands for cross-origin-resource-sharing, and is a security mechanism built into browsers to prevent websites from connecting to APIs from a different domain. Quite often though there are legitimate reasons to connect to a different domain, and to support this, the server simply has to send back HTTP response headers that explicitly allow your app to connect to it.
+
+In the case of database.build, we need to connect directly to APIs like OpenAI's https://api.openai.com/v1 or any other provider that you choose - and this will always be cross-origin since requests are coming from the browser. The good news is: most LLM providers add CORS headers by default which means we can connect directly to their APIs from the browser with no extra work. Without this, our only option would be to route every request through a backend proxy (which is not subject to CORS restrictions).
+
+### Service workers
+
+If you've ever dug into database.build's [source code](https://github.com/supabase-community/database-build), you'll know that we heavily use Vercel's [AI SDK](https://sdk.vercel.ai/docs/introduction) to simplify LLM streaming and client side tool calls. Vercel has built a great DX around inference by providing convenient hooks like `useChat()` to manage AI chat messages in React.
+
+The challenge with Vercel's AI SDK for BYO-LLM is that the SDK expects a client-server API structure.` useChat()` connects to a server-side `/api/chat` route that is responsible for sending these messages downstream to the appropriate provider. In normal situations, this is the best architecture to protect API keys and custom logic on the server side. In our case though where users dynamically provide their own API keys, our preference is to send downstream requests directly from the browser. If we wish to continue using our existing `useChat()` infrastructure, we need a way to intercept requests to `/api/chat` and handle them ourselves in-browser.
+
+[Service workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API) to the rescue! One of the core features of service workers is the ability to intercept fetch requests and handle them client side - exactly what we need. With this approach, we can simply leave our `useChat()` logic as-is, then create a lightweight service worker that does the following:
+
+1. Detects whether you're using your own model by reading local state from [IndexedDB](https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API) (service workers don't have access to local storage, so we opt for IndexedDB).
+1. If detected, it serves a local HTTP handler on `/api/chat`, sending the request directly to your provider's API.
+1. Otherwise, it forwards the request to our backend as it did before.
+
+<Img
+ className="border-none"
+ alt="database.build v2 BYO-LLM API key"
+ src={{
+ dark: '/images/blog/launch-week-13/day-5-database-build-v2/llm-service-worker-dark.png',
+ light: '/images/blog/launch-week-13/day-5-database-build-v2/llm-service-worker-light.png',
+ }}
+/>
+
+Worth mentioning - we later learned that `useChat()` allows you to pass a custom `fetch` function directly to the hook which we could use to intercept API requests in the same way. We might switch to this approach in the future to simplify the solution with less moving parts.
+
+### Ollama
+
+Can you connect database.build to [Ollama](https://github.com/ollama/ollama) for a fully local AI experience? Technically, yes—but there are a few caveats:
+
+1. **Local models aren't great at tool calling (yet)**. While the latest state-of-the-art models like Llama 3.1/3.2 and Qwen 2.5 Coder technically support tool calls, versions that can run on consumer-grade hardware (like quantized models or lower-parameter variants) don't perform as consistently as their larger counterparts. These smaller models often fail to make tool calls when needed, call nonexistent tools, or pass invalid arguments.
+1. **Tool streaming challenges**. database.build relies on both tool calls and streaming to function. Ollama recently [added support](https://github.com/ollama/ollama/pull/7836) for tool streaming (shout out to [@thanosthinking](https://x.com/thanosthinking)), making it possible to use with database.build as long as the model can handle tool calls correctly. However, while Ollama does provide a tool streaming API, the current behavior buffers the entire response until it's complete before sending it in a single delta message. This creates the impression of slower performance on the frontend, even though the backend processes normally. The Ollama team is [actively working on improving this](https://github.com/ollama/ollama/issues/7886).
+
+Even with these challenges, we'd love to see someone get a local model working. Feel free to experiment, tweak the system prompt to better steer the model, and let us know if you make it work!
+
+Open-weight models are improving rapidly, and as consumer hardware continues to progress, local setups will likely become a more practical option for a broader range of use cases—including (hopefully) database.build.
+
+## Live Share
+
+Live Share allows you to connect to your in-browser PGlite databases from _outside the browser_—using any PostgreSQL client.
+
+<video
+ className="overflow-hidden rounded-md border wide"
+ width="99%"
+ autoPlay
+ loop
+ muted
+ playsInline
+ controls={true}
+>
+ <source
+ src="/images/blog/launch-week-13/day-5-database-build-v2/live-share.mp4"
+ type="video/mp4"
+ />
+</video>
+
+You could, for example, copy-paste the provided connection string into `psql`. Once connected, you can interact with your in-browser PGlite instance in real time as if it were any regular Postgres database.
+
+Some other tools you might want to connect to this:
+
+- pg_dump: export your in-browser databases to other platforms!
+- ORM: test out your database directly within your app
+- IDE: browse your data using your favorite database IDE
+
+For a behind-the-scenes look at the engineering behind this, check out our dedicated [blog post](/blog/database-build-live-share).
+
+## Deployments
+
+One of the most requested features has been a way to easily deploy your databases to the cloud with a single click.
+
+As a quick reminder - all database.build databases run directly in your browser using PGlite. This client-side approach makes it easy to spin up virtually limitless databases for design and experimentation. But when it's time to use your database in production, the options have been somewhat cumbersome:
+
+- Manually copy-pasting the generated migrations and running them against a real database
+- Using Live Share with `pg_dump` and `pg_restore` to back up and restore your browser database to a production-ready database
+
+Now with deployments, you can deploy your database.build creations directly to a cloud database provider, starting with Supabase (and AWS coming soon).
+
+<video
+ className="overflow-hidden rounded-md border wide"
+ width="99%"
+ autoPlay
+ loop
+ muted
+ playsInline
+ controls={true}
+>
+ <source
+ src="/images/blog/launch-week-13/day-5-database-build-v2/deploy-to-supabase.mp4"
+ type="video/mp4"
+ />
+</video>
+
+### Deploy to Supabase
+
+After building your database schema, click the **Deploy** button in the app's header.
+
+The first time you deploy to Supabase, you will need to connect your database.build account with your Supabase account. If you don't already have a Supabase account, you'll be given the option to create a new one here. Supabase includes a Free plan, so if this is your first project there will be no cost to deploy. Follow the steps outlined in the dialog to connect your account with a Supabase org.
+
+Once your account is connected you will be presented with a preview of the org and project name that will be created. If you are happy with this, click **Deploy**. Be sure to keep your browser tab open to ensure a successful deployment.
+
+Finally you will be presented with connection strings and a password to connect to your new database.
+
+### Behind the scenes
+
+Getting deployments to work took quite a bit more engineering than it might seem at first glance. To copy your in-browser database to the cloud accurately, we needed a way to dump and restore.
+
+We decided to piggyback on top of our existing Live Share feature, which creates a reverse connection between your in-browser database and an external PostgreSQL client. With Live Share enabled, we connect a server-side `pg_dump` program directly to your in-browser database. The resulting dump is then piped into `pg_restore`, which transfers it to your new cloud database.
+
+<Img
+ className="border-none"
+ alt="database.build v2 Deploy to Supabase"
+ src={{
+ dark: '/images/blog/launch-week-13/day-5-database-build-v2/deploy-to-supabase-dark.png',
+ light: '/images/blog/launch-week-13/day-5-database-build-v2/deploy-to-supabase-light.png',
+ }}
+ wide
+/>
+
+Yes, it's a lot of moving parts! It's worth mentioning that Electric SQL [_just_](https://github.com/electric-sql/pglite/releases/tag/%40electric-sql%2Fpglite-tools%400.2.1) released a WASM version of `pg_dump` that we're excited to integrate in the future. Generating the dump directly in the browser will likely be faster and more reliable with less moving parts.
+
+### What about serverless PGlite?
+
+Back when we first launched database.build, we shared plans to explore a serverless PGlite deployment option. However as we moved forward, we encountered a number of small but significant challenges that added up over time. PGlite's memory usage in multi-tenant environments turned out to be higher than anticipated—a problem the ElectricSQL team is actively working to address. Given PGlite's single-connection limit, anything more than a few megabytes of RAM will not be practical in a serverless environment. Additionally, our initial reliance on `s3fs` for storage proved to be less reliable than expected, making it difficult to meet the requirements for a seamless serverless experience.
+
+While these challenges have pushed us to focus on alternative deployment options for now, we remain committed to revisiting serverless options as these issues are resolved and the ecosystem continues to evolve.
+
+## Drag and drop SQL files
+
+You've always been able to drag and drop CSV files into the chat, but what about SQL files? In this new release, simply dropping a SQL file onto that chat will automatically load its contents into your browser DB.
+
+<video
+ className="overflow-hidden rounded-md border wide !mb-8"
+ width="99%"
+ autoPlay
+ loop
+ muted
+ playsInline
+ controls={true}
+>
+ <source
+ src="/images/blog/launch-week-13/day-5-database-build-v2/drag-drop-sql-clip.mp4"
+ type="video/mp4"
+ />
+</video>
+
+<video
+ className="overflow-hidden rounded-md border wide"
+ width="99%"
+ autoPlay
+ loop
+ muted
+ playsInline
+ controls={true}
+>
+ <source
+ src="/images/blog/launch-week-13/day-5-database-build-v2/drag-drop-sql-direct-drop.mp4"
+ type="video/mp4"
+ />
+</video>
+
+This can be useful if you have existing schema or migrations that were designed elsewhere that you wish to extend or ask questions about.
+
+## Download PGlite databases via `pg_dump`
+
+You can now dump your in-browser database to a SQL file using a WASM version of `pg_dump`.
+
+Previously when you went to download your database, we were exporting PGlite's internal `pgdata` directory as a `.tar.gz` file. This format was a bit cumbersome to work with, and was only compatible with other PGlite instances. Now when you hit **Download**, you'll get a `.sql` file that you can import into any Postgres database.
+
+Kudos to the ElectricSQL team for continually breaking new ground with embeddable Postgres. WASM `pg_dump` is a huge step forward for the project, and we're excited to see what other tools they bring to the browser in the future.
+
+## Redesign
+
+We're thrilled to announce a complete redesign of database.build, bringing a sleek new look and enhanced functionality.
+
+The update includes seamless support for both desktop and mobile platforms, ensuring a smooth and intuitive experience across all devices. Get ready to build your databases anytime, anywhere!
+
+<Img
+ className="border-none"
+ alt="database.build v2 desktop support"
+ src="/images/blog/launch-week-13/day-5-database-build-v2/byo-llm.png"
+ wide
+ zoomable
+/>
+
+### Mobile support
+
+Whether you're on the train, stuck in a meeting, or lounging on the couch, you can spin up databases and tweak your schema with just a few taps.
+
+With mobile support, you officially have no excuse not to ship that feature you've been procrastinating on. We're excited to see what you build!
+
+<Img
+ className="border-none"
+ alt="database.build v2 mobile support"
+ src="/images/blog/launch-week-13/day-5-database-build-v2/mobile-support.png"
+/>
+
+## Wrapping up
+
+Everything we've shipped today - BYO-LLM, Live Share, Deployments, drag-drop SQL, and mobile support - is built on an open-source foundation. We believe in transparency, community collaboration, and making tools like database.build accessible to everyone.
+
+If you're curious about how it all works under the hood or want to contribute, you can find the entire project on GitHub: https://github.com/supabase-community/database-build.
+
+As always, we'd love to hear your feedback, ideas, or just see what you're building!
diff --git a/apps/www/_blog/2024-12-06-launch-week-13-top-10.mdx b/apps/www/_blog/2024-12-06-launch-week-13-top-10.mdx
new file mode 100644
index 00000000000..f93b6646f50
--- /dev/null
+++ b/apps/www/_blog/2024-12-06-launch-week-13-top-10.mdx
@@ -0,0 +1,90 @@
+---
+title: 'Top 10 Launches of Launch Week 13'
+description: Highlights from Launch Week 13
+author: paul_copplestone
+image: launch-week-13/wrap-up/og-top-10.png
+thumb: launch-week-13/wrap-up/thumb-top-10.png
+launchweek: '13'
+categories:
+ - launch-week
+tags:
+ - launch-week
+date: '2024-12-06'
+toc_depth: 3
+---
+
+Here are the top 10 launches from the past week. _You won't believe #7._
+
+## #1: Supabase Cron
+
+Supabase Cron is a new Postgres module for creating and managing recurring tasks. It is deeply integrated with the rest of the Supabase toolset.
+
+[Read more →](/blog/supabase-cron)
+
+## #2: Supabase AI Assistant v2
+
+We overhauled the AI Assistant in the Dashboard and gave it a bunch more “abilities”: from writing Postgres Functions to creating entire databases.
+
+[Read more →](/blog/supabase-ai-assistant-v2)
+
+## #3: Edge Functions: Background Tasks, Ephemeral Storage, and WebSockets
+
+A feature tri-fecta: Edge Functions now support Websockets for things like OpenAI's Realtime API, ephemeral storage for things like zip files, and Background Tasks that continue to run after you've sent a response to your users.
+
+[Read more →](/blog/edge-functions-background-tasks-websockets)
+
+## #4: CLI v2: Config as Code
+
+We realeased v2 of the CLI, adding support for Configuration as Code. You can now use the CLI in your GitHub actions to keep all of your project configuration in sync.
+
+## #5: High Performance Disks
+
+With advanced disks you can store up to 60 TB of data with 100x improved durability, and provision up to 5x more IOPS than the default disks we offer.
+
+[Read more →](/blog/high-performance-disks)
+
+## #6: Restore to a new Project
+
+You can now launch new projects from the backups of any of your existing projects. This is particularly helpful if you want to do some data engineering without impacting your production database.
+
+[Read more →](/blog/restore-to-a-new-project)
+
+## #7: Bring your own LLM: database.build
+
+"postgres.new" is now ["database.build"](https://database.build) and you can still run everything in your own browser. We've added 3 major features: Bring-your-own-LLM, Live Share, and they ability to deploy your [pglite](https://pglite.dev/) to Supabase.
+
+[Read more →](/blog/database-build-v2)
+
+## #8: Oriole Beta7 - high performance Postgres
+
+We're building a new storage engine for Postgres that's much faster than the current storage engine. We've released some benchmarks and made it available on the Platform.
+
+[Read more →](https://www.orioledb.com/blog/orioledb-beta7-benchmarks)
+
+## #9: Supabase Queues
+
+A Postgres-native, durable Message Queue with guaranteed delivery, improving the scalability and resiliency of your applications.
+
+[Read more →](/blog/supabase-queues)
+
+## #10: Mega Launch Week
+
+This Launch Week is special because we didn't do it alone. This time, more than 20 other devtools joined us to launch their products and features throughout the week. Some things are just more fun when you do them together.
+
+[Read more →](https://launchweek.dev/lw/MEGA)
+
+## Launch Week continues
+
+Next week we have a couple of activities for you to get involved with:
+
+### Hack the Base: Capture the Flag
+
+Want to test hacking skills? We're running a Capture the Flag event called [Hack the Base](https://ctf.supabase.com/). It's a free event that anyone can participate in.
+
+[Read more →](/events/launch-week-13-hackathon)
+
+### Launch Week 13: Hackathon
+
+We're running a virtual hackathon starting **now** where you can win prizes for building the best projects using Supabase. We'll be announcing the winners on December 15th.
+
+[Read more →](/events/launch-week-13-hackathon)
diff --git a/apps/www/components/Blog/BlogFilters.tsx b/apps/www/components/Blog/BlogFilters.tsx
index 878ee26593e..d1af47d54ac 100644
--- a/apps/www/components/Blog/BlogFilters.tsx
+++ b/apps/www/components/Blog/BlogFilters.tsx
@@ -8,7 +8,7 @@ import { useKey } from 'react-use'
import type { BlogView } from '~/pages/blog'
import type PostTypes from '~/types/post'
-import { AlignJustify, ChevronDown, Grid, Search, X } from 'lucide-react'
+import { AlignJustify, ChevronDown, Grid, Search, X as CloseIcon } from 'lucide-react'
import {
Button,
DropdownMenu,
@@ -259,7 +259,7 @@ function BlogFilters({ allPosts, setPosts, view, setView }: Props) {
}}
className="text-foreground-light hover:text-foreground hover:bg-selection"
>
- <X size="14" />
+ <CloseIcon size="14" />
</Button>
)
}
@@ -271,9 +271,13 @@ function BlogFilters({ allPosts, setPosts, view, setView }: Props) {
type="default"
title={isList ? 'Grid View' : 'List View'}
onClick={handleViewSelection}
- className="h-full p-1.5"
+ className="h-full p-2 text-foreground-light"
>
- {isList ? <Grid /> : <AlignJustify />}
+ {isList ? (
+ <Grid className="w-4 h-4 stroke-1.5" />
+ ) : (
+ <AlignJustify className="w-4 h-4 stroke-1.5" />
+ )}
</Button>
</div>
)
diff --git a/apps/www/components/Hero/Hero.tsx b/apps/www/components/Hero/Hero.tsx
index e967828cd82..4146612f141 100644
--- a/apps/www/components/Hero/Hero.tsx
+++ b/apps/www/components/Hero/Hero.tsx
@@ -25,9 +25,9 @@ const Hero = () => {
<div className="flex flex-col items-center">
<div className="z-40 w-full flex justify-center -mt-4 lg:-mt-12 mb-8">
<AnnouncementBadge
- url="/launch-week#day-4"
- badge="LW13: Day 4"
- announcement="Supabase Queues"
+ url="/launch-week#day-5"
+ badge="LW13: Day 5"
+ announcement="database.build v2"
/>
</div>
<h1 className="text-foreground text-4xl sm:text-5xl sm:leading-none lg:text-7xl">
diff --git a/apps/www/components/LaunchWeek/13/Releases/data/lw13_data.tsx b/apps/www/components/LaunchWeek/13/Releases/data/lw13_data.tsx
index 723ea7bcb58..d2c42dd57a4 100644
--- a/apps/www/components/LaunchWeek/13/Releases/data/lw13_data.tsx
+++ b/apps/www/components/LaunchWeek/13/Releases/data/lw13_data.tsx
@@ -67,8 +67,8 @@ const days: (isDark?: boolean) => WeekDayProps[] = (isDark = true) => [
hasCountdown: false,
date: '2 December',
published_at: '2024-12-02T08:00:00.000-07:00',
- title: 'Supabase AI Assistant V2',
- description: 'Supabase AI Assistant V2',
+ title: 'Supabase AI Assistant v2',
+ description: 'Supabase AI Assistant v2',
links: [
{
type: 'video',
@@ -184,7 +184,7 @@ const days: (isDark?: boolean) => WeekDayProps[] = (isDark = true) => [
d: 4,
dd: 'Thu',
shipped: true,
- isToday: true,
+ isToday: false,
hasCountdown: false,
blog: '/blog/supabase-queues',
date: '5 December',
@@ -224,25 +224,43 @@ const days: (isDark?: boolean) => WeekDayProps[] = (isDark = true) => [
id: 'day-5',
d: 5,
dd: 'Fri',
- shipped: false,
- isToday: false,
- hasCountdown: true,
- blog: '',
+ shipped: true,
+ isToday: true,
+ hasCountdown: false,
+ blog: '/blog/database-build-v2',
date: '6 December',
published_at: '2024-12-06T08:00:00.000-07:00',
- title: '',
- description: null,
+ title: 'database.build v2: Bring-Your-Own-LLM',
+ description: (
+ <>
+ database.build v2: <br className="hidden sm:block" />
+ Bring-Your-Own-LLM
+ </>
+ ),
links: [
- // {
- // type: 'video',
- // href: '',
- // },
+ {
+ type: 'video',
+ href: 'IQ8xqmht-gk',
+ },
{
type: 'xSpace',
href: 'https://twitter.com/i/spaces/1zqKVYOEODYxB',
},
],
- steps: [],
+ steps: [
+ {
+ title: '',
+ bg_layers: [
+ {
+ img: '/images/launchweek/13/releases/d5/d5-database-build-v2-dark.png',
+ mobileImg: '/images/launchweek/13/releases/d5/d5-database-build-v2-mobile-dark.png',
+ imgLight: '/images/launchweek/13/releases/d5/d5-database-build-v2-light.png',
+ mobileImgLight:
+ '/images/launchweek/13/releases/d5/d5-database-build-v2-mobile-light.png',
+ },
+ ],
+ },
+ ],
},
]
diff --git a/apps/www/lib/mdx/mdxComponents.tsx b/apps/www/lib/mdx/mdxComponents.tsx
index c5c2a3f8c51..fe5a21c32fd 100644
--- a/apps/www/lib/mdx/mdxComponents.tsx
+++ b/apps/www/lib/mdx/mdxComponents.tsx
@@ -112,12 +112,8 @@ export default function mdxComponents(type?: 'blog' | 'lp' | undefined) {
Img: ({ zoomable = true, className, ...props }: ImageProps & { wide?: boolean }) => (
<Image
fill
- className={cn(
- 'm-0 object-cover',
- type === 'blog' ? 'rounded-md border' : '',
- props.wide && 'wide',
- className
- )}
+ containerClassName={cn(props.wide && 'wide')}
+ className={cn('m-0 object-cover', type === 'blog' ? 'rounded-md border' : '', className)}
zoomable={zoomable}
{...props}
/>
diff --git a/apps/www/pages/blog/[slug].tsx b/apps/www/pages/blog/[slug].tsx
index 3486322112c..030a5328ea0 100644
--- a/apps/www/pages/blog/[slug].tsx
+++ b/apps/www/pages/blog/[slug].tsx
@@ -238,7 +238,7 @@ function BlogPostPage(props: InferGetStaticPropsType<typeof getStaticProps>) {
],
}}
/>
- <DefaultLayout>
+ <DefaultLayout className="overflow-x-hidden">
<div
className="
container mx-auto px-4 py-4 md:py-8 xl:py-10 sm:px-16
@@ -310,7 +310,7 @@ function BlogPostPage(props: InferGetStaticPropsType<typeof getStaticProps>) {
</div>
<div className="grid grid-cols-12 lg:gap-16 xl:gap-8">
{/* Content */}
- <div className="col-span-12 lg:col-span-7 xl:col-span-7 overflow-x-hidden">
+ <div className="col-span-12 lg:col-span-7 xl:col-span-7">
<article>
<div className={['prose prose-docs'].join(' ')}>
{props.blog.youtubeHero ? (
diff --git a/apps/www/public/images/blog/launch-week-13/day-5-database-build-v2/byo-llm-api-key.png b/apps/www/public/images/blog/launch-week-13/day-5-database-build-v2/byo-llm-api-key.png
new file mode 100644
index 00000000000..53d7f69336d
Binary files /dev/null and b/apps/www/public/images/blog/launch-week-13/day-5-database-build-v2/byo-llm-api-key.png differ
diff --git a/apps/www/public/images/blog/launch-week-13/day-5-database-build-v2/byo-llm.mp4 b/apps/www/public/images/blog/launch-week-13/day-5-database-build-v2/byo-llm.mp4
new file mode 100644
index 00000000000..abea67036ba
Binary files /dev/null and b/apps/www/public/images/blog/launch-week-13/day-5-database-build-v2/byo-llm.mp4 differ
diff --git a/apps/www/public/images/blog/launch-week-13/day-5-database-build-v2/byo-llm.png b/apps/www/public/images/blog/launch-week-13/day-5-database-build-v2/byo-llm.png
new file mode 100644
index 00000000000..a191d97ff53
Binary files /dev/null and b/apps/www/public/images/blog/launch-week-13/day-5-database-build-v2/byo-llm.png differ
diff --git a/apps/www/public/images/blog/launch-week-13/day-5-database-build-v2/deploy-to-supabase-dark.png b/apps/www/public/images/blog/launch-week-13/day-5-database-build-v2/deploy-to-supabase-dark.png
new file mode 100644
index 00000000000..c395d0e9282
Binary files /dev/null and b/apps/www/public/images/blog/launch-week-13/day-5-database-build-v2/deploy-to-supabase-dark.png differ
diff --git a/apps/www/public/images/blog/launch-week-13/day-5-database-build-v2/deploy-to-supabase-light.png b/apps/www/public/images/blog/launch-week-13/day-5-database-build-v2/deploy-to-supabase-light.png
new file mode 100644
index 00000000000..4044c6586ec
Binary files /dev/null and b/apps/www/public/images/blog/launch-week-13/day-5-database-build-v2/deploy-to-supabase-light.png differ
diff --git a/apps/www/public/images/blog/launch-week-13/day-5-database-build-v2/deploy-to-supabase.mp4 b/apps/www/public/images/blog/launch-week-13/day-5-database-build-v2/deploy-to-supabase.mp4
new file mode 100644
index 00000000000..9ef855703b1
Binary files /dev/null and b/apps/www/public/images/blog/launch-week-13/day-5-database-build-v2/deploy-to-supabase.mp4 differ
diff --git a/apps/www/public/images/blog/launch-week-13/day-5-database-build-v2/drag-drop-sql-clip.mp4 b/apps/www/public/images/blog/launch-week-13/day-5-database-build-v2/drag-drop-sql-clip.mp4
new file mode 100644
index 00000000000..5fe50cb4d88
Binary files /dev/null and b/apps/www/public/images/blog/launch-week-13/day-5-database-build-v2/drag-drop-sql-clip.mp4 differ
diff --git a/apps/www/public/images/blog/launch-week-13/day-5-database-build-v2/drag-drop-sql-direct-drop.mp4 b/apps/www/public/images/blog/launch-week-13/day-5-database-build-v2/drag-drop-sql-direct-drop.mp4
new file mode 100644
index 00000000000..a9937729a90
Binary files /dev/null and b/apps/www/public/images/blog/launch-week-13/day-5-database-build-v2/drag-drop-sql-direct-drop.mp4 differ
diff --git a/apps/www/public/images/blog/launch-week-13/day-5-database-build-v2/live-share.mp4 b/apps/www/public/images/blog/launch-week-13/day-5-database-build-v2/live-share.mp4
new file mode 100644
index 00000000000..efd4912a319
Binary files /dev/null and b/apps/www/public/images/blog/launch-week-13/day-5-database-build-v2/live-share.mp4 differ
diff --git a/apps/www/public/images/blog/launch-week-13/day-5-database-build-v2/llm-service-worker-dark.png b/apps/www/public/images/blog/launch-week-13/day-5-database-build-v2/llm-service-worker-dark.png
new file mode 100644
index 00000000000..f6468c47b18
Binary files /dev/null and b/apps/www/public/images/blog/launch-week-13/day-5-database-build-v2/llm-service-worker-dark.png differ
diff --git a/apps/www/public/images/blog/launch-week-13/day-5-database-build-v2/llm-service-worker-light.png b/apps/www/public/images/blog/launch-week-13/day-5-database-build-v2/llm-service-worker-light.png
new file mode 100644
index 00000000000..9151728bd1d
Binary files /dev/null and b/apps/www/public/images/blog/launch-week-13/day-5-database-build-v2/llm-service-worker-light.png differ
diff --git a/apps/www/public/images/blog/launch-week-13/day-5-database-build-v2/mobile-support.png b/apps/www/public/images/blog/launch-week-13/day-5-database-build-v2/mobile-support.png
new file mode 100644
index 00000000000..9d8028765aa
Binary files /dev/null and b/apps/www/public/images/blog/launch-week-13/day-5-database-build-v2/mobile-support.png differ
diff --git a/apps/www/public/images/blog/launch-week-13/day-5-database-build-v2/og.png b/apps/www/public/images/blog/launch-week-13/day-5-database-build-v2/og.png
new file mode 100644
index 00000000000..64af694cea7
Binary files /dev/null and b/apps/www/public/images/blog/launch-week-13/day-5-database-build-v2/og.png differ
diff --git a/apps/www/public/images/blog/launch-week-13/day-5-database-build-v2/thumb.png b/apps/www/public/images/blog/launch-week-13/day-5-database-build-v2/thumb.png
new file mode 100644
index 00000000000..f61dd87d4c0
Binary files /dev/null and b/apps/www/public/images/blog/launch-week-13/day-5-database-build-v2/thumb.png differ
diff --git a/apps/www/public/images/blog/launch-week-13/wrap-up/og-top-10.png b/apps/www/public/images/blog/launch-week-13/wrap-up/og-top-10.png
new file mode 100644
index 00000000000..986887583b1
Binary files /dev/null and b/apps/www/public/images/blog/launch-week-13/wrap-up/og-top-10.png differ
diff --git a/apps/www/public/images/blog/launch-week-13/wrap-up/thumb-top-10.png b/apps/www/public/images/blog/launch-week-13/wrap-up/thumb-top-10.png
new file mode 100644
index 00000000000..adcf7259f09
Binary files /dev/null and b/apps/www/public/images/blog/launch-week-13/wrap-up/thumb-top-10.png differ
diff --git a/apps/www/public/images/launchweek/13/releases/d5/d5-database-build-v2-dark.png b/apps/www/public/images/launchweek/13/releases/d5/d5-database-build-v2-dark.png
new file mode 100644
index 00000000000..5ec95dca94d
Binary files /dev/null and b/apps/www/public/images/launchweek/13/releases/d5/d5-database-build-v2-dark.png differ
diff --git a/apps/www/public/images/launchweek/13/releases/d5/d5-database-build-v2-light.png b/apps/www/public/images/launchweek/13/releases/d5/d5-database-build-v2-light.png
new file mode 100644
index 00000000000..0d45ecd756f
Binary files /dev/null and b/apps/www/public/images/launchweek/13/releases/d5/d5-database-build-v2-light.png differ
diff --git a/apps/www/public/images/launchweek/13/releases/d5/d5-database-build-v2-mobile-dark.png b/apps/www/public/images/launchweek/13/releases/d5/d5-database-build-v2-mobile-dark.png
new file mode 100644
index 00000000000..9d8752c346c
Binary files /dev/null and b/apps/www/public/images/launchweek/13/releases/d5/d5-database-build-v2-mobile-dark.png differ
diff --git a/apps/www/public/images/launchweek/13/releases/d5/d5-database-build-v2-mobile-light.png b/apps/www/public/images/launchweek/13/releases/d5/d5-database-build-v2-mobile-light.png
new file mode 100644
index 00000000000..a27cb6aa573
Binary files /dev/null and b/apps/www/public/images/launchweek/13/releases/d5/d5-database-build-v2-mobile-light.png differ
diff --git a/apps/www/public/rss.xml b/apps/www/public/rss.xml
index 0bff63deb76..4aff13cd062 100644
--- a/apps/www/public/rss.xml
+++ b/apps/www/public/rss.xml
@@ -8,12 +8,26 @@
<lastBuildDate>Fri, 06 Dec 2024 00:00:00 -0700</lastBuildDate>
<atom:link href="https://supabase.com/rss.xml" rel="self" type="application/rss+xml"/>
<item>
+ <guid>https://supabase.com/blog/database-build-v2</guid>
+ <title>database.build v2: Bring-your-own-LLM</title>
+ <link>https://supabase.com/blog/database-build-v2</link>
+ <description>Use any OpenAI API compatible LLMs in database.build</description>
+ <pubDate>Fri, 06 Dec 2024 00:00:00 -0700</pubDate>
+</item>
+<item>
<guid>https://supabase.com/blog/restore-to-a-new-project</guid>
<title>Restore to a New Project</title>
<link>https://supabase.com/blog/restore-to-a-new-project</link>
<description>Effortlessly Clone Data into a New Supabase Project</description>
<pubDate>Fri, 06 Dec 2024 00:00:00 -0700</pubDate>
</item>
+<item>
+ <guid>https://supabase.com/blog/launch-week-13-top-10</guid>
+ <title>Top 10 Launches of Launch Week 13</title>
+ <link>https://supabase.com/blog/launch-week-13-top-10</link>
+ <description>Highlights from Launch Week 13</description>
+ <pubDate>Fri, 06 Dec 2024 00:00:00 -0700</pubDate>
+</item>
<item>
<guid>https://supabase.com/blog/supabase-queues</guid>
<title>Supabase Queues</title>
@@ -100,7 +114,7 @@
</item>
<item>
<guid>https://supabase.com/blog/lw12-hackathon-winners</guid>
- <title>Supabase Launch Week 12 Hackathon</title>
+ <title>Supabase Launch Week 12 Hackathon Winners</title>
<link>https://supabase.com/blog/lw12-hackathon-winners</link>
<description>Announcing the winners of the Supabase Launch Week 12 Hackathon.</description>
<pubDate>Mon, 30 Sep 2024 00:00:00 -0700</pubDate>
diff --git a/apps/www/styles/index.css b/apps/www/styles/index.css
index 5a3c891667f..30fb06471d5 100644
--- a/apps/www/styles/index.css
+++ b/apps/www/styles/index.css
@@ -267,24 +267,28 @@ table {
overflow: hidden;
grid-column: 1 / -1;
}
-.next-image--dynamic-fill.wide {
+.next-image--dynamic-fill.wide,
+video.wide {
@apply my-0 max-w-none -mx-8 w-[calc(100%_+_4rem)];
}
@media (min-width: 560px) {
- .next-image--dynamic-fill.wide {
- width: calc(100% + 6rem);
+ .next-image--dynamic-fill.wide,
+ video.wide {
+ width: calc(100% + 6rem) !important;
margin: 0 -3rem;
}
}
@media (min-width: 1280px) {
- .next-image--dynamic-fill.wide {
- width: calc(100% + 10rem);
+ .next-image--dynamic-fill.wide,
+ video.wide {
+ width: calc(100% + 10rem) !important;
margin: 0 -5rem;
}
}
@media (min-width: 1535px) {
- .next-image--dynamic-fill.wide {
- width: calc(100% + 14rem);
+ .next-image--dynamic-fill.wide,
+ video.wide {
+ width: calc(100% + 14rem) !important;
margin: 0 -7rem;
}
}
diff --git a/packages/ui/src/layout/banners/LW13CountdownBanner/LW13CountdownBanner.tsx b/packages/ui/src/layout/banners/LW13CountdownBanner/LW13CountdownBanner.tsx
index 97babbe1a7f..1b5ea90e877 100644
--- a/packages/ui/src/layout/banners/LW13CountdownBanner/LW13CountdownBanner.tsx
+++ b/packages/ui/src/layout/banners/LW13CountdownBanner/LW13CountdownBanner.tsx
@@ -37,7 +37,7 @@ export function LW13CountdownBanner() {
>
<p className="flex gap-1.5 items-center">{announcement.text}</p>
<div className="hidden sm:block text-foreground-lighter">
- Supabase Queues: Durable Message Queues with Guaranteed Delivery
+ database.build v2: Bring-Your-Own-LLM
</div>
<Button size="tiny" type="default" className="px-2 !leading-none text-xs" asChild>
<Link href={announcement.link}>{announcement.cta}</Link>
diff --git a/packages/ui/src/layout/banners/data/Announcement.json b/packages/ui/src/layout/banners/data/Announcement.json
index a11053eefe4..57e3d6152e6 100644
--- a/packages/ui/src/layout/banners/data/Announcement.json
+++ b/packages/ui/src/layout/banners/data/Announcement.json
@@ -1,7 +1,7 @@
{
"show": true,
- "text": "Launch Week 13: Day 4",
+ "text": "Launch Week 13: Day 5",
"launchDate": "2024-12-02T07:00:00.000-08:00",
- "link": "/launch-week#day-4",
+ "link": "/launch-week#day-5",
"cta": "Learn more"
}