Giter Site home page Giter Site logo

juanangel / nextpay Goto Github PK

View Code? Open in Web Editor NEW

This project forked from apotdevin/nextpay

0.0 1.0 0.0 876 KB

Your very own LNURL-Pay server built on NextJS.

Home Page: https://nextpay.apotdevin.com

License: MIT License

JavaScript 12.98% TypeScript 85.57% Shell 1.45%

nextpay's Introduction

NextPay

Your very own LnUrl-Pay server built on NextJS

What's this?

Deploy this server anywhere, connect to your lightning LND node and you get your own LnUrl-Pay server that others can use to pay you some sats! ๐Ÿค‘

What is LnUrl?

LNURL is a protocol that helps you interact with the lightning network without the need to have a back and forth conversation with whoever you want to pay with lightning.

With LnUrl-Pay, scan a QR code, say how much you want to pay and that's it! It's really that simple, no need to ask for an invoice and start copy pasting into your wallet.

Setup

Deploy this server anywhere, add some environment variables and you are good to go.

Deploy it for free on Vercel.

Environment Variables

# -----------
# Server Configs
# -----------
NAME = 'My NextPay' # Name that will appear in the card header

# -----------
# Value Configs
# -----------
MAX = 1000000 # Maximum amount of satoshis that can be paid
MIN = 1000 # Minimum amount of satoshis that can be paid

# -----------
# LND Configs
# -----------
LND_MACAROON = '02010230043...' # HEX Encoded Invoice Macaroon
LND_URL = 'https://127.0.0.1:8081' # Rest endpoint of your LND node

FAQ

Which macaroon is needed?

It's recommended that you use a macaroon that only has creating invoice permissions. The environment variables are never exposed to the public but better be safe than sorry.

Does my node need to be reachable from the internet?

Yes, your node must be reachable on the internet so that NextPay can connect to it from wherever it's deployed.

Do I always have the same LnUrl QR code?

Your QR code will always be the same! Download it, share it, print it, get a tattoo of it (maybe not), and whoever scans it will be able to pay you some sats.

Can I see an example?

Here you can check out my own NextPay server

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.