{"id":23053132,"url":"https://github.com/fairdataihub/alt-text-generator","last_synced_at":"2025-08-15T03:32:24.136Z","repository":{"id":103246522,"uuid":"586019123","full_name":"fairdataihub/alt-text-generator","owner":"fairdataihub","description":"Generate alt text descriptions for images","archived":false,"fork":false,"pushed_at":"2024-12-14T09:49:20.000Z","size":497,"stargazers_count":30,"open_issues_count":11,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-12-14T10:26:02.019Z","etag":null,"topics":["ai","alt-text","image-recognition","replicate"],"latest_commit_sha":null,"homepage":"https://alt.fairdataihub.org","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/fairdataihub.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}},"created_at":"2023-01-06T18:09:21.000Z","updated_at":"2024-12-11T06:11:32.000Z","dependencies_parsed_at":"2023-10-23T15:33:30.171Z","dependency_job_id":"190c1842-06ad-462d-bc26-64c166f108d5","html_url":"https://github.com/fairdataihub/alt-text-generator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fairdataihub%2Falt-text-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fairdataihub%2Falt-text-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fairdataihub%2Falt-text-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fairdataihub%2Falt-text-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fairdataihub","download_url":"https://codeload.github.com/fairdataihub/alt-text-generator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229890105,"owners_count":18140043,"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":["ai","alt-text","image-recognition","replicate"],"created_at":"2024-12-16T00:16:39.866Z","updated_at":"2024-12-16T00:16:40.411Z","avatar_url":"https://github.com/fairdataihub.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## Project setup\n\nMake sure to install the dependencies.\n\n```bash\nyarn install\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\n### Compiles and hot-reloads for development\n\nThen, run the application in the command line and it will be available at `http://localhost:3000`.\n\n```bash\nyarn dev\n```\n\n### How to use\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### Compiles and minifies for production\n\nUse this step to build a local production version of the site. Use `start` to preview the local build.\n\n```bash\nyarn build\nyarn start\n```\n\n### Requirements\n\n- Node.js \u003e= 16.14.0\n- Yarn 1 (Classic)\n\n### Directory Structure\n\n- [`.github`](.github) — GitHub configuration including the CI workflow.\u003cbr\u003e\n- [`.husky`](.husky) — Husky configuration and hooks.\u003cbr\u003e\n- [`public`](./public) — Static assets such as robots.txt, images, and favicon.\u003cbr\u003e\n- [`pages`](./pages) — Application source code, including pages, components, styles.\n\n### Scripts\n\n- `yarn dev` — Starts the application in development mode at `http://localhost:3000`.\n- `yarn build` — Creates an optimized production build of your application.\n- `yarn start` — Starts the application in production mode.\n- `yarn type-check` — Validate code using TypeScript compiler.\n- `yarn lint` — Runs ESLint for all files in the `src` directory.\n- `yarn format` — Runs Prettier for all files in the `src` directory.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for more information.\n\nNote: You will not need to do anything to the hosted site. Continuous Delivery has been setup with Vercel. All you need to do is push your commit and wait for it to deploy.\n\n## Acknowledgements\n\nA special thank you to Vercel for hosting this application.\n\n![](https://www.datocms-assets.com/31049/1618983297-powered-by-vercel.svg)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffairdataihub%2Falt-text-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffairdataihub%2Falt-text-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffairdataihub%2Falt-text-generator/lists"}