Skip to content

@anvilresearchlabs/sdk API reference

The SDK grouped by the import path each part comes from. Start from the entry point your code imports: each group’s overview explains how its APIs fit together, and the sidebar lists them by group and kind.

@anvilresearchlabs/sdk/core

Import from @anvilresearchlabs/sdk/core. The protocol surface with no React dependency: the AnvilSDK class and its namespaced operations (sdk.loc, sdk.vault, sdk.pricing, sdk.tokens). The package root, @anvilresearchlabs/sdk, exports exactly the same surface.

@anvilresearchlabs/sdk/react

Import from @anvilresearchlabs/sdk/react. Headless hooks and the AnvilProvider for React integration. UI components are not part of this entry point — import them from @anvilresearchlabs/sdk/components.

@anvilresearchlabs/sdk/components (beta)

Import from @anvilresearchlabs/sdk/components. The beta UI components and the browser helper that ships beside them. Render them under the AnvilProvider from @anvilresearchlabs/sdk/react.

  • React components: Beta components that drop a whole LOC flow into a React app, and the helper that ships beside them.

A–Z

The complete API index lists the reference alphabetically, for when you know the exact name.