{"id":13714954,"url":"https://github.com/CDDelta/ngx-monetization","last_synced_at":"2025-05-07T03:31:03.985Z","repository":{"id":51954021,"uuid":"264142366","full_name":"CDDelta/ngx-monetization","owner":"CDDelta","description":"Web Monetization API for Angular!","archived":true,"fork":false,"pushed_at":"2022-02-11T10:39:55.000Z","size":876,"stargazers_count":8,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-24T04:13:45.486Z","etag":null,"topics":["angular","typescript","web-monetization"],"latest_commit_sha":null,"homepage":"https://cddelta.github.io/ngx-monetization/","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/CDDelta.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}},"created_at":"2020-05-15T08:42:21.000Z","updated_at":"2024-02-01T11:26:30.000Z","dependencies_parsed_at":"2022-08-23T23:20:14.653Z","dependency_job_id":null,"html_url":"https://github.com/CDDelta/ngx-monetization","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/CDDelta%2Fngx-monetization","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CDDelta%2Fngx-monetization/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CDDelta%2Fngx-monetization/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CDDelta%2Fngx-monetization/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CDDelta","download_url":"https://codeload.github.com/CDDelta/ngx-monetization/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252806414,"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":["angular","typescript","web-monetization"],"created_at":"2024-08-03T00:00:52.396Z","updated_at":"2025-05-07T03:31:02.709Z","avatar_url":"https://github.com/CDDelta.png","language":"TypeScript","readme":"# ngx-monetization\n\n[![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/cddelta/ngx-monetization/issues)\n\n[![https://nodei.co/npm/ngx-monetization.png?downloads=true\u0026downloadRank=true\u0026stars=true](https://nodei.co/npm/ngx-monetization.png?downloads=true\u0026downloadRank=true\u0026stars=true)](https://www.npmjs.com/package/ngx-monetization)\n\nWeb Monetization API for Angular!\n\n`ngx-monetization` helps you interact with the Web Monetization API with an observable-based API.\n\nThe Web Monetization API is\n**a JavaScript browser API which allows the creation of a payment stream from the user agent to the website**, read more about it [here](https://webmonetization.org/).\n\nCheck out the demo [here](https://cddelta.github.io/ngx-monetization/).\n\n## Install\n\nTo use `ngx-monetization` in your project run:\n\n```bash\nng add ngx-monetization\n```\n\nor install it via npm:\n\n```bash\nnpm install ngx-monetization --save\n```\n\nand add your payment pointer to `index.html`, see [here](https://webmonetization.org/docs/getting-started).\n\n## Example Use\n\n```typescript\nimport { Component } from \"@angular/core\";\nimport { MonetizationService } from \"ngx-monetization\";\n\n@Component({\n  selector: \"app-root\",\n  template: `\n    \u003cp\u003eState: {{ monetization.state | async }}\u003c/p\u003e\n    \u003cul\u003e\n      \u003cli *ngFor=\"let event of monetization.events | async\"\u003e\n        {{ event | json }}\n      \u003c/li\u003e\n    \u003c/ul\u003e\n  `,\n})\nexport class AppComponent {\n  constructor(public monetization: MonetizationService) {\n    monetization.setPaymentPointer(\"$wallet.example.com/alice\");\n  }\n}\n```\n\n## Contributing\n\nTo contribute to this library, clone it locally and run `npm install`.\n\nTo build the library run:\n\n```bash\nnpm run build\n```\n\nTo run tests run:\n\n```bash\nnpm run test\n```\n\nTo test the demo app run:\n\n```bash\nnpm run start\n```\n","funding_links":[],"categories":["Resources"],"sub_categories":["Packages"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCDDelta%2Fngx-monetization","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FCDDelta%2Fngx-monetization","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCDDelta%2Fngx-monetization/lists"}