{"id":15433596,"url":"https://github.com/mmarkelov/react-external-script-loader","last_synced_at":"2026-04-29T09:07:05.323Z","repository":{"id":105872837,"uuid":"171283921","full_name":"mmarkelov/react-external-script-loader","owner":"mmarkelov","description":"React component for loading external scripts","archived":false,"fork":false,"pushed_at":"2019-02-27T12:16:18.000Z","size":349,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-09T14:26:54.657Z","etag":null,"topics":["external","loader","react","react-component"],"latest_commit_sha":null,"homepage":"https://mmarkelov.github.io/react-external-script-loader/","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/mmarkelov.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-02-18T12:53:30.000Z","updated_at":"2020-06-30T11:24:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"a6914b91-c15d-476b-a6c5-15816a99989a","html_url":"https://github.com/mmarkelov/react-external-script-loader","commit_stats":{"total_commits":13,"total_committers":2,"mean_commits":6.5,"dds":"0.15384615384615385","last_synced_commit":"8ae60108b2248271465d350d29b941c89c25709a"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/mmarkelov/react-external-script-loader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmarkelov%2Freact-external-script-loader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmarkelov%2Freact-external-script-loader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmarkelov%2Freact-external-script-loader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmarkelov%2Freact-external-script-loader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mmarkelov","download_url":"https://codeload.github.com/mmarkelov/react-external-script-loader/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmarkelov%2Freact-external-script-loader/sbom","scorecard":{"id":654047,"data":{"date":"2025-08-11","repo":{"name":"github.com/mmarkelov/react-external-script-loader","commit":"8ae60108b2248271465d350d29b941c89c25709a"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/14 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-21T14:12:40.092Z","repository_id":105872837,"created_at":"2025-08-21T14:12:40.092Z","updated_at":"2025-08-21T14:12:40.092Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32418239,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T06:29:02.080Z","status":"ssl_error","status_checked_at":"2026-04-29T06:29:00.631Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["external","loader","react","react-component"],"created_at":"2024-10-01T18:34:37.476Z","updated_at":"2026-04-29T09:07:05.305Z","avatar_url":"https://github.com/mmarkelov.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-external-script-loader\n\nLibrary for loading external scripts\n\n## Install\n\n```shell\nnpm install react-external-script-loader\nyarn add react-external-script-loader\n```\n\n## Usage\n\n```js\nimport Loader from 'react-external-script-loader';\n\n...\n\n\u003cLoader url=\"https://vk.com/js/api/openapi.js?160\" global=\"VK\" /\u003e\n\n```\n\n## Component\n\n### Options\n\n| Property              | Type   | Description                             |\n| -------------         |:-----: | :-----                                  |\n| **url**(required)     | string | Url of external script                  |\n| **global**(required)  | string | name of object if it loads successfully |\n| **options**           | object | Script options - possible keys: {type, charset, async, defer}. You can ckeck it [here](https://www.w3schools.com/tags/tag_script.asp)  |\n| **onLoad**            | function | Called when script loaded ```(global: object): void```                |\n| **onError**           | function | Called when script loading was failed ```void```                |\n\n## Basic example\n\n```js\nimport Loader from 'react-external-script-loader';\n\nclass App extends React.Component {\n  state = {\n    load: false,\n  };\n\n  render() {\n    const { load } = this.state;\n\n    return (\n      \u003cdiv className=\"App\"\u003e\n        \u003ch1\u003eReact External Script Loader Example\u003c/h1\u003e\n        \u003cbutton onClick={() =\u003e this.setState({ load: true })}\u003e\n          Load external script\n        \u003c/button\u003e\n\n        {load \u0026\u0026 (\n          \u003c\u003e\n            \u003cdiv id=\"vk_playlist_-2000646569_646569\" /\u003e\n            \u003cLoader\n              url=\"https://vk.com/js/api/openapi.js?160\"\n              global=\"VK\"\n              onLoad={VK =\u003e\n                VK.Widgets.Playlist(\n                  'vk_playlist_-2000646569_646569',\n                  -2000646569,\n                  646569,\n                  'ae82627d6c8bb4500d',\n                )\n              }\n            /\u003e\n          \u003c/\u003e\n        )}\n      \u003c/div\u003e\n    );\n  }\n}\n\nconst rootElement = document.getElementById('root');\nReactDOM.render(\u003cApp /\u003e, rootElement);\n```\n\nYou can clone this repository and check example\n\n```shell\ngit clone https://github.com/mmarkelov/react-external-script-loader.git\ncd ./react-external-script-loader/example\nyarn \u0026\u0026 yarn run dev\n```\n\n## TODO\n\n- [ ] Add tests\n- [ ] Write clearer description\n- [ ] Write more examples\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmmarkelov%2Freact-external-script-loader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmmarkelov%2Freact-external-script-loader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmmarkelov%2Freact-external-script-loader/lists"}