A web origin whose servers compete. Websites kept in bstore buckets, served free to readers by any web node that holds them, behind the web server an operator already runs.
Warning
Experimental software. bweb is part of bstack, the applications and patterns built on BSV Layered Multicast. It is published to be built on and improved. Interfaces, formats and behavior may change rapidly between releases; pin an exact version. Nothing in the record specification is frozen yet (docs/spec.md).
A publisher puts a static site into a bstore bucket with ordinary S3 tooling. The bucket's records and bytes travel once, over a multicast plane, to every node that asks for them. Each web node reads from its own copy, holds every byte to its hash before serving it, and answers readers over plain HTTP. Any number of nodes can serve the same site, and none of them needs the publisher's permission or a contract with anyone else.
| What you get | How bweb does it |
|---|---|
| Content that proves itself | Every object a reader gets was verified against the bucket's token chain and its content hash first. The ETag is the content's SHA-256 |
| Servers that are interchangeable | A web node is a bstore replica plus the bweb server. Any operator can run one; a reader's request lands on whichever answers |
| Servers that compete to host you | A publisher posts a bounty for one term. The first nodes that prove, by ordinary reads, that they serve the site are paid by rank, and audited while the term runs |
| One publish, every node | A put is carried once over the plane; every node that asked for the site's topics receives the same bytes |
| Your web stack unchanged | bweb speaks plain HTTP behind Caddy, NGINX or any front you run. It adds no TLS, caching or compression of its own |
| Updates with an audit trail | A site changes when its owner anchors a new token. Each version is a mined transaction anyone can check |
| A deny list per node | An operator refuses a site, a publisher, an object or a content hash with 451, without touching anyone else's node, and can take signed abuse reports and keep a signed log of what it decided |
| Reads that keep working | A node that has read an object serves it from its own store when every provider is down |
flowchart LR
P["Publisher<br/>AWS CLI or any S3 tool"] -->|"put, anchor"| G["Writing gateway<br/>bstore s3d"]
G -->|"records and pieces, once<br/>(multicast plane)"| N1
G --> N2
subgraph N1["Web node A"]
R1["bstore gateway<br/>(reads, keeps what it fetched)"] --> B1["bweb"]
end
subgraph N2["Web node B"]
R2["bstore gateway"] --> B2["bweb"]
end
B1 --> F1["Your front<br/>TLS, cache"]
B2 --> F2["Your front"]
F1 --> U(["Readers"])
F2 --> U
- The publisher writes the site to a bucket through a bstore gateway and anchors it: one token names every file of that version.
- The plane delivers the records and pieces to every node subscribed to the bucket's topics. A node asks for them through the topic interest protocol, so it receives only the sites it chose to serve.
bwebmaps theHostheader to a site and the path to a key, reads it from the node's gateway on loopback, and serves it withGETandHEAD.
The details, with sequence diagrams: docs/architecture.md.
| Piece | What | Where |
|---|---|---|
| the server | bweb: sites by Host, index and error documents, header rules, the deny list |
docs/server.md, docs/configuration.md |
| site record | a site's settings (bucket, names, documents, header rules) in a record signed by the bucket owner's key, on the site's own topic; bweb site mints and updates it, and nodes read it instead of a file |
siterec/, docs/spec.md section 2 |
| serving advertisement | a node announces the sites it serves and where, paid from its own wallet | docs/configuration.md |
| hosting race | bweb race: a publisher's bounty for serving, challenges made of ordinary reads, outcome records, settlement by rank, a remittance to each paid node, audits during the term; a node's own terms |
challenge/, docs/spec.md section 7 |
| abuse desk | signed reports at a node, recognized reporters, a signed action log; bweb abuse and bweb whois |
docs/configuration.md |
| the checker | bweb check: this node's own verdict on whether an address serves a site, for a DNS renderer beside it |
docs/check.md |
| overlay module | admits a site's records on a host and answers lookups (tm_bweb_<site>, ls_bweb) |
module/ |
| Part | What |
|---|---|
| bstore | the store: its gateway runs inside bweb or beside it, and a publisher writes through one |
| an overlay host | a Go overlay host that mounts bstore's module and module/: overlay-engine |
| a front server | Caddy, NGINX or any other, for TLS, caching and compression |
| coin | none to serve. A node pays the miner fee of each advertisement from its own wallet; a publisher pays for a site's record and a race's bounty from theirs |
| bdns | optional: a name bound to a site in a zone its owner publishes, answered only with servers that pass bweb check on the answering node |
About ten minutes on one Linux machine with Docker: a local chain, two hosts, two
providers, a gateway, a site published with the AWS CLI, and bweb serving it.
examples/quickstart/quickstart.sh # build, publish, serve, check, tear down
KEEP=1 examples/quickstart/quickstart.sh # leave it running at http://127.0.0.1:8480Walkthrough: docs/quickstart.md.
| Form | Where |
|---|---|
| Binary | each release: Linux and macOS, amd64 and arm64, with SHA256SUMS and the licenses in every tarball |
| Image | ghcr.io/lightwebinc/bweb:<version> (distroless, non-root) |
| Source | go build -o bin/bweb ./cmd/bweb (Go 1.27) |
bin/bweb -config /etc/bweb/bweb.json| Document | For |
|---|---|
| Quickstart | a site served end to end on one machine |
| Architecture | the components, the read path, publishing, what comes next |
| Configuration | every setting, with defaults and examples |
| HTTP behavior | what a reader gets for each request |
| Operations | deployment, the front server, sizing, the deny list, troubleshooting |
| The checker | bweb check: verdicts on a site's servers for a renderer on the same node |
| Records | the site, hosting terms, serving advertisement and outcome records, and how a host admits them (draft) |
| Performance | measured read rates and where the limits are |
| Roadmap | the steps after this one |
| Examples | configurations, a sample site, systemd, Caddy and NGINX |
| Changelog | what changed in each release |
make verify # gofmt, vet, go.mod tidy, third-party licenses, tests: what CI runs
make build # bin/bweb
make docker-buildReport a vulnerability privately: SECURITY.md. Contributing: CONTRIBUTING.md. Licensed under the Apache License 2.0.