Skip to content

mysilio-co/solid-monetize

Repository files navigation

solid-monetize

Get paid for your Web content with Solid and Web Monetization

what's this?

solid-monetize combines Inrupt's lit-podsolid-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)
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published