---
title: "BHVR-x402"
section: open-source
description: "BHVR-x402 is a modern and lightweight stack for the open web and open payments"
tags: ["bhvr", "open-source", "x402", "payments"]
created: 2026-01-02T09:44:00Z
updated: 2026-07-16T14:59:44Z
cid: bafkreigcesjflianqwxhhkcg4dghm2rjkppaz5jzmochwjexgvrmwszu5i
html: https://iammatthias.com/open-source/1767375877152-bhvr-x402
---

# BHVR-x402

![](https://blobs.farfield.systems/blobs/bafkreiepz24reif6ohetg64qeb4nlw7jq6lupkrol4zfx66xqvpd2wt36e)

[BHVR](https://bhvr.dev/) is a modern and lightweight stack for the open web that is built and maintained by my friend [Steve Simkins](https://stevedylan.dev/). It uses Bun, Hono, Vite, and React to help build performant sites and apps without vendor lock-in. Deploy it together, or separate your concerns.

For a side project, I recently forked BHVR and added support for [x402](https://www.x402.org/). x402 is an open standard built on the long-forgotten 402 error code. It enables native payments with just a few lines of code. 

[BHVR-x402](https://github.com/iammatthias/bhvr-x402) provides a general purpose starting point for x402 payments. Out of the box you'll find pre-configured API endpoints (free and paid), and an SDK boilerplate. You can publish it, keep it as internal tooling, or rip it out and use the API directly. Up to you.

---

## Related

- [llm-txt.fun](https://iammatthias.com/open-source/1767381212267-llm-txt-fun.md): LLM-TXT provides tools to generate files from Farcaster, Bluesky, RSS feeds, and Git repos, building on my earlier llm-fid project.
- [Sonde](https://iammatthias.com/open-source/1769545357371-sonde.md): An AT Protocol explorer that started as a way to render the byte-array memory Koios stores on its PDS.
- [Pure Internet: office---space](https://iammatthias.com/posts/1736536967495-pure-internet-office-space.md): A Pi Zero 2 W and Waveshare Environment HAT record my office conditions every 60 seconds.
- [Now Playing](https://iammatthias.com/posts/1784736733544-now-playing.md): Putting my Apple Music "Now Playing" on display with a Raspberry Pi and a 64x64 LED matrix.
- [Post-UI](https://iammatthias.com/posts/1784126858578-post-ui.md): Do we still need to ship a frontend?
