0.1.0 • Published 3 years ago
solid-monetize v0.1.0
solid-monetize
Get paid for your Web content with Solid and Web Monetization
what's this?
solid-monetize
combines Inrupt's lit-pod
solid-client
with
the revolutionary potential of Web Monetization to make it easy to monetize your content.
This library provides a single Javascript function that will pull your Interledger Payment Pointer from your Solid WebID Profile. To configure your payment pointer you can use Understory Garden or a number of other Solid applications.
how do I use it?
see the examples below
install in an existing project
npm install solid-monetize
examples
monetize a page in a Next.js app
Assuming you have configured your Solid Pod Profile with a Payment Pointer you can use the usePaymentPointer
hook to
create a meta tag that will monetize your page:
import { getPaymentPointer } from "solid-monetize"
function getMyPaymentPointer({}){
const webId = "https://travis.myunderstory.com/profile/card#me"
return getPaymentPointer(webId)
}
0.1.0
3 years ago