LaWallet
Guides

Client SDK & React Hooks

Roadmap notes for the planned SDK and React Hooks packages.

Overview

The current lawallet-nwc repository does not contain a published client SDK or React Hooks 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.


Current Reality

If you are integrating with the repo today:

  • Call the REST API directly
  • Use the server-side helpers already present in lib/
  • Refer to the API Reference for the routes that currently exist
  • Treat everything below as planned work, not shipped packages

Planned TypeScript Client SDK

The roadmap calls for a standalone client package that would eventually cover:

  • Authentication helpers around the current JWT flow
  • Lightning address management
  • NWC connection management
  • Card and card-design operations
  • Later roadmap additions such as redirects, webhooks, and payment verification

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