{"id":22214570,"url":"https://github.com/getalby/zap-button","last_synced_at":"2025-07-27T12:32:05.287Z","repository":{"id":201044283,"uuid":"706823308","full_name":"getAlby/zap-button","owner":"getAlby","description":"Bringing zaps truly out of nostr!","archived":false,"fork":false,"pushed_at":"2023-10-19T14:48:40.000Z","size":457,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-30T15:59:52.514Z","etag":null,"topics":["bitcoin","lightning","nostr"],"latest_commit_sha":null,"homepage":"","language":"CSS","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/getAlby.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}},"created_at":"2023-10-18T17:26:20.000Z","updated_at":"2023-11-11T19:07:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"9924f0cd-dfb7-48ed-a7e1-29d1b30c7575","html_url":"https://github.com/getAlby/zap-button","commit_stats":null,"previous_names":["getalby/zap-button"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getAlby%2Fzap-button","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getAlby%2Fzap-button/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getAlby%2Fzap-button/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getAlby%2Fzap-button/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/getAlby","download_url":"https://codeload.github.com/getAlby/zap-button/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227802812,"owners_count":17822113,"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":["bitcoin","lightning","nostr"],"created_at":"2024-12-02T21:17:08.120Z","updated_at":"2024-12-02T21:17:09.127Z","avatar_url":"https://github.com/getAlby.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg width=\"100%\" src=\"docs/header.png\"\u003e\n\u003c/p\u003e\n\n# zap-button\n\nReact component that allows you to integrate a zap button into your web application, and help zap people on nostr using their lightning address.\n\n⚠️ Best used alongside [Bitcoin Connect](https://github.com/getAlby/bitcoin-connect)\n\n## 🚀 Quick Start\n\n```\nnpm install @getalby/zap-button\n```\n\n## 🤙 Usage\n\n### `ZapButton`\n\n\n```jsx\nimport React, { useEffect, useState } from 'react';\nimport { Button, Modal } from '@getalby/bitcoin-connect-react';\nimport { ZapButton } from 'zap-button';\n\nconst MyComponent = () =\u003e {\n  const lnurl = 'hello@getalby.com';\n  const [connected, setConnected] = useState(false)\n\n  useEffect(() =\u003e {\n    window.addEventListener(\"bc:connected\", () =\u003e {\n      setConnected(true)\n    });\n  }, [])\n\n  return (\n    \u003cdiv\u003e\n      \u003ch1\u003eMy Zapping App\u003c/h1\u003e\n      \u003cdiv\u003e\n        \u003cModal /\u003e\n        \u003cButton /\u003e\n      \u003c/div\u003e\n\n      \u003cZapButton lnurl={lnurl} activate={connected}/\u003e\n    \u003c/div\u003e\n  );\n};\n\nexport default MyComponent;\n```\n\nAnd Zap Button component would be embedded like this:\n\n\u003cimg src=\"docs/zap-button.png\" height=\"50\"\u003e\n\n## Thanks\n\n@bigyanpoudel for https://github.com/bigyanpoudel/react-vite-library","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetalby%2Fzap-button","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgetalby%2Fzap-button","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetalby%2Fzap-button/lists"}