boundry.
Sydney, Australia
Documentation/frameworks

Framework guides

Use a published Boundry SDK where one is available, or integrate through the regional REST API while the package for your ecosystem is still in release preview.

JavaScript / TypeScript

Node.js logoNode.jsCreate one client in a server-only module and reuse it from jobs, controllers, or route handlers.Read guide Next.js logoNext.jsKeep this module server-only, then call it from a Route Handler, Server Action, or background job.Read guide Remix logoRemixUse a .server.ts module and call it from an action or loader that runs on the server.Read guide Nuxt logoNuxtPlace the client under server/ and call it from a server route or Nitro task.Read guide TanStack Start logoTanStack StartCall the server-only helper from a server function; never serialize the API key to the client.Read guide SvelteKit logoSvelteKitKeep the client under $lib/server and call it from an action, hook, or +server.ts endpoint.Read guide Express logoExpressCreate the client once at process startup and call the helper from your route or queue consumer.Read guide RedwoodJS logoRedwoodJSKeep the client in the API side and call it from services, functions, or background jobs.Read guide Hono logoHonoPass a Boundry API key from the runtime environment and call the helper inside a Hono handler.Read guide Bun logoBunBun provides web-standard fetch, so the same package and client work without an adapter.Read guide Astro logoAstroCall the helper only from an Astro action, endpoint, or server-rendered component.Read guide Encore.ts logoEncore.tsCreate the client in backend code and call it inside an Encore API endpoint or subscription handler.Read guide Better Auth logoBetter AuthCall this helper from Better Auth email callbacks for verification, password reset, and invitations.Read guide Vercel Functions logoVercel FunctionsCreate the client outside the request handler so warm invocations reuse it.Read guide AWS Lambda logoAWS LambdaCreate the client outside the Lambda handler and await the send before returning.Read guide Cloudflare Workers logoCloudflare WorkersThe SDK uses web-standard fetch and has no Node runtime dependency. Bind BOUNDRY_API_KEY as a Worker secret.Read guide Deno logoDenoImport the npm package through Deno and read the key from Deno.env on the server.Read guide Supabase Edge Functions logoSupabase Edge FunctionsUse the npm package in the Deno-based function and store BOUNDRY_API_KEY as a Supabase secret.Read guide

Python

Python logoPythonCreate one client per process and close it during application shutdown.Read guide Flask logoFlaskCreate the client with the application and call the helper from a route or task queue.Read guide FastAPI logoFastAPICreate the client during application startup and close it during lifespan shutdown.Read guide Django logoDjangoKeep the helper in application code and call it from views, signals, or Celery tasks.Read guide

Go

Go logoGoCreate one client during process startup and pass request contexts through to Send.Read guide Encore.go logoEncore.goCreate the client in backend code and call it from an Encore API endpoint or subscription.Read guide

Ruby

Ruby logoRubyCreate one client and reuse it for sends.Read guide Ruby on Rails logoRuby on RailsPut the client in a service object and invoke it from Active Job for user-facing flows.Read guide Sinatra logoSinatraCreate the client at boot and call the helper from a route or background worker.Read guide

PHP

PHP logoPHPLoad Composer autoloading and reuse the client in your application service.Read guide Laravel logoLaravelRegister the client as a singleton and call it from a queued job or service.Read guide Symfony logoSymfonyRegister the client as a service and inject it into controllers or Messenger handlers.Read guide