{"_id":"eleventy-plugin-monetization","_rev":"29-74bbdbd94316d56c687d12aa8ae6724e","time":{"created":"2023-12-13T16:46:34.886Z","0.0.1":"2020-05-12T00:46:28.559Z","modified":"2023-12-13T17:44:38.302Z","0.0.2":"2020-05-12T01:07:37.533Z","0.0.3":"2020-05-12T06:59:37.237Z","0.0.4":"2020-05-12T07:50:08.069Z","0.0.5":"2020-05-12T07:51:19.041Z","0.0.6":"2020-05-12T08:00:00.367Z","0.1.0":"2020-05-12T08:22:23.355Z","0.1.1":"2020-05-12T08:43:43.483Z","0.1.2":"2020-05-12T08:58:19.902Z","0.1.3":"2020-05-12T09:01:25.646Z","0.1.4":"2020-05-12T09:07:29.429Z","0.1.5":"2020-05-12T09:09:37.767Z","0.1.6":"2020-05-12T09:12:21.310Z","0.1.7":"2020-05-12T09:12:48.538Z","0.1.8":"2020-05-12T09:17:34.363Z","0.1.9":"2020-05-12T09:19:23.056Z","0.1.91":"2020-05-12T09:22:19.960Z","0.1.92":"2020-05-12T09:22:56.341Z","0.1.93":"2020-05-12T09:28:03.523Z","0.1.94":"2020-05-12T09:28:55.847Z","0.1.95":"2020-05-12T09:31:46.801Z","0.2.0":"2020-05-12T09:42:40.131Z","0.2.1":"2020-05-12T09:52:45.553Z","0.2.2":"2020-05-12T13:22:02.493Z","0.2.3":"2020-05-24T21:26:18.620Z","0.2.4":"2023-12-13T16:46:35.032Z","0.2.5":"2023-12-13T16:48:56.954Z","0.2.6":"2023-12-13T17:44:38.131Z"},"name":"eleventy-plugin-monetization","dist-tags":{"latest":"0.2.6"},"versions":{"0.2.4":{"name":"eleventy-plugin-monetization","version":"0.2.4","description":"An Eleventy plugin to monetize posts and site content","main":".eleventy.js","repository":{"type":"git","url":"git+https://github.com/DanCanetti/eleventy-plugin-monetization.git"},"keywords":["eleventy","webmonetization"],"author":{"name":"Santosh Viswanatham","email":"viswanathamsantosh@gmail.com","url":"https://devcer.github.io/"},"license":"MIT","bugs":{"url":"https://github.com/devcer/eleventy-plugin-monetization/issues"},"homepage":"https://github.com/devcer/eleventy-plugin-monetization#readme","_id":"eleventy-plugin-monetization@0.2.4","gitHead":"fd5c197e7d7702cb346d92be840e17f0595927f3","_nodeVersion":"18.17.1","_npmVersion":"10.2.5","dist":{"integrity":"sha512-khSNjpD+dOx8mJPmPza5nfL8Mva5FvqkI8U/mnMXr7nI4Q+ERlDFkTg6Sm9jmNBXf175UKxus9LXoFrhDE+8EA==","shasum":"88c118fc1f189207d4c65d7dee20454f5f4caa2c","tarball":"https://registry.npmjs.org/eleventy-plugin-monetization/-/eleventy-plugin-monetization-0.2.4.tgz","fileCount":9,"unpackedSize":7649,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD8HHG1x6X24iczIq/RA8rJYWiXvS17tFO8Fmjr44RJogIhAOLIXibcOepKp4vikn9dLW2m6LQM4SlZ6g+5Ok/aD9ze"}]},"_npmUser":{"name":"viswanathamsantosh","email":"viswanathamsantosh@gmail.com"},"directories":{},"maintainers":[{"name":"viswanathamsantosh","email":"viswanathamsantosh@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eleventy-plugin-monetization_0.2.4_1702485994887_0.8743228434219199"},"_hasShrinkwrap":false},"0.2.5":{"name":"eleventy-plugin-monetization","version":"0.2.5","description":"An Eleventy plugin to monetize posts and site content","main":".eleventy.js","repository":{"type":"git","url":"git+https://github.com/DanCanetti/eleventy-plugin-monetization.git"},"keywords":["eleventy","webmonetization"],"author":{"name":"Santosh Viswanatham","email":"viswanathamsantosh@gmail.com","url":"https://devcer.github.io/"},"license":"MIT","bugs":{"url":"https://github.com/devcer/eleventy-plugin-monetization/issues"},"homepage":"https://github.com/devcer/eleventy-plugin-monetization#readme","_id":"eleventy-plugin-monetization@0.2.5","gitHead":"fd5c197e7d7702cb346d92be840e17f0595927f3","_nodeVersion":"18.17.1","_npmVersion":"10.2.5","dist":{"integrity":"sha512-eQhCJmMJWSRFaAtF15K7H9B8jxS1rpe+0xHOH2dcAt83pwEi7NxNne8amU+QOlGDlXonAhC9UGLRP/CWniQ4HA==","shasum":"1b5bd70f639107a288e49ce401449d659123c088","tarball":"https://registry.npmjs.org/eleventy-plugin-monetization/-/eleventy-plugin-monetization-0.2.5.tgz","fileCount":9,"unpackedSize":7582,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAbg/PSPxypQGV4UKdHRzNzWL0KCHNfm58KOI9q9hUEqAiB901wJzRGpVN2653TVVeYBIAGJTFb6myrO8ipezv+7Bw=="}]},"_npmUser":{"name":"viswanathamsantosh","email":"viswanathamsantosh@gmail.com"},"directories":{},"maintainers":[{"name":"viswanathamsantosh","email":"viswanathamsantosh@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eleventy-plugin-monetization_0.2.5_1702486136732_0.38904833587455245"},"_hasShrinkwrap":false},"0.2.6":{"name":"eleventy-plugin-monetization","version":"0.2.6","description":"An Eleventy plugin to monetize posts and site content","main":".eleventy.js","repository":{"type":"git","url":"git+https://github.com/DanCanetti/eleventy-plugin-monetization.git"},"keywords":["eleventy","webmonetization"],"author":{"name":"Santosh Viswanatham","email":"viswanathamsantosh@gmail.com","url":"https://devcer.github.io/"},"license":"MIT","bugs":{"url":"https://github.com/devcer/eleventy-plugin-monetization/issues"},"homepage":"https://github.com/devcer/eleventy-plugin-monetization#readme","_id":"eleventy-plugin-monetization@0.2.6","gitHead":"f359aa3f86492f7f676ed0b5b99cffeae9e81ab3","_nodeVersion":"18.17.1","_npmVersion":"10.2.5","dist":{"integrity":"sha512-JbaBJUdcvuMqYyNRlRIQgADsGfAJGLLUs4xoL0rXS6+9BT09wCvo3rzWy4GGFGXpYsVCIQ1m7Z+a/LDG/u49kA==","shasum":"2b98ff4eda48dc74bfa1680dcca6a5a637d1ada3","tarball":"https://registry.npmjs.org/eleventy-plugin-monetization/-/eleventy-plugin-monetization-0.2.6.tgz","fileCount":9,"unpackedSize":7491,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCxdxI6tTusvjU3dpykOfjtela91Yox/HZJmsqhKf2erQIhANyJsPrFLqOPPsBhyR+7SSrj59DjGWkxeGmo/OouC7qc"}]},"_npmUser":{"name":"viswanathamsantosh","email":"viswanathamsantosh@gmail.com"},"directories":{},"maintainers":[{"name":"viswanathamsantosh","email":"viswanathamsantosh@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eleventy-plugin-monetization_0.2.6_1702489477927_0.37711957118100625"},"_hasShrinkwrap":false}},"maintainers":[{"name":"viswanathamsantosh","email":"viswanathamsantosh@gmail.com"}],"description":"An Eleventy plugin to monetize posts and site content","homepage":"https://github.com/devcer/eleventy-plugin-monetization#readme","keywords":["eleventy","webmonetization"],"repository":{"type":"git","url":"git+https://github.com/DanCanetti/eleventy-plugin-monetization.git"},"author":{"name":"Santosh Viswanatham","email":"viswanathamsantosh@gmail.com","url":"https://devcer.github.io/"},"bugs":{"url":"https://github.com/devcer/eleventy-plugin-monetization/issues"},"license":"MIT","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 `<head>` of your 11ty site where you wish to start monetizing. For example, this could be added to the `<head>` 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<div id=\"monetization-loading\" class=\"monetization--hidden\">Loading exclusive content...</div>\n\n<div id=\"monetization-cta\" class=\"monetization--hidden\">\n  <p>This content is exclusive to my supporters.</p>\n  <p>\n    Please install a\n    <a href=\"https://chrome.google.com/webstore/detail/coil/locbifcbeldmnphbgkdigjmkbfkhbnca?hl=en\" target=\"_blank\"\n      >Web Monetization extension</a\n    >\n    to support me!\n  </p>\n</div>\n```\n\n### Complete Example\n\n```html\n<div id=\"monetization-loading\" class=\"monetization--hidden\">Loading exclusive content...</div>\n\n<div id=\"monetization-cta\" class=\"monetization--hidden\">\n  <p>This content is exclusive to my supporters.</p>\n  <p>Please install a Web Monetization provider extension to support me!</p>\n</div>\n\n<div id=\"monetization-exclusive\" class=\"monetization--hidden\">\n  <p>Exclusive content.</p>\n</div>\n```\n","readmeFilename":"README.md"}