Skip to content
Vega 2.0 — edge caching is now GA

Ship your API in minutes, not sprints

Vega gives your team a production-grade API platform — global deploys, built-in caching, and observability that explains itself. No YAML. No ops rotation.

$ npm install @vega/sdk

api/index.ts
import { vega } from '@vega/sdk';

export const api = vega.app({ region: 'global' });

api.get('/users/:id', async ({ params, cache }) => {
  const user = await cache.swr(`user:${params.id}`, () =>
    db.users.find(params.id),
  );
  return Response.json(user);
});
terminal

$ vega deploy --watch

Compiling api/index.ts…

Built in 1.2s

Deployed to 28 regions

https://api.vega.dev (42ms p99)

watching for changes

Trusted by teams shipping 8B requests/month

  • driftbase
  • Hexlayer
  • QUANTIS
  • modulr
  • Corecast
  • statline

Platform

Everything an API platform should handle

Vega owns the run-and-operate layer — deploys, caching, tracing, rollbacks — so your repository stays application code.

One command, 28 regions

vega deploy ships your API to every region at once. Traffic routes to the nearest healthy edge — 42ms p99 worldwide.

sfo · 31ms iad · 24ms gru · 48ms fra · 9ms bom · 37ms syd · 52ms

Edge caching with SWR

cache.swr() serves stale instantly and revalidates in the background. Hits return in 6ms at the median, no invalidation service to run.

hit edge 6ms
stale edge, revalidate 6ms
miss origin 41ms

Zero-config previews

Every pull request gets an isolated environment with its own URL. Live in about 10 seconds, deleted on merge.

pr-214.vega.dev live in 9s pr-213.vega.dev live in 11s pr-209.vega.dev merged, removed

Request-level tracing

Every request is traced end to end — middleware, cache, database. No agents to install, no sampling surprises.

p99 budget · 50ms p99 · last 24h

A type-safe SDK

Routes, params, and responses are fully inferred in @vega/sdk. If it compiles, the contract holds — across every handler and every consumer.

Instant rollbacks

Every deploy is immutable. Pin traffic to any previous version in under 10 seconds globally — no rebuild, no redeploy, no incident channel archaeology.

Developer experience

Infrastructure that reads like application code

Caching and auth are function calls, not config files. Declare them next to the route they protect, and Vega runs them at the edge in all 28 regions.

  • Stale-while-revalidate in one call — no invalidation service to operate
  • Middleware short-circuits at the edge, before your handler is invoked
  • Full TypeScript inference from route params to response body
TypeScript
import { vega } from '@vega/sdk';

export const api = vega.app();

api.get('/products', async ({ cache }) => {
  const products = await cache.swr('products', fetchProducts, {
    ttl: 60,
    stale: 300,
  });
  return Response.json(products);
});

Observability

See every request, end to end

Vega traces each request through middleware, cache, and database — and streams structured logs alongside. When something is slow, you know which span, in which region, and why.

trace 01J9JD4QK7 POST /checkout 200 87ms fra

Trace waterfall

POST /checkout
auth.bearer
rateLimit
db.orders.create
stripe.charge
cache.purge
serialize
logs — streaming
  • 12:04:31.118 INFO request.start method=POST path=/checkout
  • 12:04:31.121 INFO auth.ok sub=usr_84h2
  • 12:04:31.152 INFO db.insert table=orders rows=1
  • 12:04:31.190 WARN stripe.retry attempt=2 backoff=120ms
  • 12:04:31.203 INFO cache.purge key=orders:usr_84h2
  • 12:04:31.205 INFO request.end status=200 dur=87ms

Tracing is on by default for every Pro deploy — no agent, no sidecar, no sampling config.

Customers

Teams that switched, stayed

“We shut down our gateway, our cache cluster, and the on-call rotation that babysat them. p99 went from 180ms to 46ms in the first week.”

Maya Lindqvist Platform Lead, Driftbase

“The tracing is the feature. A query that had been slow for months showed up on the first waterfall — we fixed it in an afternoon.”

Diego Fuentes Staff Engineer, Hexlayer

“Preview environments changed how we review. Every pull request ships with a URL, so reviewers test the API instead of reading diffs.”

Anika Mehta CTO, Corecast

Deploy your first API in under a minute

The Free tier includes 100k requests a month across 3 regions. No credit card, no trial clock — upgrade when your traffic does.