{"id":13715004,"url":"https://github.com/uchibeke/react-web-monetization-meta","last_synced_at":"2025-05-07T03:31:07.879Z","repository":{"id":57347650,"uuid":"277960651","full_name":"uchibeke/react-web-monetization-meta","owner":"uchibeke","description":"A Web Monetization meta manager for React. It takes a Payment pointer and outputs plain HTML Web monetization meta tag. It's dead simple, and React beginner-friendly.","archived":false,"fork":false,"pushed_at":"2023-07-15T03:22:47.000Z","size":1304,"stargazers_count":4,"open_issues_count":7,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-29T11:44:44.967Z","etag":null,"topics":["blockchain","coil","interledger","meta","monetization","payment","react","web","webmonetization"],"latest_commit_sha":null,"homepage":"","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/uchibeke.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","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},"funding":{"github":["uchibeke"],"patreon":null,"open_collective":"africahacks","ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2020-07-08T01:33:51.000Z","updated_at":"2023-12-29T12:36:03.000Z","dependencies_parsed_at":"2024-11-14T03:30:59.676Z","dependency_job_id":null,"html_url":"https://github.com/uchibeke/react-web-monetization-meta","commit_stats":null,"previous_names":["uchibeke/react-webmonetization-meta"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uchibeke%2Freact-web-monetization-meta","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uchibeke%2Freact-web-monetization-meta/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uchibeke%2Freact-web-monetization-meta/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uchibeke%2Freact-web-monetization-meta/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uchibeke","download_url":"https://codeload.github.com/uchibeke/react-web-monetization-meta/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":["blockchain","coil","interledger","meta","monetization","payment","react","web","webmonetization"],"created_at":"2024-08-03T00:00:52.901Z","updated_at":"2025-05-07T03:31:06.669Z","avatar_url":"https://github.com/uchibeke.png","language":"TypeScript","funding_links":["https://github.com/sponsors/uchibeke","https://opencollective.com/africahacks"],"categories":["Resources"],"sub_categories":["Packages"],"readme":"# react-webmonetization-meta\n\n\u003e Web monetization for React apps:\n\u003e This reusable React component will add a custom Web Monetization payment pointer to the document head.\n\u003e React Web Monetization takes a Payment pointer and outputs plain HTML Web monetization meta tag. It's dead simple, and React beginner friendly.\n\n[![NPM](https://img.shields.io/npm/v/react-webmonetization-meta.svg)](https://www.npmjs.com/package/react-webmonetization-meta) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n[![CLA assistant](https://cla-assistant.io/readme/badge/uchibeke/react-webmonetization-meta)](https://cla-assistant.io/uchibeke/react-webmonetization-meta)\n\n## Installation\n\nYarn:\n\n```bash\nyarn add react-webmonetization-meta\n```\n\nnpm:\n\n```bash\nnpm install --save react-webmonetization-meta\n```\n\n## Usage - Enabling Web Monetization\n\n```tsx\nimport React, { Component } from 'react'\n\nimport ReactWebMonetizationMeta from 'react-webmonetization-meta'\n\nconst Example = () =\u003e {\n  // Change to:\n  //   your Interledger payment pointer or\n  //   the Interledger payment pointer of your user or\n  //   the Interledger payment pointer of the content creator\n  const PaymentPointer = '$ilp.uphold.com/B3wYJrpHiUyQ'\n  return (\n    \u003cdiv\u003e\n      Some JSX\n      \u003cReactWebMonetizationMeta PaymentPointer={PaymentPointer} /\u003e\n      Some other JSX\n    \u003c/div\u003e\n  )\n}\n```\n\nresult (in console):\n\n```html\n\u003chead\u003e\n  \u003ctitle\u003ereact-webmonetization-meta\u003c/title\u003e\n  \u003cmeta name=\"monetization\" content=\"$ilp.uphold.com/B3wYJrpHiUyQ\" /\u003e\n\u003c/head\u003e\n```\n\nSee below for a full reference guide.\n\n## Features\n\n- Supports customization of monetization pointer\n- Nested components override duplicate Web monetization metas.\n\n## Contributing to this project\n\nPlease take a moment to review the [guidelines for contributing](CONTRIBUTING.md).\n\n- [Pull requests](CONTRIBUTING.md#pull-requests)\n- [Development Process](CONTRIBUTING.md#development)\n\n## License\n\nMIT © [uchibeke](https://github.com/uchibeke)\n\n\u003cimg align=\"left\" height=\"200\" src=\"https://i0.wp.com/www.africahacks.com/wp-content/uploads/2020/03/Brand-Colours-1.png?fit=1123%2C257\u0026ssl=1\" /\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuchibeke%2Freact-web-monetization-meta","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuchibeke%2Freact-web-monetization-meta","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuchibeke%2Freact-web-monetization-meta/lists"}