I had a silly idea like 6 months ago:
A PWA framework that pulls in functions from nostr events.
Functions can call other functions from other events by including the event ID.
Apps can then be composed from events, and maybe even composed dynamically on the fly based on user input or usage patterns.
Each event could have a LUD16 or whatever and the author gets 1 sat or whatever every time it's run.