April 2025 Summaries
8 posts from Supabase
Filter
Month:
Year:
Post Summaries
Back to Blog
The top updates from the past week include the launch of a new Edge Functions dashboard, which allows users to create, test, and deploy functions directly from the Supabase Dashboard. Additionally, Realtime Broadcast has been extended to enable sending messages from database triggers, while Data API requests can now be routed to the nearest Read Replica for reduced network latency. The official UI Library has also been introduced, featuring ready-to-use components built on top of shadcn/ui and integrated with Supabase products. Furthermore, an official MCP server is available for connecting AI tools like Claude and Cursor with Supabase, and declarative schemas have been simplified database management. Other updates include the integration of Clerk Auth with Supabase, a Postgres Language Server Protocol implementation, dedicated poolers for better performance, and an invitation to more AI Builders to partner with Supabase.
Apr 04, 2025
575 words in the original blog post.
The Model Context Protocol (MCP) is a standardized protocol that enables Large Language Models (LLMs) to interact with platforms like Supabase, allowing for agent-like experiences where LLMs can call tools on behalf of users. The MCP server connects AI tools to Supabase, enabling tasks such as launching databases, managing tables, and querying data. The protocol standardizes the tool ecosystem, decoupling clients from tool providers, and allows users to bring their own tools as long as they implement MCP. Resources and prompts are also incorporated into the protocol, enabling servers to expose arbitrary data and content for clients to use as context for LLMs. Future developments include native authorization support, better schema discovery, and more protections like auto-detecting destructive operations and requiring confirmation before executing them. The Supabase MCP server is designed to bridge the gap between AI tools and databases, allowing developers to focus on building instead of context-switching between tools.
Apr 04, 2025
1,370 words in the original blog post.
Geo-routing is being released by Supabase to minimize request latency for globally distributed applications. It automatically directs Data API requests to the nearest read replica of a database, reducing latency and improving response times for users worldwide. The system uses geospatial algorithms to determine the optimal read replica for each request, taking into account the user's location and the location of available read replicas. Geo-routing is currently limited to read-only Data API requests and is only available via experimental routing, but Supabase plans to expand its support to other products in the future. To get started, users can enable experimental routing and deploy read replicas in regions where their users are concentrated.
Apr 04, 2025
492 words in the original blog post.
Declarative schemas provide a centralized, version-controlled way to manage complex database schemas, simplifying the process of managing and maintaining them. By defining the desired state in SQL files, declarative schemas offer numerous benefits over traditional migrations, including a single pane of glass, versioned migrations, concise code reviews, and improved development velocity. While declarative schemas are not meant to replace migrations entirely, they can significantly simplify the database schema management process for complex databases, making it easier to manage changes and reduce errors. With declarative schemas, developers can focus on writing code rather than managing migration scripts, leading to faster development velocities and reduced friction in collaborative environments.
Apr 03, 2025
906 words in the original blog post.
We've made significant updates to the Studio improvements, new features, and bug fixes to help developers build, debug, and ship faster. The Table Editor and SQL Editor now have tabs, making it easier to compare data, edit schemas, or reference related tables without losing your place. Customizable reports can be created with full control over the layout, while inline SQL execution within blocks allows for fully customized, data-driven reports. Additionally, there is an improved Inline SQL Editor that enables developers to run SQL from anywhere in the Dashboard. The AI Assistant now supports multiple chats, and logs improvements have been made to show more detailed information. These updates can be enabled via Feature Preview.
Apr 02, 2025
696 words in the original blog post.
Now you can use Realtime Broadcast to scale database changes sent to clients with Broadcast from Database. You can use Supabase Realtime build immersive features like notifications, chats, live cursors, shared whiteboards, multiplayer games, and listen to Database changes. Broadcasting from the Database is our latest improvement that offers more benefits than Postgres Changes, including targeting specific actions, choosing which columns to send in the body of the message, and using SQL to selectively send data to specific channels. You now have two options for building real-time applications using database changes: Broadcast from Database, which sends messages triggered by changes within the Database itself, and Postgres Changes, polling the Database for changes. The former is suitable for applications with many connected users, sanitizing the payload of a message, or reducing latency of sent messages. To set up Broadcast from Database, you need to set up Row-Level Security policies, create a function that will be called whenever a Database change is detected, and set up trigger conditions under which you will execute the function. Finally, you need to set up your client code to listen for changes. Realtime Broadcast from Database sets up a replication slot against a publication created for the `realtime.messages` table, letting Realtime listen for Write Ahead Log (WAL) changes whenever new rows are inserted. It broadcasts that message to the target channel right away and uses helper functions like `realtime.send` and `realtime.broadcast_changes` to create payloads similar to Postgres Changes. This enables new uses like broadcasting directly from Database functions, sending only specific fields to connected clients, and creating scheduled events using Supabase Cron.
Apr 02, 2025
639 words in the original blog post.
The text discusses automatic embeddings, a feature that automates the process of generating and updating vector representations of content in a database. This is achieved through the use of PostgreSQL extensions such as `pgvector`, `pgmq`, `pg_net`, and `pg_cron`. The approach eliminates the need for an external pipeline to manage embedding generation, reducing drift and complexity. Automatic embeddings can be implemented using either generated columns or trigger-based asynchronous pipelines. The latter involves using SQL triggers to enqueue work when rows are inserted or updated, and leveraging extensions like `pgmq` and `pg_net` to send requests to an Edge Function for embedding generation. This approach provides benefits such as no drift, bringing the model itself, and all SQL functionality. It also simplifies use cases like semantic search, recommendations, and retrieval-augmented generation (RAG).
Apr 01, 2025
1,215 words in the original blog post.
Now you can create, test, edit, and deploy Edge Functions directly from the Supabase Dashboard. The Edge Functions editor in the Dashboard includes built-in syntax highlighting and type-checking for Deno and Supabase-specific APIs, as well as templates for common use cases. You can download Edge Functions source code via Supabase CLI or by clicking the Download button in the dashboard, but versioning or rollbacks are not currently supported. A built-in tool allows you to test your Edge Function with different request payloads, headers, and query parameters. Deploying Edge Functions no longer requires Docker, thanks to new APIs that enable this functionality. Additionally, Supabase has added Deno 2.1 support for the Edge Runtime, allowing developers to use built-in Deno commands to scaffold a new project, manage dependencies, run tests, and lints.
Apr 01, 2025
537 words in the original blog post.