LaWalletdocs
Guides

Client SDK & React Hooks

Roadmap notes for the planned SDK and React Hooks packages.

Expected · June 2026

Status

React components and hooks already live in the codebase under apps/web/components/ and apps/web/lib/client/hooks/. They still need to be extracted and published as a standalone npm package — that migration is targeted for June 2026.

Overview

The current lawallet-nwc repository does not yet ship a published client SDK or React Hooks npm package.

This page documents the intended SDK and hooks direction described in the roadmap so the planned API surface stays visible while implementation catches up.


Planned React Hooks Package

The roadmap also calls for a React hooks package built on top of that SDK.

Planned hook areas:

HookPurposeMonth
useAddressCRUD single lightning address2
useAddressesList/search/filter with pagination2
useNWCConnectionConnect, disconnect, status polling2
useAuthNIP-98 to JWT session flow2
useWalletWallet status and NWC state2
useCourtesyNWCCourtesy NWC via lncurl3
useWebhooksWebhook management5
useRedirectRedirect configuration5

Lifecycle

MonthSDK MilestoneHooks Milestone
2Core auth, address, and NWC coverage.Base hooks for auth and address flows.
3Frontend adoption and courtesy-NWC support.Add useCourtesyNWC.
5Redirect, webhook, and verification methods.Expand hooks to match the newer API surface.
6Full docs + API reference.Full docs + usage examples.

On this page