{"_id":"3pc","_rev":"3-c26a5f413ca5095eb30a3f03e211da92","name":"3pc","description":"Third party web content database","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"3pc","version":"0.1.0","description":"Third party web content database","main":"index.js","scripts":{"test":"mocha test.js"},"repository":{"type":"git","url":"git+https://github.com/macbre/3pc.git"},"keywords":["webperf","3pc","cdn"],"author":{"name":"Maciej Brencz","email":"maciej.brencz@gmail.com","url":"https://github.com/macbre"},"license":"ISC","bugs":{"url":"https://github.com/macbre/3pc/issues"},"homepage":"https://github.com/macbre/3pc#readme","devDependencies":{"leche":"^2.1.1","mocha":"^2.3.3"},"gitHead":"3a9151cce3ae1d2b01bff589bf25977d48d90c66","_id":"3pc@0.1.0","_shasum":"dc8ced6d598f36ae4db6ea77e6fed377940e745c","_from":".","_npmVersion":"2.14.3","_nodeVersion":"0.10.29","_npmUser":{"name":"macbre","email":"maciej.brencz@gmail.com"},"dist":{"shasum":"dc8ced6d598f36ae4db6ea77e6fed377940e745c","tarball":"https://registry.npmjs.org/3pc/-/3pc-0.1.0.tgz","integrity":"sha512-KrZ37gm72gGW9VAgcQ/IP1YkGuH9RjAHZkKdeB+d0A/DUMVHE+axyindSwuVFmLCAQQM1vIll/JYpL4CxqHdOw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAecl5Xceq5PxnfB4K8M/KAZx0jXcRO1XdGVRakHn7JdAiBK4IJl0zCabhJHObgh9JhNFTQ4EX5pSbMFfv44fIrPLg=="}]},"maintainers":[{"name":"macbre","email":"maciej.brencz@gmail.com"}]}},"readme":"3pc\n===\n\nThird party web content database\n\n## What is it?\n\n`3pc` is meant to be a data-provider of CDN and 3rd party tracking services list.\n\nInspired by [this PerfPlanet article](http://calendar.perfplanet.com/2013/thirdpartycontent/).\n\n## Usage\n\n`3pc` is built as nodejs module:\n\n```\nnpm install 3pc\n```\n\nIt provides \"raw\" data and some helper functions:\n\n```js\nvar thirdParty = require('3pc');\n\n// check if given URL is provided via Content Delivery Network\nconsole.log(thirdParty.cdn.matchByUrl('http://example.com/foo.js'));\nfalse\n\nconsole.log(thirdParty.cdn.matchByUrl('http://vignette3.wikia.nocookie.net/nordycka/images/e/ee/Tj%C3%B8rnuv%C3%ADk.jpg/revision/latest/scale-to-width-down/640?cb=20150904165805&path-prefix=pl'));\nFastly\n\n// check if given URL is not a tracking code\nconsole.log(thirdParty.trackers.matchByUrl('http://edge.quantserve.com/quant.js'));\nQuantcast\n```\n\n## Data sources\n\n`3pc` is currently using the following data sources:\n\n* [CDN providers from webpagetest](https://raw.githubusercontent.com/WPO-Foundation/webpagetest/master/agent/wpthook/cdn.h)\n* [Tracking tools from Ghostery](https://raw.githubusercontent.com/jonpierce/ghostery/master/firefox/ghostery-statusbar/ghostery/chrome/content/ghostery-bugs.js)\n\nThese sources are parsed and the result is stored in `./db` directory by running a Python script:\n\n```\nmake generate\n```\n\nSo this database can be used by any technology that can read and parse JSON-encoded files.\n","maintainers":[{"name":"macbre","email":"maciej.brencz@gmail.com"}],"time":{"modified":"2022-06-12T14:07:28.176Z","created":"2015-09-29T19:59:53.812Z","0.1.0":"2015-09-29T19:59:53.812Z"},"homepage":"https://github.com/macbre/3pc#readme","keywords":["webperf","3pc","cdn"],"repository":{"type":"git","url":"git+https://github.com/macbre/3pc.git"},"author":{"name":"Maciej Brencz","email":"maciej.brencz@gmail.com","url":"https://github.com/macbre"},"bugs":{"url":"https://github.com/macbre/3pc/issues"},"license":"ISC","readmeFilename":"README.md"}