Scheduled recurring lightning payments powered by Nostr Wallet Connect (NWC)
Try it here: https://zapplanner.albylabs.com/
As a service you can programmatically create a URL with all the subscription properties that your users will only need to confirm:
https://zapplanner.albylabs.com/confirm?amount=21&[email protected]&timeframe=30d&comment=baz&payerdata=%7B%22name%22%3A%22Bob%22%7D&returnUrl=https%3A%2F%2Fexample.com
amount
,recipient
,timeframe
are requiredamount
is in satsrecipient
must be a lightning addresstimeframe
must be in milliseconds, or a valid ms string e.g.1d
,30%20minutes
payerdata
should be a URL-encoded JSON object as per LUD-18comment
andpayerdata
will only be sent if the recipient lightning address supports itreturnUrl
encoded URL to show as link on confirmation page
Run $ yarn install
Run $ cp .env.example .env.local && husky install
note: if .env.local does not work for you, as a temporary solution try renaming it to .env
Run $ yarn cloak:generate
and set PRISMA_FIELD_ENCRYPTION_KEY=<CLOAK_MASTER_KEY>
in .env.local
Run $ yarn docker:start
Run $ yarn db:migrate:deploy
Unless you already have it, create the database with: $ createdb boostagram-viewer
Make sure to set your Postgres username and password in .env.local
. To list Postgres users, open $ psql
followed by > \du
. To set no password, leave it empty like this: postgres://username:@localhost...
.
Run $ yarn db:migrate:deploy
Run $ yarn docker:start
Run $ yarn inngest:local
Run $ yarn dev
Run $ yarn inngest:local
Run $ yarn dev
This is a Next.js project bootstrapped with create-next-app
.
ZapPlanner is a serverless application that uses Inngest to power its background jobs.