{"id":13714973,"url":"https://github.com/devcer/eleventy-plugin-monetization","last_synced_at":"2025-10-29T00:01:53.587Z","repository":{"id":136907672,"uuid":"263190136","full_name":"devcer/eleventy-plugin-monetization","owner":"devcer","description":"An Eleventy plugin to monetize posts and site content","archived":false,"fork":false,"pushed_at":"2024-09-18T17:22:57.000Z","size":28,"stargazers_count":24,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-01T16:06:21.589Z","etag":null,"topics":["hacktoberfest","interledger","interledger-hacktoberfest","web-monetization"],"latest_commit_sha":null,"homepage":"","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/devcer.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-12T00:23:52.000Z","updated_at":"2025-09-27T08:57:15.000Z","dependencies_parsed_at":"2024-11-14T03:31:03.054Z","dependency_job_id":"924ef762-2120-4aa6-9928-310d2ab6fd2b","html_url":"https://github.com/devcer/eleventy-plugin-monetization","commit_stats":null,"previous_names":["devcer/eleventy-plugin-monetization","dancanetti/eleventy-plugin-monetization"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/devcer/eleventy-plugin-monetization","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devcer%2Feleventy-plugin-monetization","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devcer%2Feleventy-plugin-monetization/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devcer%2Feleventy-plugin-monetization/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devcer%2Feleventy-plugin-monetization/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devcer","download_url":"https://codeload.github.com/devcer/eleventy-plugin-monetization/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devcer%2Feleventy-plugin-monetization/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278386122,"owners_count":25978109,"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","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["hacktoberfest","interledger","interledger-hacktoberfest","web-monetization"],"created_at":"2024-08-03T00:00:52.616Z","updated_at":"2025-10-06T15:01:42.758Z","avatar_url":"https://github.com/devcer.png","language":"JavaScript","funding_links":[],"categories":["Resources"],"sub_categories":["Packages"],"readme":"# Monetize 11ty\n\nAn [Eleventy](https://www.11ty.dev/) plugin to monetize posts and site content by creating exclusive content areas.\n\n## Web Monetization\n\nA JavaScript browser API which allows the creation of a payment stream from the user agent to the website.\n\n[Find out more](https://webmonetization.org/)\n\n## Setting up Web Monetization Provider\n\nFor Testing purposes, You will find the [Web Monetization Provider](https://github.com/interledger/web-monetization-extension/) here. You will find instructions to run the extension locally in the README.md file. Hopefully, we will have the extension published soon.\n\nIf you would like to generate a sample payment pointer for testing. You could use [rafiki.money](https://rafiki.money/)\n\n## Installation\n\n`npm install eleventy-plugin-monetization`\n\nAdd the below to your `.eleventy.js` file:\n\n```javascript\n// Monetize\nconst monetize11ty = require(\"eleventy-plugin-monetization\");\nmodule.exports = function (eleventyConfig) {\n  eleventyConfig.addPlugin(monetize11ty);\n};\n```\n\n## Usage\n\nAdd the shortcode below to the `\u003chead\u003e` of your 11ty site where you wish to start monetizing. For example, this could be added to the `\u003chead\u003e` of a post [template file](https://www.11ty.dev/docs/data/) or create a monetize template file.\n\n```html\n{% monetize11ty \"provider_url\", \"unique_id\" %}\n```\n\n### Hiding content\n\nAdd `id=\"monetization-exclusive\" class=\"hidden\"` to the parent of the content you wish to monetize. This will then hide the content until a monetization plugin is active.\n\n### CTA\n\nAdd the below divs just above the `id=\"monetization-exclusive\"` area. This will prompt a user to start a Web Monetization extension in order to show this content.\n\n```html\n\u003cdiv id=\"monetization-loading\" class=\"monetization--hidden\"\u003eLoading exclusive content...\u003c/div\u003e\n\n\u003cdiv id=\"monetization-cta\" class=\"monetization--hidden\"\u003e\n  \u003cp\u003eThis content is exclusive to my supporters.\u003c/p\u003e\n  \u003cp\u003e\n    Please install a\n    \u003ca href=\"https://chrome.google.com/webstore/detail/coil/locbifcbeldmnphbgkdigjmkbfkhbnca?hl=en\" target=\"_blank\"\n      \u003eWeb Monetization extension\u003c/a\n    \u003e\n    to support me!\n  \u003c/p\u003e\n\u003c/div\u003e\n```\n\n### Complete Example\n\n```html\n\u003cdiv id=\"monetization-loading\" class=\"monetization--hidden\"\u003eLoading exclusive content...\u003c/div\u003e\n\n\u003cdiv id=\"monetization-cta\" class=\"monetization--hidden\"\u003e\n  \u003cp\u003eThis content is exclusive to my supporters.\u003c/p\u003e\n  \u003cp\u003ePlease install a Web Monetization provider extension to support me!\u003c/p\u003e\n\u003c/div\u003e\n\n\u003cdiv id=\"monetization-exclusive\" class=\"monetization--hidden\"\u003e\n  \u003cp\u003eExclusive content.\u003c/p\u003e\n\u003c/div\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevcer%2Feleventy-plugin-monetization","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevcer%2Feleventy-plugin-monetization","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevcer%2Feleventy-plugin-monetization/lists"}