{"id":15916828,"url":"https://github.com/imgeng/imageengine-react","last_synced_at":"2025-10-27T18:41:42.345Z","repository":{"id":45889783,"uuid":"345970354","full_name":"imgeng/imageengine-react","owner":"imgeng","description":"Provides custom components for integrating ImageEngine into React web apps","archived":false,"fork":false,"pushed_at":"2025-08-24T00:46:27.000Z","size":106,"stargazers_count":2,"open_issues_count":5,"forks_count":3,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-08-24T10:56:34.160Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/imgeng.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,"zenodo":null}},"created_at":"2021-03-09T10:37:25.000Z","updated_at":"2025-08-24T00:46:08.000Z","dependencies_parsed_at":"2024-01-05T07:27:31.344Z","dependency_job_id":"189e6018-b128-43dc-b581-6a2b051d2a49","html_url":"https://github.com/imgeng/imageengine-react","commit_stats":{"total_commits":101,"total_committers":9,"mean_commits":"11.222222222222221","dds":0.4752475247524752,"last_synced_commit":"8131bb61c0541801bf7cc3f1108e86bdf365d8ba"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/imgeng/imageengine-react","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imgeng%2Fimageengine-react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imgeng%2Fimageengine-react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imgeng%2Fimageengine-react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imgeng%2Fimageengine-react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imgeng","download_url":"https://codeload.github.com/imgeng/imageengine-react/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imgeng%2Fimageengine-react/sbom","scorecard":{"id":485444,"data":{"date":"2025-08-11","repo":{"name":"github.com/imgeng/imageengine-react","commit":"73f821490ee0ff105f2f9891e04e3e3eec8b776d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.8,"checks":[{"name":"Code-Review","score":0,"reason":"Found 1/30 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":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"Maintained","score":2,"reason":"3 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"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":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: jobLevel 'contents' permission set to 'read': .github/workflows/publish.yml:12","Warn: no topLevel permission defined: .github/workflows/build.yml:1","Warn: no topLevel permission defined: .github/workflows/publish.yml:1","Info: no jobLevel write permissions found"],"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":3,"reason":"dependency not pinned by hash detected -- score normalized to 3","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/imgeng/imageengine-react/build.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/imgeng/imageengine-react/build.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/imgeng/imageengine-react/publish.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/imgeng/imageengine-react/publish.yml/main?enable=pin","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   2 out of   2 npmCommand dependencies pinned"],"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":"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: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":"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":"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 'main'"],"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":"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 29 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"}}]},"last_synced_at":"2025-08-19T17:38:43.911Z","repository_id":45889783,"created_at":"2025-08-19T17:38:43.911Z","updated_at":"2025-08-19T17:38:43.911Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272366886,"owners_count":24922223,"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","status":"online","status_checked_at":"2025-08-27T02:00:09.397Z","response_time":76,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-10-06T18:05:10.010Z","updated_at":"2025-10-27T18:41:42.265Z","avatar_url":"https://github.com/imgeng.png","language":"TypeScript","readme":"# React components for ImageEngine integration\n\nHassle-free way to deliver optimized responsive images in your React applications.\n\n## Quick start\n\nThe package includes four components:\n\n* `ImageEngineProvider`\n* `Image`\n* `Picture`\n* `Source`\n\nTo start using provided image tags in your application, place `ImageEngineProvider` somewhere above them in the DOM tree with the `deliveryAddress` prop set to your [ImageEngine Delivery Address](https://support.imageengine.io/hc/en-us/articles/360059238371-Quick-Start):\n\n```jsx\nimport { ImageEngineProvider } from \"@imageengine/react\"\n\nfunction App () {\n  return (\n    \u003cImageEngineProvider\n      deliveryAddress=\"https://blazing-fast-pics.cdn.imgeng.in\"\n      // or, for local development:\n      // deliveryAddress=\"http://localhost:9009\"\n    \u003e\n      \u003cShoppingCart /\u003e\n      ...\n    \u003c/ImageEngineProvider\u003e\n  )\n}\n\n```\n\n```jsx\nimport { Image } from \"@imageengine/react\"\n\nfunction ShoppingCart () {\n  return (\n    \u003csection\u003e\n      \u003cImage\n        src=\"pick-ups/custom/unstoppable.jpg\"\n        srcSet={...}\n        sizes={...}\n        directives={...}\n        {...otherProps}\n      /\u003e\n    \u003c/section\u003e\n    ...\n  )\n}\n```\n\n[Demo app on CodeSandbox](https://codesandbox.io/p/sandbox/imageenginereactdemo-pjfp7z)\n\n## Component props reference\n\n### ImageEngineProvider\n`deliveryAddress` - [ImageEngine Delivery Address](https://support.imageengine.io/hc/en-us/articles/360059238371-Quick-Start):\n\n```ts\ndeliveryAddress: string\n```\n\n`stripFromSrc` - Strip away a portion of a source string in all ImageEngine's components. Particularly useful if your images are coming from a headless CMS and you need to erase something in received URL path (origin, for example):\n\n```ts\nstripFromSrc?: string\n```\n\n\n### Image\n`src` - Relative path to the image:\n\n```ts\nsrc: string\n```\n\n`directives` - ImageEngine directives:\n\n```ts\ndirectives?: {\n  // Define desired width.\n  width?: number\n  // Set width to auto (with fallback).\n  autoWidthWithFallback?: number\n  // Define desired height.\n  height?: number\n  // Adjust compression.\n  // Possible range: 0-100.\n  compression?: number\n  // Define desired output format.\n  outputFormat?:\n    | \"png\"\n    | \"gif\"\n    | \"jpg\"\n    | \"bmp\"\n    | \"webp\"\n    | \"jp2\"\n    | \"svg\"\n    | \"mp4\"\n    | \"jxr\"\n    | \"avif\"\n    | \"jxl\"\n  // Define desired fit method.\n  fitMethod?: \"stretch\" | \"box\" | \"letterbox\" | \"cropbox\"\n  // Don't apply any optimizations to the origin image.\n  noOptimization?: true\n  // Adjust sharpness.\n  // Possible range: 0-100.\n  sharpness?: number\n  // Define rotation.\n  // Possible range: -360 to 360.\n  rotate?: number\n  // Use WURFL to calculate screen's width and then scale the image accordingly.\n  // Possible range: 0-100 (float).\n  scaleToScreenWidth?: number\n  // Crop the image [width, height, left, top].\n  crop?: number[]\n  // Convert the image into a data url.\n  inline?: true\n  // Keep EXIF data.\n  keepMeta?: true\n  force_download?: true;\n  max_device_pixel_ratio?: 2.1;   // 1-4 float\n}\n```\n\n`srcSet` - List of image variations for the image source set:\n\n```ts\nsrcSet?: [{\n  // Relative path to the image.\n  src: string\n  // Width descriptor.\n  width: string\n  // Custom optimization instructions.\n  directives?: TDirectives\n}]\n```\n\n\n### Source\n`srcSet` - List of image variations for the image source set:\n\n```ts\nsrcSet?: [{\n  // Relative path to the image.\n  src: string\n  // Width descriptor.\n  width: string\n  directives?: TDirectives\n}]\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimgeng%2Fimageengine-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimgeng%2Fimageengine-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimgeng%2Fimageengine-react/lists"}