My latest project has been a tool that allows you to monetize your open-source code with a one-time paywall. It works like this, you share the provided link which leads to a paywall, after successful payment, we send an invite to the repo on your behalf.
Signup up at GitPayments if your interested.