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
10 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
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