solid-monetize
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

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)
}

Readme

Keywords

none

Package Sidebar

Install

npm i solid-monetize

Weekly Downloads

1

Version

0.1.0

License

MIT

Unpacked Size

194 kB

Total Files

12

Last publish

Collaborators

  • tvachon