Skip to content

feat: support for wasm extension bridge#3814

Draft
arcbtc wants to merge 4 commits intodevfrom
wasm_minimal
Draft

feat: support for wasm extension bridge#3814
arcbtc wants to merge 4 commits intodevfrom
wasm_minimal

Conversation

@arcbtc
Copy link
Copy Markdown
Member

@arcbtc arcbtc commented Feb 25, 2026

Facilitates https://github.com/lnbits/wasm parent extension
Once WASM extension is installed extensions like https://github.com/lnbits/paidtasks can be vibe coded, not vetted and shared safely.

In two minds over this pr/concept.

  • Extensions with permissions is very useful
  • Giving permission for spending can cause a lot of damage and having as a wasm makes it impossible to review
  • The wasm not having access to system files, envs and having its processing restricted adds a lot of value.
  • Building an extension using the extension builder and python in MUCH easier (maybe the wasm framework just needs a little more work to be made easier)

@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 11, 2026

Codecov Report

❌ Patch coverage is 10.63830% with 84 lines in your changes missing coverage. Please review.
✅ Project coverage is 56.20%. Comparing base (1f98aa2) to head (3aa01d9).

Files with missing lines Patch % Lines
lnbits/app.py 5.26% 36 Missing ⚠️
lnbits/core/helpers.py 4.16% 23 Missing ⚠️
lnbits/core/views/extension_api.py 11.53% 23 Missing ⚠️
lnbits/tasks.py 33.33% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #3814      +/-   ##
==========================================
- Coverage   56.44%   56.20%   -0.25%     
==========================================
  Files         123      123              
  Lines       16943    17037      +94     
==========================================
+ Hits         9564     9576      +12     
- Misses       7379     7461      +82     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

add wasmtime


bundle


mypy fix


mypy


mypy


pyright


pyright


pyright


make


lock file
@arcbtc arcbtc marked this pull request as ready for review March 11, 2026 23:47
@arcbtc arcbtc changed the title feat: minimal settings for wasm extension bridge feat: support for wasm extension bridge Mar 12, 2026
@motorina0 motorina0 marked this pull request as draft March 19, 2026 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant