Home / Blog / Bring your own backend for Vercel Board: The Vercel Board…
Tech News

Bring your own backend for Vercel Board: The Vercel Board SDK

Vercel’s Board SDK 0.57.0 mounts Postgres as a backend that serves the same API, stores files up to 100 MB in private Blob, and runs timers on Vercel Queues.

In short

Developers bringing their own Board backend · 100 MB per file in private Vercel Blob · @vercel/board 0.57.0 or later with Postgres · Mount postgres() and use vercel board --url

By Dillip Chowdary • Dec 01, 2026 • Source: Vercel Blog

Bring your own backend for Vercel Board: The Vercel Board SDK
Image: Vercel Blog

At a glance

Who it is for
Developers bringing their own Board backend
The number
100 MB per file in private Vercel Blob
Available
@vercel/board 0.57.0 or later with Postgres
What to do
Mount postgres() and use vercel board --url
Pool size
Up to 10 connections per instance
Queue retry
30 seconds, topic board, queue/v2beta

Vercel’s Board SDK and the vercel board command can now plug into a backend you bring, and Vercel Blog's report places the Postgres backend in @vercel/board 0.57.0 or later, with each file kept in a private Vercel Blob store up to 100 MB.

Developers who want a board on their own backend to serve the same API as their team’s board in Vercel’s API are the readers for this setup. Next they mount postgres() on an API route, attach Blob and Queues, and point the vercel board command at that route with --url.

01Postgres backend for Vercel Board

The Vercel Board SDK and the vercel board command can now plug into a backend you bring, and a board on that backend serves the same API as your team’s board in Vercel’s API. Callers use that single API whether the board is the team board in Vercel’s API or the board you mount yourself. Postgres is the first backend that ships with the SDK, and the mount pairs it with a blob store and a scheduler.

The helper is postgres(), imported from @vercel/board/backend-postgres, and board() receives it as the backend option. The sample stores that return value as team and assigns team.fetch to both GET and POST, which is the route’s answer to the board API. Update to @vercel/board 0.57.0 or later before this Postgres backend is available.

02API route mount and file store

Mount the board on an API route with postgres() at app/api/board/[[...path]]/route.ts, where GET and POST are both team.fetch so the catch-all path serves the board API. The file imports board from @vercel/board, postgres from @vercel/board/backend-postgres, vercelBlob from @vercel/board/backend-postgres/blob-vercel, and vercelQueues from @vercel/board/backend-postgres/scheduler-vercel. The sample is captioned “Mounting a board on Postgres, Vercel Blob, and Vercel Queues”.

The board requires a blob store for files, and vercelBlob() keeps those files in a private Vercel Blob store, up to 100 MB each. vercelQueues() runs the board’s timers, like scheduled messages, on Vercel Queues. The sample sets scheduler to vercelQueues({ topic: "board" }), passes blob: vercelBlob() and that scheduler into postgres(), and passes the backend into board().

  1. Import the modules Import board from @vercel/board, postgres from @vercel/board/backend-postgres, vercelBlob from @vercel/board/backend-postgres/blob-vercel, and vercelQueues from @vercel/board/backend-postgres/scheduler-vercel.
  2. Export the scheduler Set scheduler to vercelQueues({ topic: "board" }).
  3. Export the team board Set team to board({ backend: postgres({ blob: vercelBlob(), scheduler }) }).
  4. Export the handlers Set GET and POST to team.fetch in app/api/board/[[...path]]/route.ts.

03Scheduler route for board timers

Mount the scheduler in a route of its own and trigger it from the queue topic, using the file app/api/board-scheduler/route.ts. That file is captioned “Mounting the scheduler”, and the module re-exports the scheduler the board route already built with vercelQueues() and topic board.

Advertisement

Tech Pulse Daily

Get tomorrow's pulse first

Join engineers who read Tech Pulse before stand-up. Free, weekday mornings.

