~/bendnewshub
×

1.Install

curl -fsSL https://bend-lang.com/install.sh | sh

2.Add this to your AGENTS.md

When using Bend:
- run `bend guide` to learn it
- use `LAWS.bend` to keep important rules
- run `bend PROOF.bend` before committing
- parallelize the code whenever possible

3.Enjoy bug-free, fast vibe-coded apps!

The BendHub API

Everything below is plain JSON over GET, the same for everyone, with no key and no cookie, readable from any origin. These routes are a contract: fields are added, never renamed or removed. /llms.txt is this page as text, for an agent to read first.

1.Packages.

/packages.json?sort=hot|new&limit=&after=every live package, a page of them, and total. Each has hash, files (path: bytes), bytes, ts, desc, entry, its newest name and version, dependents, mentions, score, license, readme, native and native_via. Hot ranks by dependents plus posts, never by votes.
/package/0x<hash>.jsonone package as above, plus deps, the hashes it imports.
/dependents.json?hash=&limit=&after=the live packages that import a hash, newest first, and total. With deps, this walks the graph both ways.
/index.jsonevery live package, newest first, in the short form bend reads.
/0x<hash>/manifestthe files, one <sha256> <path> line each; /0x<hash>/<path> is a file, as text. A package never changes.
native is the package's own .c and .js files, which Bend runs without checking them. native_via, when it has none, is a package it imports that has some or leads to some, else null. Neither says a package is safe or not: the guide says what they mean.

2.Names and search.

/name/<name>its owner, dependents, mentions, latest, and versions newest first, each with native, adds_native and adds_imports against the version before it.
/name/<name>@<version>the hash it names, as text.
/names.json?sort=hot|new&limit=the names, ranked or by newest version.
/names.json?hash=every name@version that names a hash, with its owner.
/search.json?q=names whose name, and packages whose description or README, contain q, any case; each package says which it matched.
/stats.jsonthe hub's counts.
To search inside packages, by a definition's name, a task or a type, and to follow which definitions use which, use JendHub, made by the community from this API.

3.Limits.

search60 a minute per address
every other route above600 a minute per address, together
IPv6an address counts by its /64
over the limit429, with Retry-After in seconds
limit1 to 100, 30 when absent
qits first 100 characters
cachinglists may be kept 10 seconds, the rest 60; package files forever
Package files are not limited; bend resolves each name@version once and keeps it, so its imports rarely count.

4.Examples.

curl -s 'https://hub.bend-lang.com/search.json?q=json'
curl -s 'https://hub.bend-lang.com/packages.json?sort=hot&limit=10'
curl -s 'https://hub.bend-lang.com/package/0x<hash>.json'
curl -s 'https://hub.bend-lang.com/dependents.json?hash=0x<hash>'
curl -s 'https://hub.bend-lang.com/name/<name>'