@basetime/a2w-webview-ts
v1.0.2
Published
SDK for webview apps running inside the Addtowallet scanner.
Keywords
Readme

Full documentation: https://basetime.github.io/a2w-webview-ts/
SDK for webview apps running inside the Addtowallet scanner.
@basetime/a2w-webview-ts is a TypeScript SDK for embedded webview apps in the Addtowallet scanner:
- WebApp bridge: Subscribe to scanner events (
scan,standby,error) and send commands (navigate,settings) via a typedWebAppclass. - React hooks: Optional
/reactsubpath withuseEventanduseWebAppfor React-based embedded UIs. - Boot lifecycle: Synthetic
bootevent for reliable embedded detection on older Android WebView runtimes.
Documentation
| Topic | Link | | --------------- | ---------------------------------------------------------------------- | | Getting started | Introduction | | Installation | Installation | | Usage | Usage | | React | React | | Events | Events | | Migration | Migration Guide |
Canonical docs live in docs/. Edit those pages directly, then run pnpm docs:build:nav to refresh the VitePress sidebar.
Development
pnpm install
pnpm test
pnpm docs:serve # VitePress dev server with nav watcher
pnpm docs:build # production docs buildLicense
UNLICENSED
