SamSamskies / PlebPay

PlebPay allows you to create Bitcoin ⚡️ paywalls for any Strike user.
https://plebpay.com
MIT License
50 stars 15 forks source link

PlebPay ⚡️

Create a paywall link for any Strike user. You specify the amount, title, and redirect URL and that's it. Takes like 10 seconds to create one. Try it out https://plebpay.com.

You can set a brand color for your paywall by adding a brandColor query param to your paywall link. You can use any valid CSS color value. You can also set the value to bitcoin which will set the brand color to the Bitcoin orange.

Here's some examples:

PlebPay is an example of an app that you can build quickly using the Strike API.

The plebpay-utils package can be used to protect a site with a specific PlebPay paywall.

A simple example of a site protected by a PlebPay paywall https://protected-by-plebpay-example.vercel.app/.

Getting Started with Development

This is a Next.js project bootstrapped with create-next-app.

Installation

npm install

Environment Variables

For local development, create a file called .env.local and add your Strike API key there. Take a look at the env.local.example to see required as well as optional env vars.

Run Dev Server

npm run dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying pages/index.js. The page auto-updates as you edit the file.

The pages/api directory is mapped to /api/*. Files in this directory are treated as API routes instead of React pages.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.