{"id":15159587,"url":"https://github.com/otterdev-io/sanity-img","last_synced_at":"2026-02-27T13:39:15.619Z","repository":{"id":199422107,"uuid":"702293716","full_name":"otterdev-io/sanity-img","owner":"otterdev-io","description":"Sanity image tags for common frontend frameworks","archived":false,"fork":false,"pushed_at":"2023-11-09T06:10:04.000Z","size":492,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-29T12:44:50.680Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/otterdev-io.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-10-09T03:09:16.000Z","updated_at":"2023-10-13T00:55:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"44e08ff1-f4d4-4492-85fb-763ea8cde67d","html_url":"https://github.com/otterdev-io/sanity-img","commit_stats":{"total_commits":22,"total_committers":3,"mean_commits":7.333333333333333,"dds":0.09090909090909094,"last_synced_commit":"5dc0d51a91e2d406b3a8e58e37b575dfdbad44da"},"previous_names":["otterdev-io/sanity-image-component","otterdev-io/sanity-img"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/otterdev-io/sanity-img","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otterdev-io%2Fsanity-img","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otterdev-io%2Fsanity-img/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otterdev-io%2Fsanity-img/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otterdev-io%2Fsanity-img/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/otterdev-io","download_url":"https://codeload.github.com/otterdev-io/sanity-img/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otterdev-io%2Fsanity-img/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279289951,"owners_count":26141131,"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-10-17T02:00:07.504Z","response_time":56,"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-09-26T21:40:26.608Z","updated_at":"2025-10-17T05:28:53.767Z","avatar_url":"https://github.com/otterdev-io.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# otterstack - sanity-img\n\nAn set of js framework components for rendering responsive `\u003cimg\u003e` elements for images fetched from [Sanity](https://www.sanity.io). They will generate the elements with a srcset optimised for a range of resolutions and formats, using sanity's image API to serve the optimised images. Then you provide the `sizes` attribute, to ensure the browser delivers the ideal source. Refer to [Responsive images - MDN](https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images) for information on providing responsive images.\n\nThen usage can be as simple as:\n\n```astro\n---\nimport SanityImg from \"@otterstack/sanity-img-astro\"\n---\n   \u003cSanityImg\n    src={myImage}\n    sizes=\"(min-width:768px) 50vw, 100vw\"\n  /\u003e\n```\n\nRefer to the readme file in each package for specific usage instructions in the relevant framework:\n\n- [Astro](https://github.com/otterdev-io/sanity-img/tree/main/astro#readme)\n- [Svelte](https://github.com/otterdev-io/sanity-img/tree/main/svelte#readme)\n\nThere is a sample project demonstrating its use in astro, with astro and svelte components, in the `examples/astro` directory.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fotterdev-io%2Fsanity-img","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fotterdev-io%2Fsanity-img","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fotterdev-io%2Fsanity-img/lists"}