Contributing
Bug reports, fixes and documentation improvements are welcome. Report a bug with the issue templates.
Set up
You need Bun 1.4.4 or newer. iOS work needs Xcode 27; Android work needs the Android SDK and NDK that NitroUI requires.
bun install # links the workspace, generates bindings and prepares the example
| Path | Contents |
|---|---|
packages/nitro-local-auth/src | The TypeScript API and the LocalAuthentication.nitro.ts Nitro spec. |
packages/nitro-local-auth/ios | The Swift implementation, on LocalAuthentication. |
packages/nitro-local-auth/android/src/main/java/… | The Kotlin implementation, on the framework BiometricPrompt. |
example | A NitroUI app that shows every value and prompts, and native tests. |
website | This documentation site (Docusaurus). |
After changing LocalAuthentication.nitro.ts or a type in src/types, regenerate the bindings with bun run specs. Never edit nitrogen/generated.
Checks
CI runs these on every pull request. Run them before you push:
bun run lint
bun run format:check # `bun run format` fixes formatting
bun run typecheck
Native behaviour is covered by harness tests in the example app.
Documentation site
The site lives in website/ and installs on its own, outside the root workspaces:
cd website
bun install
bun run start # dev server with live reload
bun run typecheck
bun run build # fails on broken links and anchors
API pages mirror the doc comments in packages/nitro-local-auth/src; update both when a spec changes. The changelog page renders packages/nitro-local-auth/CHANGELOG.md directly.