{"id":27054798,"url":"https://github.com/bitkarrot/plebnetlink","last_synced_at":"2025-06-15T07:36:34.783Z","repository":{"id":218338531,"uuid":"742641755","full_name":"bitkarrot/plebnetlink","owner":"bitkarrot","description":"Plebnet.link  - this ia modified clone of Satspay Session","archived":false,"fork":false,"pushed_at":"2024-05-06T21:15:03.000Z","size":648,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-06T22:27:54.625Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://plebnetlink.vercel.app","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bitkarrot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-12T23:56:14.000Z","updated_at":"2024-05-06T22:27:57.664Z","dependencies_parsed_at":"2024-01-21T10:31:29.190Z","dependency_job_id":"07deaf46-765d-4c0b-b223-37eebac56a5b","html_url":"https://github.com/bitkarrot/plebnetlink","commit_stats":null,"previous_names":["bitkarrot/plebnetlink"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitkarrot%2Fplebnetlink","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitkarrot%2Fplebnetlink/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitkarrot%2Fplebnetlink/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitkarrot%2Fplebnetlink/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitkarrot","download_url":"https://codeload.github.com/bitkarrot/plebnetlink/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247312053,"owners_count":20918344,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-04-05T09:17:06.953Z","updated_at":"2025-04-05T09:17:07.452Z","avatar_url":"https://github.com/bitkarrot.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Plebnet.link \n\n- this ia modified clone of Satspay Session\n\nThis micro app delivers a custom Invoice amount from the SatsPayExtension fron LNbits via an FastAPI endpoint.\n\nWhy do this? Because we want to be able to specify a lightning invoice in sats with the USD amount (or any other fiat equivalent amount) with a link instead of creating it manually from within the LNBits web interface. \n\nThis is a personal service, so in order to use it with your LNBits account you'll need to put in your credentials and then 1 Click deploy to vercel ( See below ) or self host it yourself.\n\n### Flow Diagram:\n\nCreate LINK ---\u003e convert fiat amt to sats, add optional message  ----\u003e \n\n----\u003e forward to SatsPayServer on LNBits --\u003e Display Timed QR Code\n\n\n### LINK Pattern:\nhttps://pblink.vercel.app/fiat/{currency}/amt/{value}\n\n### Example: \n\n\u003cimg width=\"525\" alt=\"Screenshot 2023-06-19 at 2 26 50 PM\" src=\"https://github.com/lightningames/satspaysession/assets/73979971/661cdc20-417d-472b-8870-e5f4898ee518\"\u003e\n\nThis is a live example, where the repo is deployed at satspaylink.vercel.app and the user specifies currency type and amount at the url: \n\nhttps://pblink.vercel.app/fiat/usd/amt/100 \n\nThe above link, given the parameters of 100 USD, will calculate the equivalent amount of sats and \nthen redirect the user to a lightning invoice created by the satspayserver extension.\n\nClicking on the above link will redirect to the lnbits satspay extension with the lightning invoice conversion automatically. \n\n\u003cimg width=\"545\" alt=\"Screenshot 2023-06-08 at 10 29 07 AM\" src=\"https://github.com/bitkarrot/satspaysession/assets/73979971/e958e4a7-779c-443d-82cf-842ad181eb86\"\u003e\n## Environment variables\n\nFor More information about how SatsPay Server works in LNBits, please visit the [extension page](https://github.com/lnbits/satspay)\nand the [LNbits.com website](https://lnbits.com)\n\nset your LNBits environment variables in vercel\n\n```sh\nLNBITS_WALLET='your data here'\nONCHAIN_WALLET='your data here'\nLNBITS_URL='https://legend.lnbits.com'\nINVOICE_API_KEY='your data here'\nWEBHOOK='https://yoururlhere.com'\n```\n\n```\n  headers =  {\n          \"Content-Type\": \"application/json\",\n          \"X-Api-Key\": INVOICE_API_KEY,\n        }\n```\n\n## Json passed in body \n```\n{\n  \"onchainwallet\": \"string\",\n  \"lnbitswallet\": \"string\",\n  \"description\": \"string\",\n  \"webhook\": \"string\",\n  \"completelink\": \"string\",\n  \"completelinktext\": \"string\",\n  \"custom_css\": \"string\",\n  \"time\": 1,\n  \"amount\": 1,\n  \"extra\": \"{\\\"mempool_endpoint\\\": \\\"https://mempool.space\\\", \\\"network\\\": \\\"Mainnet\\\"}\"\n}\n```\n\n\n# FastAPI + Vercel\n\nThis example shows how to use FastAPI on Vercel with Serverless Functions using the [Python Runtime](https://vercel.com/docs/concepts/functions/serverless-functions/runtimes/python).\n\n## 1-Click Deploy to Vercel \n\n[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fbitkarrot%2Fplebnetlink\u0026env=LNBITS_WALLET,ONCHAIN_WALLET,LNBITS_URL,WEBHOOK,INVOICE_API_KEY)\n\n\n## To install\n\n```sh\npython3 -m venv venv \nsource venv/bin/activate\npip install -r requirements.txt\n```\n\n## To run this app locally\n\n```sh\nuvicorn src.app:app --reload\n```\n\n### running with ssl cert\n\n```sh\nopenssl req -x509 -newkey rsa:4096 -nodes -out cert.pem -keyout key.pem -days 365\n```\n\nthen \n\n```sh\nuvicorn src.app:app --ssl-keyfile key.pem --ssl-certfile cert.pem\n```\n\nYour application is now available at `http://localhost:8000`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitkarrot%2Fplebnetlink","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitkarrot%2Fplebnetlink","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitkarrot%2Fplebnetlink/lists"}