{"id":13714983,"url":"https://github.com/kewbish/revshare","last_synced_at":"2026-01-27T01:13:41.973Z","repository":{"id":159888564,"uuid":"263469319","full_name":"kewbish/revshare","owner":"kewbish","description":"A JS library for Web Monetization revenue splitting. #gftwhackathon Winner.","archived":false,"fork":false,"pushed_at":"2023-07-13T02:03:18.000Z","size":21,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-14T03:34:21.767Z","etag":null,"topics":["grant-for-the-web","monetization","revenue-sharing","web-monetization"],"latest_commit_sha":null,"homepage":"https://kewbi.sh/revshare","language":"JavaScript","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/kewbish.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}},"created_at":"2020-05-12T22:47:32.000Z","updated_at":"2024-06-17T00:23:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"4fa3fb32-4e6e-4b4c-8070-9044ad508e9b","html_url":"https://github.com/kewbish/revshare","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kewbish%2Frevshare","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kewbish%2Frevshare/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kewbish%2Frevshare/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kewbish%2Frevshare/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kewbish","download_url":"https://codeload.github.com/kewbish/revshare/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252806419,"owners_count":21807199,"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":["grant-for-the-web","monetization","revenue-sharing","web-monetization"],"created_at":"2024-08-03T00:00:52.702Z","updated_at":"2026-01-27T01:13:41.932Z","avatar_url":"https://github.com/kewbish.png","language":"JavaScript","funding_links":[],"categories":["Resources"],"sub_categories":["Packages"],"readme":"# Revshare.js 💸\n\nA JS library for revenue sharing. Made for the [#gftwhackathon](https://dev.to/devteam/announcing-the-grant-for-the-web-hackathon-on-dev-3kd1), won the [Grand Prize](https://dev.to/devteam/announcing-the-grant-for-the-web-x-dev-hackathon-winners-1nl4) as a Creative Catalyst.  \nAvailable on [NPM at @kewbish/revshare](https://www.npmjs.com/package/@kewbish/revshare).  \nMade in vanilla JS, May 2020.  \nCreated by [Kewbish](https://kewbi.sh).  \nReleased under the [MIT License](./LICENSE).\n\nSee the project [landing page](https://kewbi.sh/revshare). Issues and feature requests are welcome!\n\n## Installation Usage\n\nThis package is available on NPM at [@kewbish/revshare](https://www.npmjs.com/package/@kewbish/revshare).\n\n- Run `npm i @kewbish/revshare` to install it in your project.\n- It can then be referenced as below:\n\n```\n\u003cscript src=\"./node_modules/@kewbish/revshare/dist/index.min.js\"\u003e\u003c/script\u003e\n```\n\nAlternatively, add a `\u003cscript\u003e` tag in your `\u003chead\u003e`:\n\n```\n\u003cscript src=\"https://unpkg.com/@kewbish/revshare\"\u003e\u003c/script\u003e\n```\n\n## Basic Usage\n\nAdd a `\u003crev-share\u003e` tag anywhere in your body.  \nThis tag requires a `pointers` attribute, formatted in JSON.\n\n```\n...\n\u003crev-share pointers='{\"$john.wallet\": 50, \"$alicia.wallet\": 50}'\u003e\n    \u003cp\u003eThis is your revenue-shared content!\u003c/p\u003e\n\u003c/rev-share\u003e\n...\n```\n\nAdditional documentation can be found [in the `docs` folder](./docs/README.md).\n\n\u003e :warning: This rev-share specification is done probablistically nature due to limitations of the Web Monetization protocol.\n\n## About\n\nThis project is based on the [proposed Web Monetization protocol](https://webmonetization.org/). It's a browser API which allows the creation of a payment stream from the user agent to the website. Currently, this isn't implemented in any major browsers, but is available through an extension or a custom browser. [Check out Coil.com for more.](https://coil.com).\n\nThis project was created for, and won, the [#gftwhackathon](https://dev.to/t/gftwhackathon).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkewbish%2Frevshare","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkewbish%2Frevshare","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkewbish%2Frevshare/lists"}