{"id":21529667,"url":"https://github.com/samsamskies/lnurl-zap","last_synced_at":"2026-01-24T20:54:16.990Z","repository":{"id":252687668,"uuid":"841156230","full_name":"SamSamskies/lnurl-zap","owner":"SamSamskies","description":"Generate LNURLs for Nostr events.","archived":false,"fork":false,"pushed_at":"2024-08-12T01:11:17.000Z","size":70,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-21T20:08:49.002Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SamSamskies.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2024-08-11T19:59:51.000Z","updated_at":"2024-08-30T12:45:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"3df3d3af-c772-4268-9d51-af73efc2e17b","html_url":"https://github.com/SamSamskies/lnurl-zap","commit_stats":null,"previous_names":["samsamskies/lnurl-zap"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/SamSamskies/lnurl-zap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamSamskies%2Flnurl-zap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamSamskies%2Flnurl-zap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamSamskies%2Flnurl-zap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamSamskies%2Flnurl-zap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SamSamskies","download_url":"https://codeload.github.com/SamSamskies/lnurl-zap/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamSamskies%2Flnurl-zap/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28736791,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T19:23:36.361Z","status":"ssl_error","status_checked_at":"2026-01-24T19:23:28.966Z","response_time":89,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2024-11-24T01:58:36.732Z","updated_at":"2026-01-24T20:54:16.986Z","avatar_url":"https://github.com/SamSamskies.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nostr-build\n[![NPM](https://img.shields.io/npm/v/lnurl-zap.svg)](https://www.npmjs.com/package/lnurl-zap)\n\nGenerate LNURLs for Nostr events.\n\n## Installation\n\nInstall the package with:\n\n```bash\nnpm i lnurl-zap\n# or\nyarn add lnurl-zap\n```\n\n## Usage\n\n### encodeLnurl\n\nAllows you to create LNULs for Nostr events.\n\n```\nid: string; // Any Nostr ID e.g. note ID, npub, nevent, etc.\nlnurlZapServerBaseUrl?: string // Base URL for LNURL server endpoint that broadcasts anonymous zaps when LNURLs are paid. Defaults to https://lnurlzap.com/api/zap. \n\n@returns string // e.g. LNURL1DP68GURN8GHJ7MRWW4EXC7NPWQH8VETJVDJKCTNPWPCZ7CTSDYHH5CTS9AH8QATZX9M8QWRXV33HJET2VS68QUT209EX56EEWDNH5D3CWE6KSUFHWPUHVMN6DVUX5VR9DPKXC6NKWANHQWRWXEJHZUMJDEC8XACJW3JE6\n```\n\nExample:\n\n```js\nimport { encodeLnurl } from \"lnurl-zap\";\n\nconsole.log(encodeLnurl('npub1vp8fdcyejd4pqjyrjk9sgz68vuhq7pyvnzk8j0ehlljvwgp8n6eqsrnpsw'))\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamsamskies%2Flnurl-zap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamsamskies%2Flnurl-zap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamsamskies%2Flnurl-zap/lists"}