Awesome stuff! Wondering whether it would be interesting to add the ability for the funding to "trickle down". The package developer could add a `recursive` property in the package.json funding area, which would be a decimal between 0 and 1 describing how much of any received funding would be automatically sent further down to other packages devs.

It could be achieved even more granularly by combining PkgZap with ZapSlitter.

Reply to this note

Please Login to reply.

Discussion

Amazing idea. It would be great to have a showcase for this.

I created an issue here: https://github.com/getAlby/pkgzap/issues/59

The library has support to decide the depths you want to load (meaning to also get the dependencies of a dependency).

In the CLI we do not set this for simplicity reasons. the user would need to be asked another question.

but it can easily be changed here:

https://github.com/getAlby/pkgzap/blob/main/cli/bin/index.js#L112

And yeah, with the lightning prism idea the package developer already can pass on the payment and split up received payments. So I think ideally this would be the way to go?