{"id":19952891,"url":"https://github.com/ethersphere/swarm-donation","last_synced_at":"2025-07-29T19:09:13.503Z","repository":{"id":211106435,"uuid":"715009332","full_name":"ethersphere/swarm-donation","owner":"ethersphere","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-05T20:08:16.000Z","size":88,"stargazers_count":1,"open_issues_count":2,"forks_count":1,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-01-12T06:27:19.758Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ethersphere.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-11-06T09:52:02.000Z","updated_at":"2024-03-30T22:23:00.000Z","dependencies_parsed_at":"2023-12-06T14:50:08.720Z","dependency_job_id":null,"html_url":"https://github.com/ethersphere/swarm-donation","commit_stats":null,"previous_names":["ethersphere/swarm-donation"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethersphere%2Fswarm-donation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethersphere%2Fswarm-donation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethersphere%2Fswarm-donation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethersphere%2Fswarm-donation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ethersphere","download_url":"https://codeload.github.com/ethersphere/swarm-donation/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241381646,"owners_count":19953751,"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-11-13T01:14:42.387Z","updated_at":"2025-03-01T15:17:15.661Z","avatar_url":"https://github.com/ethersphere.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Swarm Donation web component\n\nThis is a simple widget that can be added to any HTML page. It renders an element that prints the time-to-live of the postage stamp that was used to upload the resource to the Swarm network, along with an arbitrary Ethereum address.\n\nThe component gives readers two options to support the author:\n\n-   Sending tips to the Ethereum address\n-   Topping up the postage stamp, lengthening the hosting\n\n## Swarm network\n\nSwarm is a peer-to-peer network of Bee nodes that collectively provide censorship resistant decentralised storage and communication services.\n\n## Example Usage\n\nReplace `\u003cethereumAddress\u003e` and `\u003cstamp\u003e`. When built into static site generators, these steps should be handled automatically for the end user.\n\n```\n\u003cdiv id=\"donation\"\u003e\u003c/div\u003e\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/swarm-donation@4.0.0\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n   renderSwarmDonation('donation', '\u003cethereumAddress\u003e', '\u003cstamp\u003e')\n\u003c/script\u003e\n```\n\n## Recommended Usage\n\nUpload the `js` file to the Swarm network, and refer that instead of the CDN.\n\n## Etherjot\n\nThis web component is also available as an extension in [Etherjot](https://github.com/ethersphere/etherjot-web).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fethersphere%2Fswarm-donation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fethersphere%2Fswarm-donation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fethersphere%2Fswarm-donation/lists"}