Skip to content

Add Satoshi API community example#74

Open
Bortlesboat wants to merge 1 commit into
browserbase:mainfrom
Bortlesboat:add-satoshi-api-community-example
Open

Add Satoshi API community example#74
Bortlesboat wants to merge 1 commit into
browserbase:mainfrom
Bortlesboat:add-satoshi-api-community-example

Conversation

@Bortlesboat

@Bortlesboat Bortlesboat commented May 19, 2026

Copy link
Copy Markdown

Summary

  • add a community Satoshi API + Browserbase Stagehand example
  • fetch the free Satoshi API /api/v1/fees/recommended endpoint before opening a Browserbase session
  • document the optional x402 paid /api/v1/fees/now route and include the nested community package in the pnpm workspace
  • related listing path: companion Browserbase templates PR Add Satoshi API fee agent template templates#97

Reviewer Packet

Verification

  • corepack pnpm --filter browserbase-satoshi-api-example typecheck
  • corepack pnpm exec eslint examples/community/satoshi-api/src/index.ts
  • corepack pnpm exec prettier --check examples/community/README.md examples/community/satoshi-api/README.md examples/community/satoshi-api/package.json examples/community/satoshi-api/src/index.ts examples/community/satoshi-api/tsconfig.json pnpm-workspace.yaml
  • curl.exe -i https://bitcoinsapi.com/api/v1/fees/recommended returned HTTP 200

Notes

Repo-wide checks appear red on main before this change: prettier reports existing formatting warnings across many files, and eslint crashes in the existing vercel-puppeteer example because @eslint/eslintrc is missing.


Note

Low Risk
Documentation and isolated example code only; no changes to production packages or core runtime behavior.

Overview
Adds a community integrations section under examples/community/, replacing the prior WIP placeholder README with an index that links to a new Satoshi API + Browserbase sample.

The new satoshi-api package is a standalone TypeScript demo: it calls Satoshi API’s free GET /api/v1/fees/recommended (optional X-API-Key), normalizes the response into a human-readable fee decision, then starts a Stagehand session on Browserbase, opens mempool.space, and logs the fee summary alongside the Browserbase session_id and page title. Docs cover env vars, setup, and the optional paid x402 fees/now route.

pnpm-workspace.yaml now includes examples/community/* so the nested example participates in the monorepo workspace.

Reviewed by Cursor Bugbot for commit c0f1642. Bugbot is set up for automated code reviews on this repo. Configure here.

@Bortlesboat Bortlesboat requested a review from a team as a code owner May 19, 2026 00:50
@Bortlesboat Bortlesboat force-pushed the add-satoshi-api-community-example branch from 28449a9 to f66007b Compare May 19, 2026 02:21
@Bortlesboat

Copy link
Copy Markdown
Author

Refreshed onto current main and resolved the workspace conflict while preserving the newer packages workspace. The community example now follows the current repository formatting. Verification: scoped Satoshi example typecheck passed, touched-file Prettier check passed, and diff check passed. Note: current upstream main's frozen install is already blocked by its root manifest/lockfile mismatch, so validation used pnpm install with lockfile reads/writes disabled and did not include an unrelated lockfile rewrite.

@Bortlesboat Bortlesboat force-pushed the add-satoshi-api-community-example branch from f66007b to c0f1642 Compare July 13, 2026 02:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant