{"id":42670860,"url":"https://github.com/android-com-pl/wp-ai-alt-generator","last_synced_at":"2026-03-06T03:04:16.669Z","repository":{"id":205997578,"uuid":"715312832","full_name":"android-com-pl/wp-ai-alt-generator","owner":"android-com-pl","description":"WordPress plugin that leverages OpenAI's Vision API to automatically generate descriptive alt text for images, enhancing accessibility and SEO.","archived":false,"fork":false,"pushed_at":"2026-01-22T10:30:44.000Z","size":9693,"stargazers_count":17,"open_issues_count":2,"forks_count":4,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-23T01:16:02.373Z","etag":null,"topics":["ai","gpt-4","gpt-4v","hacktoberfest","openai","php","plugin","wordpress","wordpress-plugin"],"latest_commit_sha":null,"homepage":"https://wordpress.org/plugins/alt-text-generator-gpt-vision/","language":"TypeScript","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/android-com-pl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["android-com-pl","rafaucau"]}},"created_at":"2023-11-06T22:21:59.000Z","updated_at":"2026-01-22T10:30:42.000Z","dependencies_parsed_at":"2023-11-12T15:52:23.905Z","dependency_job_id":"411897d4-5c52-4379-b059-ea2f2f5823b2","html_url":"https://github.com/android-com-pl/wp-ai-alt-generator","commit_stats":null,"previous_names":["android-com-pl/wp-gpt-vision-img-alt-generator","android-com-pl/wp-ai-alt-generator"],"tags_count":45,"template":false,"template_full_name":null,"purl":"pkg:github/android-com-pl/wp-ai-alt-generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/android-com-pl%2Fwp-ai-alt-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/android-com-pl%2Fwp-ai-alt-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/android-com-pl%2Fwp-ai-alt-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/android-com-pl%2Fwp-ai-alt-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/android-com-pl","download_url":"https://codeload.github.com/android-com-pl/wp-ai-alt-generator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/android-com-pl%2Fwp-ai-alt-generator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28876610,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T10:31:27.438Z","status":"ssl_error","status_checked_at":"2026-01-29T10:31:01.017Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["ai","gpt-4","gpt-4v","hacktoberfest","openai","php","plugin","wordpress","wordpress-plugin"],"created_at":"2026-01-29T10:56:30.289Z","updated_at":"2026-03-06T03:04:16.656Z","avatar_url":"https://github.com/android-com-pl.png","language":"TypeScript","funding_links":["https://github.com/sponsors/android-com-pl","https://github.com/sponsors/rafaucau"],"categories":[],"sub_categories":[],"readme":"# GPT-Powered Alt Text Generator for WordPress\n\nWordPress plugin that uses the OpenAI's API to automatically generate descriptive and contextually relevant alt text (matching your WordPress site's language) for\nimages during the upload process. This plugin is designed to enhance website accessibility and improve SEO with minimal\neffort.\n\n## Installation\n\nYou can download it here: https://wordpress.org/plugins/alt-text-generator-gpt-vision/\n\nOr use composer:\n\n```shell\ncomposer require wpackagist-plugin/alt-text-generator-gpt-vision\n```\n\n\u003e [!IMPORTANT]  \n\u003e The settings for the plugin are located in `Settings -\u003e Media`.\n\u003e You need to enter your [OpenAI's API key](https://platform.openai.com/api-keys) there.\n\n## Screenshots\n\n![Generating manually](https://github.com/android-com-pl/wp-ai-alt-generator/assets/25438601/0474e485-1149-4307-b229-5c973451e89a)\n![Bulk generation](./.wordpress-org/screenshot-1.png)\n\n## For Developers\n\n### Filters\n\n#### `acpl/ai_alt_generator/system_prompt`\n\nModifies the system prompt.\n\n**Parameters:**\n\n- `string $system_prompt`\n- `int $attachment_id`\n- `string $locale` - The current WordPress locale.\n- `string $language` - The display name of the current WordPress language.\n\n**Usage:**\n\n```php\nadd_filter('acpl/ai_alt_generator/system_prompt', function($system_prompt, $attachment_id, $locale, $language) {\n    // Modify the system prompt here\n    return $system_prompt;\n}, 10, 4);\n```\n\n#### `acpl/ai_alt_generator/user_prompt`\n\nModifies the user prompt.\n\n**Parameters:**\n\n- `string $user_prompt`\n- `int $attachment_id`\n- `string $locale` - The current WordPress locale.\n- `string $language` - The display name of the current WordPress language.\n\n**Usage:**\n\n```php\nadd_filter('acpl/ai_alt_generator/user_prompt', function($user_prompt, $attachment_id, $locale, $language) {\n    // Modify the user prompt here\n    return $user_prompt;\n}, 10, 4);\n```\n\n#### `acpl/ai_alt_generator/api_url`\n\nModifies the API URL used for generating alt text.\n\n**Parameters:**\n\n- `string $api_url` - Default: https://api.openai.com/v1/responses\n\n**Usage:**\n\n```php\nadd_filter('acpl/ai_alt_generator/api_url', function($api_url) {\n    // Modify the API URL here\n    return $api_url;\n});\n```\n\n#### `acpl/ai_alt_generator/api_request_headers`\n\nModifies the request headers sent to the OpenAI API.\n\n**Parameters:**\n\n- `array $request_headers`\n- `string $api_key`\n- `int $attachment_id`\n\n#### `acpl/ai_alt_generator/api_request_body`\n\nModifies the request body sent to the OpenAI API.\n\n**Parameters:**\n\n- `array $request_body`\n- `int $attachment_id`\n\n## Contributing\n\nIf you would like to contribute to the development of this plugin, please follow these steps:\n\n1. Fork the Repository: Start by forking the GitHub repository to your own account.\n2. Clone Your Fork: Clone your forked repository to your local machine.\n3. Install Dependencies:\n   - Run `pnpm install` to install JavaScript dependencies.\n   - Run `composer install` to set up PHP dependencies.\n4. Set Up Local Environment: Use `wp-env start` ([learn more](https://developer.wordpress.org/block-editor/reference-guides/packages/packages-env/)) to start a local WordPress environment for testing and development.\n5. For JavaScript development, run `pnpm run dev`.\n6. Make Your Changes: Implement your features or bug fixes in your fork.\n7. Test Your Changes: Ensure that your changes don't break any existing functionality.\n8. Create a Pull Request: Once you're happy with your changes, push them to your fork and create a pull request against the original repository.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandroid-com-pl%2Fwp-ai-alt-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandroid-com-pl%2Fwp-ai-alt-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandroid-com-pl%2Fwp-ai-alt-generator/lists"}