{"id":15040665,"url":"https://github.com/alugha/typed-ima-sdk","last_synced_at":"2026-03-11T15:13:31.615Z","repository":{"id":28897595,"uuid":"119510369","full_name":"alugha/typed-ima-sdk","owner":"alugha","description":"A library for asynchronously loading the Google IMA SDK with static typing","archived":false,"fork":false,"pushed_at":"2023-10-10T07:34:56.000Z","size":399,"stargazers_count":28,"open_issues_count":8,"forks_count":14,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-14T06:52:26.478Z","etag":null,"topics":["async","asynchronous","google-ima","google-ima-html5","ima-sdk","typescript","typescript-definitions","typescript-library","typescript2","video-ads"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/alugha.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","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":"2018-01-30T09:05:19.000Z","updated_at":"2024-09-04T13:45:11.000Z","dependencies_parsed_at":"2024-06-18T19:48:54.639Z","dependency_job_id":"59ae3b3f-71fd-407a-b7e1-33feaf7e8ca7","html_url":"https://github.com/alugha/typed-ima-sdk","commit_stats":{"total_commits":51,"total_committers":7,"mean_commits":7.285714285714286,"dds":"0.37254901960784315","last_synced_commit":"83c18c79628f6d053321a5fbfa8c6aa6145bb9db"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/alugha/typed-ima-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alugha%2Ftyped-ima-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alugha%2Ftyped-ima-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alugha%2Ftyped-ima-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alugha%2Ftyped-ima-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alugha","download_url":"https://codeload.github.com/alugha/typed-ima-sdk/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alugha%2Ftyped-ima-sdk/sbom","scorecard":{"id":187377,"data":{"date":"2025-08-11","repo":{"name":"github.com/alugha/typed-ima-sdk","commit":"b21c151bdc2cb4ee532aeb1e6ba5468cb003ecb8"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.1,"checks":[{"name":"Code-Review","score":3,"reason":"Found 6/18 approved changesets -- score normalized to 3","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":"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":"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":"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":"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":"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":"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":"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Info: FSF or OSI recognized license: MIT License: LICENSE.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 18 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"13 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-16T20:02:31.220Z","repository_id":28897595,"created_at":"2025-08-16T20:02:31.226Z","updated_at":"2025-08-16T20:02:31.226Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30385369,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T14:10:17.325Z","status":"ssl_error","status_checked_at":"2026-03-11T14:09:37.934Z","response_time":84,"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":["async","asynchronous","google-ima","google-ima-html5","ima-sdk","typescript","typescript-definitions","typescript-library","typescript2","video-ads"],"created_at":"2024-09-24T20:44:53.715Z","updated_at":"2026-03-11T15:13:31.598Z","avatar_url":"https://github.com/alugha.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Typed Google IMA SDK\n\nA library without runtime dependencies for asynchronously loading the Google IMA\nSDK, including TypeScript type definitions for the SDK itself.\n\nFor information on the Google IMA SDK itself, please visit\n[Google's official documentation](https://developers.google.com/interactive-media-ads/docs/sdks/html5/).\n\n## Installation\n\n`yarn add @alugha/ima` or `npm install --save @alugha/ima`\n\n## Usage\n\n### TypeScript with async loading\n\nWith promises and CommonJS modules:\n\n```typescript\nconst { loadImaSdk, google } = require(\"@alugha/ima\");\n\nloadImaSdk()\n  .then(ima =\u003e {\n    // Use the IMA SDK like any other typed module\n    const adDisplayContainer: google.ima.AdDisplayContainer = new ima.AdDisplayContainer(\n      document.getElementById(\"ad-container\")\n    );\n    adDisplayContainer.initialize();\n  })\n  .catch(() =\u003e {\n    console.log(\"SDK could not be loaded. Check your ad blocker!\");\n  });\n```\n\nWith `async` / `await` and ES2015 modules:\n\n```typescript\nimport { loadImaSdk, google } from \"@alugha/ima\";\n\nconst example = async () =\u003e {\n  try {\n    const ima = await loadImaSdk();\n    // Use the IMA SDK like any other typed module\n    const adDisplayContainer: google.ima.AdDisplayContainer = new ima.AdDisplayContainer(\n      document.getElementById(\"ad-container\")\n    );\n    adDisplayContainer.initialize();\n  } catch (e) {\n    console.log(\"SDK could not be loaded. Check your ad blocker!\");\n  }\n};\n```\n\n### TypeScript without async loading\n\nIf you prefer to directly load the SDK using a script tag, you can still make\nuse of the included type definitions in `types/ima.d.ts`.\n\n## Disclaimer\n\nWe are not involved in the development of the Google IMA SDK itself.\nThis library is not connected to Google in any way either.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falugha%2Ftyped-ima-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falugha%2Ftyped-ima-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falugha%2Ftyped-ima-sdk/lists"}