The module is export { scheduler as POST } from "@/app/api/board/[[...path]]/route", so POST on the scheduler route is the same scheduler object the board received. That object was created as vercelQueues({ topic: "board" }) and passed into postgres() beside vercelBlob(). Timers such as scheduled messages stay on Vercel Queues under the topic name board.

  1. Add the scheduler route Create app/api/board-scheduler/route.ts.
  2. Re-export scheduler as POST Export scheduler as POST from @/app/api/board/[[...path]]/route.
  3. Keep one scheduler Leave vercelQueues({ topic: "board" }) in app/api/board/[[...path]]/route.ts, where postgres() already receives it.

04Queue trigger and retry seconds

Trigger the scheduler from Vercel Queues by listing app/api/board-scheduler/route.ts under functions in vercel.json. experimentalTriggers on that function is one object whose type is queue/v2beta and whose topic is board, the same topic string passed to vercelQueues({ topic: "board" }). The config block is captioned “Triggering the scheduler from Vercel Queues”.

  1. Name the function Set the functions key to app/api/board-scheduler/route.ts.
  2. Add the trigger array Set experimentalTriggers to an array with one object.
  3. Fill the queue fields Set type to queue/v2beta, topic to board, and retryAfterSeconds to 30.

05Database URL pool and OIDC

Install pg, @vercel/blob, and @vercel/queue beside the Board packages. postgres() reads DATABASE_URL or POSTGRES_URL, or it takes a connectionString or a pg pool you pass in. Apply the schema that ships with the package before your first deploy, and use the provider’s pooled connection URL for that database.

InputHow postgres() uses it
DATABASE_URLReads the environment variable
POSTGRES_URLReads the environment variable
connectionStringUses the string you pass in
pg poolUses the pool you pass in

Each instance opens a pool of up to 10 connections, which is the reason to use the provider’s pooled connection URL. Callers authenticate with OIDC by default. On Vercel, your team’s people and the project’s own deployments get in, and grants let in other projects and GitHub Actions workflows.

Pass authenticate to verify callers your own way, and set url when the board runs outside Vercel. Point the vercel board command at app/api/board/[[...path]]/route.ts with --url. Use @vercel/board 0.57.0 or later to run the Postgres backend on that API route.

Note: Apply the schema that ships with the package before your first deploy, and use the provider’s pooled connection URL, since each instance opens a pool of up to 10 connections.

Frequently asked questions

What @vercel/board version adds the Postgres backend?

Update to @vercel/board 0.57.0 or later to use the Postgres backend. Postgres is the first backend that ships with the SDK.

Which API does a board on your own backend serve?

A board on your own backend serves the same API as your team’s board in Vercel’s API. The Vercel Board SDK and the vercel board command can both plug into that backend.

How large can files stored with vercelBlob() be?

vercelBlob() keeps files in a private Vercel Blob store, up to 100 MB each. The board requires a blob store for files when you mount it with postgres().

How does postgres() get a database connection?

postgres() reads DATABASE_URL or POSTGRES_URL, or it takes a connectionString or a pg pool you pass in. Use the provider’s pooled connection URL, because each instance opens a pool of up to 10 connections. Apply the schema that ships with the package before your first deploy.

How do board timers run on Vercel Queues?

vercelQueues() runs the board’s timers, like scheduled messages, on Vercel Queues with topic board. Mount scheduler as POST in app/api/board-scheduler/route.ts, then add a vercel.json trigger of type queue/v2beta with retryAfterSeconds set to 30.

Sources

Dillip Chowdary

Author

Dillip Chowdary

Writes Tech Bytes coverage of AI, engineering, and the tools that actually ship. Editor of Tech Pulse Daily.

Related on Tech Bytes

Advertisement

5-min tech signal

Weekday briefing for engineers who skip the noise.

No spam · Unsubscribe anytime

Advertisement

✈️ CareerPilot

Your AI job-search copilot

Match your resume against live Ashby, Greenhouse & Lever openings — fit scores, job-specific resume optimization and email alerts.

Find matching jobs →

Free Tools

Browse all tools →