{"id":19000478,"url":"https://github.com/typesense/showcase-ai-image-search","last_synced_at":"2025-09-05T10:38:03.331Z","repository":{"id":231246431,"uuid":"781245450","full_name":"typesense/showcase-ai-image-search","owner":"typesense","description":"Text to image search \u0026 Image Similarity Search using @Typesense","archived":false,"fork":false,"pushed_at":"2025-02-05T00:52:40.000Z","size":44698,"stargazers_count":8,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-22T17:12:25.827Z","etag":null,"topics":["clip-model","clip-vit","image-search","similarity-search","text-to-image-search","typesense","typesense-showcase","vector-search"],"latest_commit_sha":null,"homepage":"https://ai-image-search.typesense.org","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/typesense.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,"zenodo":null}},"created_at":"2024-04-03T02:38:20.000Z","updated_at":"2025-04-07T01:38:58.000Z","dependencies_parsed_at":"2024-05-28T23:12:33.076Z","dependency_job_id":"efbf3906-8a9a-42e2-a9a4-e0604b489d78","html_url":"https://github.com/typesense/showcase-ai-image-search","commit_stats":null,"previous_names":["typesense/showcase-ai-image-search"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/typesense/showcase-ai-image-search","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typesense%2Fshowcase-ai-image-search","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typesense%2Fshowcase-ai-image-search/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typesense%2Fshowcase-ai-image-search/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typesense%2Fshowcase-ai-image-search/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/typesense","download_url":"https://codeload.github.com/typesense/showcase-ai-image-search/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typesense%2Fshowcase-ai-image-search/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262714504,"owners_count":23352464,"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":["clip-model","clip-vit","image-search","similarity-search","text-to-image-search","typesense","typesense-showcase","vector-search"],"created_at":"2024-11-08T18:07:25.197Z","updated_at":"2025-06-30T05:05:31.262Z","avatar_url":"https://github.com/typesense.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1\u003e\n 🤖 AI Image Search, powered by Typesense\n\u003c/h1\u003e\nThis is a demo that showcase \u003ca href=\"https://typesense.org/docs/26.0/api/image-search.html\" target=\"_blank\"\u003eTypesense's Image Search feature\u003c/a\u003e which includes:\n\n\u003cbr /\u003e\n\u003cbr /\u003e\n\n- Search images using text descriptions of their contents\n- Image Similarity search\n\n🌇 🔍 Live Demo: [ai-image-search.typesense.org](https://ai-image-search.typesense.org)\n\n## Tech Stack\n\n- \u003ca href=\"https://github.com/typesense/typesense\" target=\"_blank\"\u003eTypesense\u003c/a\u003e\n- \u003ca href=\"https://nextjs.org/\" target=\"_blank\"\u003eNextJS\u003c/a\u003e\n- Typescript\n- Tailwind\n\nThe data contains 1265 best images out of the first 5000 image-prompt pairs which were taken from \u003ca href=\"https://github.com/poloclub/diffusiondb\" target=\"_blank\"\u003eDiffusionDB\u003c/a\u003e and then filtered based on aesthetics using \u003ca href=\"https://github.com/kenjiqq/aesthetics-scorer\" target=\"_blank\"\u003eaesthetics-scorer\u003c/a\u003e.\n\n## Project Structure\n\n```bash\n├── scripts/\n│   ├── data/\n│   │   └── 20-images.json\n│   └── indexTypesense.ts # script that index data from 20-images.json into typesense server\n└── src/\n    ├── app/\n    │   ├── [slug]/\n    │   │   └── page.tsx # explore similar style (search similar images with image)\n    │   └── page.tsx # search images using text descriptions\n    ├── components/\n    │   └── UI components...\n    ├── hooks/\n    │   └── useImageSearch.ts\n    └── lib/\n        └── typesense.ts # typesense client config\n```\n\n## Development\n\nTo run this project locally, make sure you have docker and nodejs, install dependencies and start the dev server:\n\nInstallation\n\n```shell\ngit clone https://github.com/typesense/showcase-ai-image-search.git\n\ncd showcase-ai-image-search\n\nnpm i\n```\n\nStart typesense server\n\n```shell\nnpm run start:typesense # or: docker compose up\n```\n\nDownload sample data:\n\n```shell\n# From the root of the repo:\n\ncurl -o ./scripts/data/20-images.jsonl https://ai-image-search-images.typesense.org/20-images.jsonl\n```\n\nIndex data into typesense\n\n```shell\nnpm run index:typesense\n```\n\nStart the dev server\n\n```shell\nnpm run dev\n```\n\nOpen http://localhost:3000 to see the app ✌️\n\n## Environment\n\nSet env variables in `.env` file to point the app to the Typesense Cluster\n\n```env\nNEXT_PUBLIC_TYPESENSE_SEARCH_ONLY_API_KEY=xxx\nNEXT_PUBLIC_TYPESENSE_HOST=xxx.typesense.net\nNEXT_PUBLIC_TYPESENSE_PORT=443\nNEXT_PUBLIC_TYPESENSE_PROTOCOL=https\nNEXT_PUBLIC_IMAGE_BASE_URL=...\n```\n\nOnly for indexing:\n\n```env\nDIFFUSION_DB_JSONL_FILE=...\nTYPESENSE_ADMIN_API_KEY=...\nINDEXING_BATCH_SIZE=100\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftypesense%2Fshowcase-ai-image-search","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftypesense%2Fshowcase-ai-image-search","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftypesense%2Fshowcase-ai-image-search/lists"}