{"id":15549236,"url":"https://github.com/adityaoberai/alt-text-generator","last_synced_at":"2025-08-22T00:31:55.604Z","repository":{"id":158773546,"uuid":"634231650","full_name":"adityaoberai/Alt-Text-Generator","owner":"adityaoberai","description":"Generate alt text for your images!","archived":false,"fork":false,"pushed_at":"2024-05-08T13:37:29.000Z","size":214,"stargazers_count":139,"open_issues_count":2,"forks_count":6,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-23T12:43:04.240Z","etag":null,"topics":["a11y","accessibility","azure-openai-service","computer-vision","hacktoberfest","javascript","serverless","svelte","vercel","vite"],"latest_commit_sha":null,"homepage":"https://alttext.in","language":"Svelte","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adityaoberai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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-04-29T13:19:08.000Z","updated_at":"2024-11-12T20:05:14.000Z","dependencies_parsed_at":"2024-10-22T17:49:51.339Z","dependency_job_id":null,"html_url":"https://github.com/adityaoberai/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/adityaoberai%2FAlt-Text-Generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adityaoberai%2FAlt-Text-Generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adityaoberai%2FAlt-Text-Generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adityaoberai%2FAlt-Text-Generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adityaoberai","download_url":"https://codeload.github.com/adityaoberai/Alt-Text-Generator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230542288,"owners_count":18242332,"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":["a11y","accessibility","azure-openai-service","computer-vision","hacktoberfest","javascript","serverless","svelte","vercel","vite"],"created_at":"2024-10-02T13:32:11.292Z","updated_at":"2024-12-20T06:06:57.734Z","avatar_url":"https://github.com/adityaoberai.png","language":"Svelte","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ca href=\"https://alttext.in\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://user-images.githubusercontent.com/31401437/235480543-f89912d6-19bf-4761-9f22-86c2ea523b46.png\" alt=\"Alt Text Generator\" width=\"1000\"\u003e\n\u003c/a\u003e\n\n# Alt Text Generator\n[![RepoRater](https://repo-rater.eddiehub.io/api/badge?owner=adityaoberai\u0026name=Alt-Text-Generator)](https://repo-rater.eddiehub.io/rate?owner=adityaoberai\u0026name=Alt-Text-Generator)\n\n## Description\n\n**Vite** + **Svelte** app that uses **Azure OpenAI Service (GPT-4 Turbo with Vision)** and a **Vercel Serverless Function** to analyse an image and provide you with a caption to use as alt text!\n\n## Demo Recording\n\nhttps://github.com/adityaoberai/Alt-Text-Generator/assets/31401437/cdf2ce3c-0c72-47e0-bab2-8bac8e0cd4cc\n\n## Steps to Run Locally\n\n- Create a [Microsoft Azure account](https://azure.microsoft.com/free/), followed by a [OpenAI resource with Vision preview](https://learn.microsoft.com/en-us/azure/ai-services/openai/gpt-v-quickstart?source=recommendations\u0026tabs=image%2Ccommand-line\u0026pivots=rest-api)\n    - Make sure to choose one of the following Azure regions: `Australia East`, `Japan East`, `Sweden Central`, `Switzerland North`, and `West US` (since we're using the `gpt-4`, `vision-preview` model, which is in preview)\n- Install [Vercel CLI](https://vercel.com/docs/cli)\n- Clone this repository\n- Run `npm install`\n- Change the file `.env.example` to `.env`\n- Add your Azure Computer Vision endpoint and API key to the .env file\n- Add your environment variables to the Vercel project using `vercel env add ENV_VAR` command (replace `ENV_VAR` with your environment variables)\n- Run `vercel dev`\n\n## Using REST API\n\n### POST `/api/alttext`\n\n**Parameters**\n\n| Name              | Description                          | Location | Type               |\n| ----------------- | ------------------------------------ | -------- | ------------------ |\n| Content-Type      | The content type of the request body | Header   | `application/json` |\n| image             | Image to get alt text for            | Body     | Base64 string      |\n\n**Request**\n\n```json\n{\n  \"image\": \"data:image/jpeg;base64,/9j/4f/+RXhpZgAASUkqAAgAAA...\"\n}\n```\n\n**Response**\n\nSample Response:\n\n```json\n{\n  \"message\": \"A group of individuals focused on their laptops at a dimly-lit indoor event, with some engaging in discussion while others are intently viewing their screens. Visible stickers and branding on the laptops suggest a tech-oriented gathering.\"\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadityaoberai%2Falt-text-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadityaoberai%2Falt-text-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadityaoberai%2Falt-text-generator/lists"}