Skip to content

feat: add lite version for non-WASM environments#4

Draft
agessaman wants to merge 1 commit intomichaelhart:mainfrom
agessaman:main
Draft

feat: add lite version for non-WASM environments#4
agessaman wants to merge 1 commit intomichaelhart:mainfrom
agessaman:main

Conversation

@agessaman
Copy link

Pure JS build that works without WASM or Web Crypto API:

  • Works in insecure contexts (HTTP pages)
  • Uses crypto-js for SHA-512 instead of crypto.subtle
  • Standalone bundle: meshcore-lite.min.mjs (120kb)
  • Import from '@michaelhart/meshcore-decoder/lite'

I had to put this together for the bot, which often runs on localhost and doesn't use HTTPS. It's yours if you want it.

Pure JS build that works without WASM or Web Crypto API:
- Works in insecure contexts (HTTP pages)
- Uses crypto-js for SHA-512 instead of crypto.subtle
- Standalone bundle: meshcore-lite.min.mjs (120kb)
- Import from '@michaelhart/meshcore-decoder/lite'
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