curated source
Bun
JavaScript runtime, bundler, test runner and package manager.
What docspack can build from it
Bun publishes an llms.txt index
and a single-file llms-full.txt, so the whole corpus arrives in
one request and the mirror needs no page-by-page crawl.
$ npx docspack build bun \ --name @bun-docs/docspack \ --pkg-version 2026.1.0
That writes .llms/manifest.json, .llms/chunks/*.md
and an llms.txt table of contents — an ordinary npm package you can
publish to your registry or keep inside the monorepo that uses it.
Then an agent asks it
$ pnpm add -D @bun-docs/docspack $ npx docspack sync $ npx docspack ask "runtime"
The answer is scoped to the version in your lockfile, capped at 3,000 tokens, and read from a local SQLite index — no network request at query time.
Before you mirror someone else's docs
A mirror is a snapshot you own and version, not a live feed: it reflects
Bun's documentation at the moment you ran build, and it
goes stale unless you rebuild. Pick a --pkg-version scheme that says
when it was taken rather than one that implies it tracks their releases. And their
documentation is their copyright — check the terms before publishing a mirror publicly;
a private package inside your own registry raises no such question.
Source links
Related sources
Curated sources sharing a topic with Bun.