getAlby / bitcoin-connect

Connecting lightning wallets to your webapp has never been easier. Enable WebLN in all browsers with a single button
https://bitcoin-connect.com
MIT License
90 stars 31 forks source link

Reduce bundle size #45

Open rolznz opened 1 year ago

rolznz commented 1 year ago

From https://github.com/hzrd149/nostrudel/pull/11

Currently we depend on nostr-tools and some other packages, which are more bloated than necessary. We might be able to replace these with more cut-down versions or implement the code ourselves.

This will get worse when we add further integrations which require their own packages such as LNC.

rolznz commented 11 months ago

Main issues:

The above need to be done in Bitcoin Connect, alby JS SDK and lightning tools.

rolznz commented 11 months ago

We can upload the browserify builds to the release instead.

But actually something like skypack should be used? https://github.com/getAlby/bitcoin-connect/issues/85

rolznz commented 11 months ago

Currently the package size is 6.04MB. We should try to get it less than 1MB.