Contributing
Set up the workspace, make a focused change, and run the repository checks.
Set up the workspace
bun install
bun run devThe repository uses Bun 1.3.14 and Turborepo. The docs run at http://domain-sdk.localhost:1355 through the sudo-free Portless proxy.
Work in the right package
packages/sdkcontains the public client, normalized types, adapters, and tests.apps/fumadocscontains the docs and landing page.packages/configcontains shared TypeScript and lint configuration.
Keep changes focused. Preserve existing provider boundaries and do not add placeholder adapters, speculative options, or network-dependent tests.
Test provider changes
Provider tests belong in packages/sdk/test/providers. Use an injected fetch fixture for every provider request; tests must not require credentials or internet access. Cover request paths, response normalization, idempotent add/remove behavior, malformed responses, and normalized errors.
cd packages/sdk
bun test
bun run check-types
bun run lint
bun run buildTest documentation changes
Check generated MDX types and the production build before opening a pull request.
cd apps/fumadocs
bun run check-types
bun run lint
bun run buildRun the full repository checks
bun run test
bun run typecheck
bun run lint
bun run buildOpen a pull request that explains the behavior change, provider API assumptions, and validation you ran. Include screenshots for visible docs or landing-page changes.
