{"id":26668935,"url":"https://github.com/hqasmei/captionai","last_synced_at":"2025-04-12T01:56:25.707Z","repository":{"id":143896773,"uuid":"616300009","full_name":"hqasmei/captionAI","owner":"hqasmei","description":"AI generated captions for your images.","archived":false,"fork":false,"pushed_at":"2023-03-22T19:01:41.000Z","size":4020,"stargazers_count":46,"open_issues_count":0,"forks_count":10,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-12T01:56:19.886Z","etag":null,"topics":["nextjs","redis","tailwindcss","typescript","upstash","vercel"],"latest_commit_sha":null,"homepage":"https://captionai.vercel.app/","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/hqasmei.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-03-20T05:34:52.000Z","updated_at":"2024-12-10T02:19:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"35438fd1-0189-41aa-9a3e-111303a9abc2","html_url":"https://github.com/hqasmei/captionAI","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/hqasmei%2FcaptionAI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hqasmei%2FcaptionAI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hqasmei%2FcaptionAI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hqasmei%2FcaptionAI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hqasmei","download_url":"https://codeload.github.com/hqasmei/captionAI/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248505864,"owners_count":21115354,"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":["nextjs","redis","tailwindcss","typescript","upstash","vercel"],"created_at":"2025-03-25T21:35:24.692Z","updated_at":"2025-04-12T01:56:25.687Z","avatar_url":"https://github.com/hqasmei.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [CaptionAI](https://captionai.vercel.app/)\n\nThis project creates captions for photos using AI. \n\n[![CaptionAI](./public/screenshot.png)](https://captionai.vercel.app/)\n\n## How it works\nDeveloped this using [this template.](https://github.com/Nutlope/restorePhotos/tree/1c5c8ac4f52a08f68a3091d3b21be8a65aef71f2)\n\nIt uses an ML model from salesforce called [BLIP](https://github.com/salesforce/BLIP) on [Replicate](https://replicate.com/) to convert images into text. This application gives you the ability to upload any photo, which will send it through this ML Model using a Next.js API route, and return your caption.\n\n## Running Locally\n\n### Cloning the repository the local machine.\n\n```bash\ngit clone\n```\n\n### Creating a account on Replicate to get an API key.\n\n1. Go to [Replicate](https://replicate.com/) to make an account.\n2. Click on your profile picture in the top right corner, and click on \"Dashboard\".\n3. Click on \"Account\" in the navbar. And, here you can find your API token, copy it.\n\n### Storing API key in .env file.\n\nCreate a file in root directory of project with env. And store your API key in it, as shown in the .example.env file.\n\nIf you'd also like to do rate limiting, create an account on UpStash, create a Redis database, and populate the two environment variables in `.env` as well. If you don't want to do rate limiting, you don't need to make any changes.\n\n### Installing the dependencies.\n\n```bash\nnpm install\n```\n\n### Running the application.\n\nThen, run the application in the command line and it will be available at `http://localhost:3000`.\n\n```bash\nnpm run dev\n```\n \n## Deploy\n\nWhen deploying on Vercel also include the Environmentable Variables.\n\n## Powered by\n\nThis example is powered by the following 3 services:\n\n- [Replicate](https://replicate.com) (AI API)\n- [Upload](https://upload.io) (storage)\n- [Upstash Redis](https://docs.upstash.com/redis) (Rate Limiting)\n- [Vercel](https://vercel.com) (hosting, serverless functions, analytics)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhqasmei%2Fcaptionai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhqasmei%2Fcaptionai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhqasmei%2Fcaptionai/lists"}