Examples
Complete projects you can download and run locally. Sample source and README files are English; guides follow the locale you are reading.
Filter by task
14 examples
User-authorized OAuth client
Auth & credentialsComplete an authorization-code + PKCE login, perform one least-privileged API read, then refresh or disconnect.
Node.js · Sample source and README are English.
Prerequisites
- Node.js 22+
- Registered public OAuth client
Credential rotation rehearsal
Auth & credentialsIssue a replacement application credential, apply a revision-checked update, verify consumers, then retire the old credential.
Node.js · Sample source and README are English.
Prerequisites
- Node.js 22+
CI image deploy
Deploy & monoreposDeploy the exact container image digest your CI tested to an existing image-backed Bex service.
Node.js · Sample source and README are English.
Prerequisites
- Node.js 22+
- Workspace machine API key
- Existing image-backed Bex service
Shared-package monorepo
Deploy & monoreposRun two Node web services that share one workspace package, with Dockerfiles and a Blueprint that redeploys on shared-library changes.
Node.js · Sample source and README are English.
Prerequisites
- Node.js 22+
- Docker
Postgres schema rollout
PostgresRehearse a compatible column rename while old and new application images coexist on disposable Postgres.
Node.js · Sample source and README are English.
Prerequisites
- Node.js 22+
- Docker
- Postgres 16 (disposable)
Postgres transfer
PostgresRehearse a logical dump/restore transfer, verify grants, then practice a write-freeze cutover on disposable databases.
Node.js · Sample source and README are English.
Prerequisites
- Node.js 22+
- Docker
- Postgres 16 (disposable)
- pg_dump / pg_restore (major 16)
Postgres connection pooling
PostgresCompare direct and transaction-pooled connections under replica pressure with disposable Postgres and PgBouncer before scaling.
Node.js · Sample source and README are English.
Prerequisites
- Node.js 22+
- Docker
- Postgres 16 (disposable)
- PgBouncer (Docker image)
Durable background worker
Background workersProduce and claim inspectable Postgres jobs with lease recovery so interrupted workers finish useful work without duplicates.
Node.js · Sample source and README are English.
Prerequisites
- Node.js 22+
- Docker
- Postgres 16 (disposable)
HTTP graceful shutdown
HTTP servicesFinish in-flight HTTP work after SIGTERM within a bounded shutdown deadline, including streaming responses.
Node.js · Sample source and README are English.
Prerequisites
- Node.js 22+
Idle-service wake client
HTTP servicesWait for an identifiable application response after a free-tier web service wakes from idle hibernation.
Node.js · Sample source and README are English.
Prerequisites
- Node.js 22+
Webhook receiver
HTTP servicesVerify Standard Webhooks signatures from Bex and record accepted webhook ids on disk.
Node.js · Sample source and README are English.
Prerequisites
- Node.js 22+
- Webhook signing secret
Incident report collector
OperationsGather one service's deployment context, paginated logs, and selected metrics into a local report directory.
Node.js · Sample source and README are English.
Prerequisites
- Node.js 22+
Service inventory
OperationsEnumerate every page of GET /v1/services for one workspace using the shared cursor reader.
Node.js · Sample source and README are English.
Prerequisites
- Node.js 22+
Usage report reader
OperationsRead month-to-date usage with coverage states, and reconcile estimates against billing before the invoice.
Node.js · Sample source and README are English.
Prerequisites
- Node.js 22+
- Workspace machine API key