{"id":13790543,"url":"https://eth-button.github.io/eth-button/","last_synced_at":"2025-05-12T09:32:47.276Z","repository":{"id":215872942,"uuid":"115675740","full_name":"eth-button/eth-button","owner":"eth-button","description":"A simple way to accept donations with Ethereum","archived":false,"fork":false,"pushed_at":"2018-01-22T08:28:31.000Z","size":58,"stargazers_count":31,"open_issues_count":1,"forks_count":17,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-18T05:38:08.824Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/eth-button.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}},"created_at":"2017-12-29T01:59:27.000Z","updated_at":"2021-11-30T22:51:17.000Z","dependencies_parsed_at":"2024-01-28T16:53:31.117Z","dependency_job_id":null,"html_url":"https://github.com/eth-button/eth-button","commit_stats":null,"previous_names":["eth-button/eth-button"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eth-button%2Feth-button","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eth-button%2Feth-button/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eth-button%2Feth-button/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eth-button%2Feth-button/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eth-button","download_url":"https://codeload.github.com/eth-button/eth-button/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253709357,"owners_count":21951124,"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":"2024-08-03T22:00:46.340Z","updated_at":"2025-05-12T09:32:46.897Z","avatar_url":"https://github.com/eth-button.png","language":"JavaScript","funding_links":[],"categories":["Roadmap"],"sub_categories":[],"readme":"[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)\n\n# eth-button\n\nA simple way to receive Ether donations.  Works with Mist and MetaMask.\n\nCheck the [github pages](https://eth-button.github.io/eth-button/) for more information.\n\n## Usage\n\nAdd script tag where you want the UI to appear:\n\n```\n\u003cscript\n  type=\"text/javascript\"\n  src=\"https://cdn.rawgit.com/eth-button/eth-button/09673e85d517452e18a5248b96115bc552a0ac01/dist/eth-button.js\"\n  data-address=\"{YOUR ETHEREUM ADDRESS}\"\n  data-meta=\"eth-button\"\u003e\n\u003c/script\u003e\n```\n\nYou should be able to copy and paste the above, replacing only the `YOUR ETHEREUM ADDRESS` with your public Ethereum address.  Or, you can use the generator on the [documentation site.](https://eth-button.github.io/eth-button/)\n\nDetails:\n\n* `data-address` - This parameter is required.  This is the address you would like to receive donations with.\n* `data-meta` - This parameter is required.  Copy and paste it from above.\n* `src` - The above should always include a direct link to the minified script.\n  * You should always link directly to git hashes, for security reasons.  Git tags can be changed, but git commit hashes will always point to a specific version of code.\n\n## Advanced Usage\n\nIf you would like to customize the styles, please take a look at [styles.js](https://github.com/eth-button/eth-button/tree/master/lib/styles.js).  These styles will be added to the `head` of the page, unless a `style` tag with the id `EthButtonStyles` already exists.  To load custom styles, either add your own `style` tag with the id `EthButtonStyles`, or extend the existing styles with your own CSS rules.\n\nIf you prefer to not trust minified code (totally fair), you can fork this repository, build your own, and host it yourself.\n\n## Building\n\nInstall dependencies with `npm install`.  All dependencies are installed locally and should be version locked.\n\nTo build the code, run `npm run webpack`.  This will write a new version to `dist/eth-button.js`.\n\nTo test changes locally, try running `npm run dev`.  This will start a `webpack-dev-server` instance and serve the whole directory on `localhost` at port `8080`.  You can then visit `http://localhost:8080/examples/demo.html` to view changes live.  `webpack-dev-server` will auto-reload the page when you make changes to the source files.\n\nYou can also run your own `ganache-cli` instance with `npm run testrpc`.  This will autogenerate a few addresses that can be accessed via [MetaMask](https://metamask.io).  The default address in `demo.html` is the second of such addresses.  The `ganache-cli` instance is configured with a deterministic seed and automining with a blocktime of 14 seconds.\n\n## Bugs\n\nIf you find a bug, or would like to see a feature implemented, please open an issue in the github repository.  Pull requests are also always welcome!\n\n## Documentation\n\nSee the [github pages.](https://eth-button.github.io/eth-button/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/eth-button.github.io%2Feth-button%2F","html_url":"https://awesome.ecosyste.ms/projects/eth-button.github.io%2Feth-button%2F","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/eth-button.github.io%2Feth-button%2F/lists"}