{"id":21405770,"url":"https://github.com/ovhemert/gatsby-plugin-sri","last_synced_at":"2025-07-13T23:30:44.608Z","repository":{"id":32883795,"uuid":"144585960","full_name":"ovhemert/gatsby-plugin-sri","owner":"ovhemert","description":"Gatsby plugin for enabling Sub Resource Integrity","archived":false,"fork":false,"pushed_at":"2025-07-11T19:34:05.000Z","size":254,"stargazers_count":8,"open_issues_count":8,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-11T21:23:00.991Z","etag":null,"topics":["gatsby","hash","integrity","plugin","sri","subresource"],"latest_commit_sha":null,"homepage":null,"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/ovhemert.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"docs/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"docs/CODE_OF_CONDUCT.md","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,"zenodo":null},"funding":{"github":["ovhemert"],"patreon":"ovhemert","ko_fi":"ovhemert","custom":"ovhemert.dev/donate"}},"created_at":"2018-08-13T13:48:23.000Z","updated_at":"2024-03-19T11:19:06.000Z","dependencies_parsed_at":"2025-07-11T21:13:51.261Z","dependency_job_id":"058a9c04-7b39-45f3-b951-2770f59968c5","html_url":"https://github.com/ovhemert/gatsby-plugin-sri","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/ovhemert/gatsby-plugin-sri","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ovhemert%2Fgatsby-plugin-sri","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ovhemert%2Fgatsby-plugin-sri/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ovhemert%2Fgatsby-plugin-sri/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ovhemert%2Fgatsby-plugin-sri/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ovhemert","download_url":"https://codeload.github.com/ovhemert/gatsby-plugin-sri/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ovhemert%2Fgatsby-plugin-sri/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264903977,"owners_count":23681136,"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":["gatsby","hash","integrity","plugin","sri","subresource"],"created_at":"2024-11-22T16:28:16.433Z","updated_at":"2025-07-13T23:30:44.285Z","avatar_url":"https://github.com/ovhemert.png","language":"JavaScript","funding_links":["https://github.com/sponsors/ovhemert","https://patreon.com/ovhemert","https://ko-fi.com/ovhemert","ovhemert.dev/donate"],"categories":[],"sub_categories":[],"readme":"# gatsby-plugin-sri\n\n[![Travis](https://img.shields.io/travis/com/ovhemert/gatsby-plugin-sri.svg?branch=master\u0026logo=travis)](https://travis-ci.com/ovhemert/gatsby-plugin-sri)\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/3216215565884e7d9f4d5f298a0288a8)](https://www.codacy.com/app/ovhemert/gatsby-plugin-sri?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=ovhemert/gatsby-plugin-sri\u0026amp;utm_campaign=Badge_Grade)\n[![Known Vulnerabilities](https://snyk.io/test/npm/gatsby-plugin-sri/badge.svg)](https://snyk.io/test/npm/gatsby-plugin-sri)\n[![Coverage Status](https://coveralls.io/repos/github/ovhemert/gatsby-plugin-sri/badge.svg)](https://coveralls.io/github/ovhemert/gatsby-plugin-sri)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](http://standardjs.com/)\n\nA Gatsby plugin to add Subresource Integrity (SRI) to your generated script tags.\n\n```html\n\u003cscript src=\"/webpack-runtime-cde5506958f1afc4d89e.js\"\u003e\u003c/script\u003e\n```\nbecomes\n```html\n\u003cscript src=\"/webpack-runtime-cde5506958f1afc4d89e.js\" integrity=\"sha512-uxm8lZAnmLGO3hMOyYy7HFgEGJgDdXwZR+Pdyt2f3AKbgVZ706v9YyI4t9veKTirqfdLGvPVDsDkHEWmWsECRA==\"\u003e\u003c/script\u003e\n```\n\n## Installation\n\nWith npm:\n\n```bash\nnpm install --save gatsby-plugin-sri\n```\n\nOr with Yarn:\n\n```bash\nyarn add gatsby-plugin-sri\n```\n\n## Usage\n\nIn your `gatsby-config.js` file add:\n\n```javascript\nmodule.exports = {\n  plugins: [\n    {\n      resolve: 'gatsby-plugin-sri',\n      options: {\n        hash: 'sha512', // 'sha256', 'sha384' or 'sha512' ('sha512' = default)\n        crossorigin: false // Optional\n      }\n    }\n  ]\n}\n```\n\nThe `crossorigin` option, if set to `true`, will optionally add add a `crossorigin=\"anonymous\"` attribute to the script / style tags.\n\n## Maintainers\n\nOsmond van Hemert\n[![Github](https://img.shields.io/badge/-website.svg?style=social\u0026logoColor=333\u0026logo=github)](https://github.com/ovhemert)\n[![Web](https://img.shields.io/badge/-website.svg?style=social\u0026logoColor=333\u0026logo=nextdoor)](https://ovhemert.dev)\n\n## Contributing\n\nIf you would like to help out with some code, check the [details](./docs/CONTRIBUTING.md).\n\nNot a coder, but still want to support? Have a look at the options available to [donate](https://ovhemert.dev/donate).\n\n## Sponsors\n\n[![BrowserStack](./docs/assets/browserstack-logo.svg)](https://www.browserstack.com/)\n\n## License\n\nLicensed under [MIT](./LICENSE).\n\n_NOTE: This plugin only generates output when run in `production` mode! To test your generated tags, run: `gatsby build \u0026\u0026 gatsby serve`_\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fovhemert%2Fgatsby-plugin-sri","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fovhemert%2Fgatsby-plugin-sri","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fovhemert%2Fgatsby-plugin-sri/lists"}