{"id":21575582,"url":"https://github.com/rangle/alt-text-generator","last_synced_at":"2025-03-18T06:45:46.588Z","repository":{"id":232491756,"uuid":"691230378","full_name":"rangle/alt-text-generator","owner":"rangle","description":null,"archived":false,"fork":false,"pushed_at":"2023-09-13T18:55:34.000Z","size":211,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-01-24T13:32:26.590Z","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/rangle.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}},"created_at":"2023-09-13T18:55:20.000Z","updated_at":"2023-09-13T18:55:37.000Z","dependencies_parsed_at":"2024-04-18T04:15:29.043Z","dependency_job_id":null,"html_url":"https://github.com/rangle/alt-text-generator","commit_stats":null,"previous_names":["rangle/alt-text-generator"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rangle%2Falt-text-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rangle%2Falt-text-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rangle%2Falt-text-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rangle%2Falt-text-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rangle","download_url":"https://codeload.github.com/rangle/alt-text-generator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244173507,"owners_count":20410295,"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":[],"created_at":"2024-11-24T12:13:39.339Z","updated_at":"2025-03-18T06:45:46.566Z","avatar_url":"https://github.com/rangle.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Alt Image Generator\n\nThis project will generate relevant alt text for images using AI.\n\n![Alt Image Generator](ogimage.png)\n\n## How it works\n\nIt uses an ML modal from Salesforce called [BLIP](https://github.com/salesforce/BLIP) on [Replicate](https://replicate.com/) to generate relevant alt text for images. You can feed the Next.js API route an image as a query param and it will return a one sentence description of that image.\n\n## Clone and Deploy\n\nExecute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [pnpm](https://pnpm.io/installation) to bootstrap the example:\n\n```bash\npnpm create next-app --example https://github.com/vercel/examples/tree/main/solutions/alt-tag-generator\n```\n\nAfter cloning the repo, go to [Replicate](https://replicate.com/) to make an account and put your API key in a file called `.env.local`.\n\nThen, run the application in the command line and it will be available at `http://localhost:3000`.\n\n```bash\npnpm dev\n```\n\nTo use the API route, go to the link below in your browser or run a curl command in your terminal to get a sample result. Feel free to replace the dub.sh link with a link to any image.\n\n```bash\ncurl http://localhost:3000/api/generate?imageUrl=https://dub.sh/confpic\n```\n\n## One-Click Deploy\n\nDeploy the example using [Vercel](https://vercel.com?utm_source=github\u0026utm_medium=readme\u0026utm_campaign=vercel-examples):\n\n[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/vercel/examples/tree/main/solutions/alt-tag-generator\u0026env=REPLICATE_API_TOKEN\u0026project-name=alt-tag-generation\u0026repo-name=alt-tag-generation)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frangle%2Falt-text-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frangle%2Falt-text-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frangle%2Falt-text-generator/lists"}