Repository navigation
feat: Extensions for all - #4021
Merged
Merged
Conversation
motorina0
commented
Jun 23, 2026
This comment was marked as resolved.
This comment was marked as resolved.
motorina0
force-pushed
the
extensions_for_all
branch
from
June 30, 2026 12:10
864947e to
f4cb8a6
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## dev #4021 +/- ##
==========================================
+ Coverage 56.50% 65.37% +8.87%
==========================================
Files 123 157 +34
Lines 16914 22351 +5437
==========================================
+ Hits 9557 14612 +5055
- Misses 7357 7739 +382 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
motorina0
force-pushed
the
extensions_for_all
branch
from
July 1, 2026 13:57
07a4dbb to
6702c16
Compare
motorina0
commented
Jul 2, 2026
| </style> | ||
| {% endblock %} {% block page_container %} | ||
| <q-page-container> | ||
| <!-- # todo:revisit this --> |
motorina0
marked this pull request as ready for review
July 10, 2026 07:39
Collaborator
Author
|
WASM sample extensions manifests:
Todo:
|
Member
|
A reliable prompt |
dni
reviewed
Jul 13, 2026
| async def update_installed_extension_wasm_runtime_limits( | ||
| *, ext_id: str, limits: dict, conn: Connection | None = None | ||
| ) -> None: | ||
| if not await _has_installed_extension_wasm_runtime_limits_column(conn=conn): |
Member
There was a problem hiding this comment.
this is incorrect, it just checks, if the core version >= 48... which has obviously ran, when installing this update.
dni
reviewed
Jul 13, 2026
1 of 3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a WASM extension framework for LNbits, allowing third-party extensions to run in a constrained runtime with explicit install-time permissions, sandboxed UI rendering, scoped storage, and host-mediated access to
LNbits functionality.
Backend request flow
Frontend
Frontend Request flow:
What Changed
Added
lnbits/core/wasm_extwith:wasmtimeExtensionHostAPIhost functions for storage, wallets, utilities, HTTP, and extension-to-extension calls/ext-frame/...pagesAdded WASM extension install/activation support:
extension_type: "wasm"detectioninstalled_extensions.permissions/ext/{ext_id}Added sandboxed WASM UI support:
/ext/.../ext-assets/{ext_id}/...Added extension permissions UI:
Added WASM host capabilities:
extension.api.requestfor allow-listed extension callshttp.requestfor allow-listed external HTTPS originsAdded invoice-paid event dispatch:
Added tooling and tests:
tools/codegenmake test-wasm-e2eSecurity Notes