Every node now serves a search and listing-detail UI at GET /. It is vanilla TypeScript, bundled unminified into web/dist (committed) and embedded with go:embed, so `go build` is enough to run a node. The browser verifies each listing itself (certificate, binding, validity, signature, proof-of-work) with pure-JS ed25519, so a gateway can withhold listings but not forge them. Unverifiable results are hidden and their content is never shown. Listing text is only inserted via textContent and the UI is served with a strict CSP. Canonical JSON is reimplemented in TypeScript and tested against a golden fixture signed by the Go code. /api/v1/status now reports difficulty. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
24 lines
935 B
Markdown
24 lines
935 B
Markdown
# Allmende
|
|
|
|
A free, distributed marketplace for buying, selling and renting. Listings are
|
|
replicated across the nodes of everyone who participates, so there is no central
|
|
server and no cost. See [docs/PROTOCOL.md](docs/PROTOCOL.md).
|
|
|
|
## Try it
|
|
|
|
```
|
|
go build -o bin/node ./cmd/node
|
|
bin/node init # shows your 12-word recovery phrase once
|
|
bin/node run --region u1x # u1x = Hamburg area; UI and API on http://127.0.0.1:8080
|
|
```
|
|
|
|
Open http://127.0.0.1:8080 to search. Your browser checks every listing's
|
|
signature itself, so you don't have to trust the node it talks to. The UI is
|
|
pre-built and embedded; Node.js is only needed to change it
|
|
(`cd web && npm ci && npm run build && npm test`).
|
|
|
|
A second node on the same network finds this one automatically (mDNS); across
|
|
networks, pass `--bootstrap /ip4/<addr>/tcp/<port>/p2p/<peer id>`.
|
|
|
|
Licensed under the [GNU AGPL-3.0](LICENSE): free for everyone, and it stays free.
|