{"id":20206517,"url":"https://github.com/useflyyer/proxy","last_synced_at":"2025-06-13T00:05:52.663Z","repository":{"id":38426016,"uuid":"358101736","full_name":"useflyyer/proxy","owner":"useflyyer","description":"Helper function to proxy images via Flyyer network to bypass CORS with Typescript support for Flyyer.io","archived":false,"fork":false,"pushed_at":"2023-03-06T00:08:55.000Z","size":1694,"stargazers_count":1,"open_issues_count":6,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-13T00:03:57.428Z","etag":null,"topics":["cors","flyyer","image","og-image","proxy","smartcrop","twitter-card","typescript"],"latest_commit_sha":null,"homepage":"https://flyyer.io","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/useflyyer.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}},"created_at":"2021-04-15T02:23:24.000Z","updated_at":"2022-01-15T14:49:51.000Z","dependencies_parsed_at":"2023-07-17T08:44:47.710Z","dependency_job_id":"c6d8216d-cd96-4964-bebc-45fe88e945c4","html_url":"https://github.com/useflyyer/proxy","commit_stats":{"total_commits":23,"total_committers":2,"mean_commits":11.5,"dds":0.08695652173913049,"last_synced_commit":"76314e8be49465f631249e848be887698df58c75"},"previous_names":["flayyer/proxy"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/useflyyer/proxy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/useflyyer%2Fproxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/useflyyer%2Fproxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/useflyyer%2Fproxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/useflyyer%2Fproxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/useflyyer","download_url":"https://codeload.github.com/useflyyer/proxy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/useflyyer%2Fproxy/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259553130,"owners_count":22875609,"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":["cors","flyyer","image","og-image","proxy","smartcrop","twitter-card","typescript"],"created_at":"2024-11-14T05:24:34.956Z","updated_at":"2025-06-13T00:05:52.629Z","avatar_url":"https://github.com/useflyyer.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @flyyer/proxy\n\nHelper function to proxy images via flyyer network to bypass CORS with Typescript support.\n\nWe made this for [Flyyer.io](https://flyyer.io?ref=github) to enable developers to create content-aware marketing and social images. Beware this is intended to use inside flyyer templates created with [`create-flyyer-app`](https://github.com/useflyyer/create-flyyer-app).\n\n**Note: This proxy service is only available and allowed for flyyer templates where bypassing CORS is necessary for images or data.**\n\n## Usage\n\nInstall this dependency:\n\n```sh\nyarn add @flyyer/proxy\n```\n\nCommon case usage:\n\n```tsx\nimport { proxy } from \"@flyyer/proxy\";\n\nexport default function MainTemplate({ variables }) {\n  const src = proxy(variables[\"image\"]);\n  return \u003cimg src={src} /\u003e\n}\n```\n\n### Smartcrop\n\n![example image](https://github.com/useflyyer/use-smartcrop/raw/main/.github/image.jpeg)\n\nUsage with [`use-smartcrop`](https://github.com/useflyyer/use-smartcrop).\n\n```tsx\nimport { proxy } from \"@flyyer/proxy\";\nimport { useSmartcrop } from \"use-smartcrop\";\n\nexport default function MainTemplate({ width, height, variables }) {\n  const src = proxy(variables[\"image\"]);\n  const cropped = useSmartcrop(src, { width, height, minScale: 1 })\n  return \u003cimg src={cropped.src} /\u003e\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuseflyyer%2Fproxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuseflyyer%2Fproxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuseflyyer%2Fproxy/lists"}