curated source

Better Auth

Framework-agnostic authentication library for TypeScript.

authauthenticationtypescript

What docspack can build from it

Better Auth publishes an llms.txt index but no llms-full.txt, so docspack build follows the index and fetches each linked page. Use --pages to cap how many it retrieves.

$ npx docspack build better-auth \
    --name @better-auth-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 @better-auth-docs/docspack
$ npx docspack sync
$ npx docspack ask "auth"

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 Better Auth'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 Better Auth.

← All 27 curated sources