feat(extensions): add extension loader infrastructure #3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/extension-loader"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Key Components
src/extensions/types.ts- Core extension interfacessrc/extensions/loader.ts- Extension discovery, loading, and lifecycle managementsrc/extensions/context.ts- Bridge between extensions and Lightning.Pub servicessrc/extensions/database.ts- SQLite isolation with WAL modesrc/extensions/README.md- Full documentation with examplesExtensionContext API
getApplication()createInvoice()payInvoice()getLnurlPayInfo()sendEncryptedDM()publishNostrEvent()registerMethod()onPaymentReceived()onNostrEvent()Test plan
src/extensions/directory🤖 Generated with Claude Code
c4edcb114dtoeb0278a82ceb0278a82cto492fb8981a492fb8981atoc308d4be785cc7f3998ctoa574a5b817