Compatibility and status
betterstack-alchemy is an unofficial, community-maintained adapter. It is not affiliated with or endorsed by Better Stack or Alchemy.
Versions
Section titled “Versions”| Package | Version |
|---|---|
betterstack-alchemy |
not yet published to npm (0.0.0 in the repository) |
alchemy |
2.0.0-beta.87. Alchemy v2 is in beta, and its APIs can change between betas |
effect |
~4.1.7 |
@effect/platform-node |
~4.1.7, needed by Cloud.Service and the alchemy CLI |
| Node.js | >=22 for the package; the alchemy CLI needs 22.22.3+ or 24.11.1+ |
Where the API descriptions come from
Section titled “Where the API descriptions come from”The SDK inside this package is generated from API descriptions:
- Incidents (Uptime), Telemetry and Errors: Better Stack’s own published OpenAPI documents, pinned in the repository, with small patches.
- Cloud and Account: Better Stack publishes no OpenAPI document for these. Their descriptions were assembled by this project from Better Stack’s Terraform provider (which fields are create-only, what to wait for, which actions exist) and Better Stack’s API reference pages (operations, status codes, error shapes). They are this project’s reading of those sources, not a description Better Stack publishes.
So an offline test of a Cloud or Account resource shows that the resource agrees with that reading. Only a live run shows that the reading agrees with the real API, and the live runs so far are listed under Live verification.
How resources are tested
Section titled “How resources are tested”A resource’s tests live in test/<Namespace>/<Resource>.test.ts. The same lifecycle (create, update, replace, adopt, delete) runs in two modes:
- Offline, always: against an in-process mock of the Better Stack APIs built from the descriptions above.
bun run testnever reaches the real API. - Live, on request:
bun run test:liveruns the same lifecycle against the real API. Incidents, Telemetry and Errors tests run in a separate team kept for testing; Cloud tests run with a Cloud-scoped team token, and only the free Cloud resources run without a further flag.
The status columns below start from each resource’s status in spec/CATALOG.md and take the reason from its test file, so they change when the tests do. The two are checked against each other, so a row can’t say one thing here and another in the catalog. Where a resource’s main lifecycle runs live and only some cases need a paid plan, the row says so. Cloud.Volume and Cloud.ServerPrivateIp have no live test of their own: they are deployed by the shared server suite, which bills, so they show as gated by cost. The columns say what kind of test exists:
- Live test available: the lifecycle can run against the real API with no extra flag. It is not a record that it ran, or that it passed on your plan.
- Live test gated: the live run needs a flag, because the test team’s plan refuses the feature, or because the resource bills. Without the flag only the offline test runs.
- Offline only: there is no live run of this lifecycle.
Live verification
Section titled “Live verification”What has actually been run against the real Better Stack API, and when. Anything not listed here is verified offline only, whatever its status column says.
2026-12-01: one Cloud server, end to end
Section titled “2026-12-01: one Cloud server, end to end”One AM1 server (zone us-west-2a, monthly term) was created by the shared live suite (test/Cloud/live/SharedServer.resumable.live.test.ts) and taken through six phases. Verified against the real API:
Cloud.Server: anAM1with imageubuntu-26-04boots torunning; Alchemy’s deploy key logs in asroot; cloud-init installs Node.js 26 from NodeSource. A rename and ametadatachange apply in place, and the ownership marker survives them.Cloud.Volume: a 1 GiB volume is created and attached, grown to 2 GiB, detached and attached again.Cloud.MountVolumemounts it at a custom path and writes itsfstabline once.Cloud.ServerPrivateIp: the private IP is configured on the server’s interface.Cloud.Networkattach and detach, andCloud.Firewalldetach and attach, in place on the running server.Cloud.Service: two Services on the server, an HTTP one with/healthand a background worker, deploy, update with new code and a newenv, and are removed cleanly.Cloud.Website.StaticSiteon the same server serves its files with the expected content types.alchemy destroyremoves the server, the volume, the networks, the firewall and its rules, the placement group and the deploy key.
Two things the run showed that the descriptions didn’t:
- An account’s first billable create is refused. Creating the server failed with the typed
PaymentRequirederror; its message carries a payment link, and paying through that link created the server from the refused request. See Servers. - An SSH key a server holds can’t be deleted. Deleting the test’s own SSH key failed with
SshKeyInUse: a server still held it, including one destroyed outside the stack, whose record keeps the key until Better Stack purges it.Cloud.SshKeynow detaches a key everywhere before deleting it and, for a server destroyed outside the stack, fails withSshKeyHelduntil the record is purged. See Servers.
2026-12-01: the free resources
Section titled “2026-12-01: the free resources”The live tests of the free Cloud resources (Cloud.SshKey, Cloud.Network, Cloud.Firewall, Cloud.FirewallRule, Cloud.PlacementGroup, Cloud.Webhook and Cloud.Certificate) ran against the real API with a team-scoped test token: 31 cases passed and 11 offline-only cases were skipped. The live tests of the Incidents, Telemetry and Errors resources that notify nobody (the rows marked Live test available) also passed, against a separate team kept for testing. Cases behind a plan flag were not run.
2026-12-01: OpenTelemetry export
Section titled “2026-12-01: OpenTelemetry export”test/Telemetry/Export.live.test.ts created its own open_telemetry source and ran Telemetry.Export with exactly the environment the layer binds onto a host. The source’s ingesting host accepted traces and logs as OTLP/JSON and metrics as OTLP/protobuf (all 2xx), Telemetry.IngestLogs was accepted (202), the rows were queried back through the Query API seconds later, and the source was deleted. The exporter ran in a local Node.js process, not in a Service on a Better Stack server.
Not verified live
Section titled “Not verified live”- Changing
serverType(a rescale), replacing a server, moving a volume to another server. One server per live run is the budget, so replacement is tested offline only. - Paying through the
PaymentRequiredlink and the next deploy picking up the server that payment created. - Managed databases (Postgres, MySQL, ClickHouse, Kafka, Valkey), including their connection attributes, credential rotation and migrations; Kubernetes clusters and node pools; load balancers; reserved IPs; server pools; the object cache; snapshots and scheduled snapshots. All of these bill.
- Website frameworks other than
StaticSite: the Astro site is built and run locally by the offline tests, and the other 12 are checked for their wiring only. - Incidents, Telemetry and Errors cases gated behind a paid plan (escalation policies, extra on-call schedules, the catalog, paid integrations), and anything that would notify a person. Account resources are offline only.
Status per namespace
Section titled “Status per namespace”Generated from the gates in the test files by bun run docs:gen. Each namespace’s page lists every resource with its status and, when it isn’t tested live, why.
104 resources: 33 with a live lifecycle test available, 54 with a gated live test, 17 offline only, 0 without a test file.
| Namespace | Resources | Live test available | Live test gated | Offline only |
|---|---|---|---|---|
| Account | 2 | 0 | 0 | 2 |
| Cloud | 44 | 7 | 33 | 4 |
| Errors | 7 | 3 | 0 | 4 |
| Incidents | 35 | 9 | 21 | 5 |
| Telemetry | 16 | 14 | 0 | 2 |