{"id":18058196,"url":"https://github.com/nicolasperez19/astro-image-autocaption","last_synced_at":"2025-10-09T10:08:09.419Z","repository":{"id":260362967,"uuid":"880940914","full_name":"nicolasperez19/astro-image-autocaption","owner":"nicolasperez19","description":"An Astro component that automatically generates image captions using the Replicate API if no alt text is provided. Perfect for accessible and SEO-friendly image handling!","archived":false,"fork":false,"pushed_at":"2024-11-09T01:23:30.000Z","size":2293,"stargazers_count":2,"open_issues_count":6,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-19T02:45:11.402Z","etag":null,"topics":["accessibility","astro","component","image","image-captioning","react","replicate-api","tailwindcss","typescript"],"latest_commit_sha":null,"homepage":"","language":"Astro","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/nicolasperez19.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-10-30T16:24:17.000Z","updated_at":"2024-11-23T10:39:18.000Z","dependencies_parsed_at":"2025-08-19T02:43:46.869Z","dependency_job_id":null,"html_url":"https://github.com/nicolasperez19/astro-image-autocaption","commit_stats":null,"previous_names":["nicolasperez19/astro-image-autocaption"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nicolasperez19/astro-image-autocaption","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicolasperez19%2Fastro-image-autocaption","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicolasperez19%2Fastro-image-autocaption/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicolasperez19%2Fastro-image-autocaption/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicolasperez19%2Fastro-image-autocaption/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nicolasperez19","download_url":"https://codeload.github.com/nicolasperez19/astro-image-autocaption/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicolasperez19%2Fastro-image-autocaption/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001321,"owners_count":26083040,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["accessibility","astro","component","image","image-captioning","react","replicate-api","tailwindcss","typescript"],"created_at":"2024-10-31T03:05:30.169Z","updated_at":"2025-10-09T10:08:09.381Z","avatar_url":"https://github.com/nicolasperez19.png","language":"Astro","funding_links":["https://github.com/sponsors/nicolasperez19","https://buymeacoffee.com/nico_perez"],"categories":[],"sub_categories":[],"readme":"# Astro Image Auto-Caption Component\n\n![GitHub stars](https://img.shields.io/github/stars/nicolasperez19/astro-image-autocaption?style=for-the-badge)\n[![GitHub Sponsors](https://img.shields.io/badge/Sponsor-GitHub%20Sponsors-red?style=for-the-badge\u0026logo=github-sponsors)](https://github.com/sponsors/nicolasperez19)\n[![Buy Me a Coffee](https://img.shields.io/badge/Buy%20Me%20A%20Coffee-donate-yellow?style=for-the-badge\u0026logo=buy-me-a-coffee)](https://buymeacoffee.com/nico_perez)\n\n# Table of Contents\n1. [Installation](#installation)\n2. [Running the project](#running-the-project)\n3. [Project structure](#project-structure)\n\n## 💾 Install the Project\nTo install the project, clone the git repo and install the dependencies by running the following commands in your terminal:\n```sh\ngit clone https://github.com/nicolasperez19/astro-image-autocaption.git\ncd astro-image-autocaption\nbun install\n```\nThe image component uses the [Replicate API](https://replicate.com/) in order to auto-caption the image. To use the Replicate API, you need an API token for authentication. You must place your API token in a `.env` file with the variable name `REPLICATE_API_TOKEN`, like so: \n```sh\nREPLICATE_API_TOKEN=\"\u003cadd_your_replicate_api_token_here\u003e\"\n```\n\n## 🏃‍♂️💨 Run the Project\nTo run the project locally in developer mode, running the following commands in your terminal:\n```sh\nbun run dev\n```\n\n## 🚀 Project Structure\n\nInside of your Astro project, you'll see the following folders and files:\n\n```text\n/\n├── public/\n│   └── favicon.svg\n├── src/\n│   ├── components/\n│   │   └── Card.astro\n│   ├── layouts/\n│   │   └── Layout.astro\n│   └── pages/\n│       └── index.astro\n└── package.json\n```\n\nAstro looks for `.astro` or `.md` files in the `src/pages/` directory. Each page is exposed as a route based on its file name.\n\nThere's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.\n\nAny static assets, like images, can be placed in the `public/` directory.\n\n## 🤝 Acknowledgments\n\nHats off to [Kavish Soam](https://github.com/kavishsoam) for making valuable contributions to the documentation!\n\n## 📝 Citation\n\nIf you would like to cite this project, please use the following BibTeX entry:\n\n```bibtex\n@misc{astro_image_autocaption,\n  author = {Nicolas Perez},\n  title = {Astro Image Autocaption},\n  year = {2024},\n  publisher = {GitHub},\n  journal = {GitHub repository},\n  howpublished = {\\url{https://github.com/nicolasperez19/astro-image-autocaption}},\n  note = {Version 1.1.0},\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicolasperez19%2Fastro-image-autocaption","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnicolasperez19%2Fastro-image-autocaption","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicolasperez19%2Fastro-image-autocaption/lists"}