{"id":29655941,"url":"https://github.com/mrmps/lookalikeceleb","last_synced_at":"2025-10-14T08:14:38.763Z","repository":{"id":300911470,"uuid":"1006441865","full_name":"mrmps/LookalikeCeleb","owner":"mrmps","description":"Find your celebrity twin with AI – React + Bun + Hono demo powered by Inference.net","archived":false,"fork":false,"pushed_at":"2025-07-22T02:20:13.000Z","size":3635,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-22T02:36:21.480Z","etag":null,"topics":["ai","bun","celebrity","doppelganger","hono","llm","lookalike"],"latest_commit_sha":null,"homepage":"https://www.lookalikeceleb.com/","language":"TypeScript","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/mrmps.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":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-22T09:26:05.000Z","updated_at":"2025-07-22T02:20:17.000Z","dependencies_parsed_at":"2025-06-24T08:44:36.424Z","dependency_job_id":null,"html_url":"https://github.com/mrmps/LookalikeCeleb","commit_stats":null,"previous_names":["mrmps/lookalikeceleb"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mrmps/LookalikeCeleb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrmps%2FLookalikeCeleb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrmps%2FLookalikeCeleb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrmps%2FLookalikeCeleb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrmps%2FLookalikeCeleb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrmps","download_url":"https://codeload.github.com/mrmps/LookalikeCeleb/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrmps%2FLookalikeCeleb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279018305,"owners_count":26086334,"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-14T02:00:06.444Z","response_time":60,"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":["ai","bun","celebrity","doppelganger","hono","llm","lookalike"],"created_at":"2025-07-22T08:09:13.383Z","updated_at":"2025-10-14T08:14:38.746Z","avatar_url":"https://github.com/mrmps.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"public/og.png\" alt=\"Screenshot of LookalikeCeleb\" width=\"640\" style=\"border-radius:12px;box-shadow:0 4px 24px #0002\"\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003e🎬 LookalikeCeleb\u003c/h1\u003e\n\u003cp align=\"center\"\u003e\u003cstrong\u003e\n  Find your celebrity twin with AI \u0026nbsp;•\u0026nbsp; Open source \u0026nbsp;•\u0026nbsp; Powered by \u003ca href=\"https://inference.net\"\u003eInference.net\u003c/a\u003e\n\u003c/strong\u003e\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://lookalikeceleb.com\"\u003e\u003cimg alt=\"Live demo badge\" src=\"https://img.shields.io/badge/Demo-lookalikeceleb.com-4F46E5?logo=vercel\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://docs.inference.net/features/vision\"\u003e\u003cimg alt=\"Powered by Inference.net\" src=\"https://img.shields.io/badge/Vision%20API-Inference.net-E879F9\"\u003e\u003c/a\u003e\n  \u003cimg alt=\"Repo size\" src=\"https://img.shields.io/github/repo-size/mrmps/lookalikeceleb?color=success\"\u003e\n\u003c/p\u003e\n\n---\n\n## 📸 How it works\n\n1. **Upload a photo** (PNG/JPG, paste, or camera)\n2. **AI analysis** via Inference.net Vision + LLM returns structured JSON with your top celebrity matches\n3. **Results display** with hi-res images, similarity scores, and shareable cards\n4. **Privacy-first** - no accounts, no storage, everything processed in memory\n\n\u003cbr/\u003e\n\n## 🔧 Features\n\n- **Transparent AI** - structured JSON responses from Inference.net, not black-box results\n- **Fast development** - full-stack multimodal demo in minutes with `pnpm run dev`\n- **Type-safe** - JSON schema enforcement with TypeScript + Zod validation\n- **Share-ready** - built-in card generator for social media (copy, download, platform links)\n- **Production-ready** - Bun + Hono backend, Docker support, no vendor lock-in\n- **Privacy-focused** - optional analytics, no data storage\n\n\u003cbr/\u003e\n\n## 🧰 Tech Stack\n\n- **Frontend** – Vite • React 18 • shadcn/ui • TailwindCSS  \n- **Backend**  – Bun runtime • Hono router • TypeScript end‑to‑end  \n- **AI**       – [Inference.net Vision API](https://docs.inference.net/features/vision) + Structured Outputs  \n- **Deploy**   – Railway, Vercel, Fly.io, or any Docker host\n\n\u003cbr/\u003e\n\n## 🚀 Quick Start\n\n```bash\ngit clone https://github.com/yourrepo/lookalikeceleb.git\ncd lookalikeceleb\npnpm install                 # or bun install / npm i\ncp .env.example .env         # add INFERENCE_API_KEY\npnpm run dev                 # frontend at http://localhost:5173\nbun run server:index.ts      # backend at http://localhost:3000\n```\n\n\u003e **Tip:** Vite proxy is pre-configured — uploads hit `/api` on port 3000 automatically.\n\n\u003cbr/\u003e\n\n## 📊 Analytics (Optional)\n\nLookalikeCeleb includes optional **Plausible Analytics** for privacy-friendly tracking:\n\n```typescript\n// In App.tsx - automatically skips if env vars not set\nconst plausible = Plausible({\n  domain: import.meta.env.VITE_PLAUSIBLE_DOMAIN,\n  apiHost: import.meta.env.VITE_PLAUSIBLE_HOST,\n  trackLocalhost: false, // Only tracks in production\n});\n```\n\n### Setup (Optional)\n\nAdd to your `.env` file:\n```env\nVITE_PLAUSIBLE_DOMAIN=yourdomain.com\nVITE_PLAUSIBLE_HOST=https://plausible.io\n# Or use your own Plausible instance\n```\n\n### Remove Analytics\n\nSimply delete the `useEffect` block in `src/App.tsx` or leave env vars unset.\n\n\u003e **Note:** Analytics only tracks in production (ignores localhost). No tracking = no data collected.\n\n\u003cbr/\u003e\n\n## 🏗️ Architecture\n\n```mermaid\nflowchart TD\n  A[Client React] --\u003e B[API Matches Hono+Bun]\n  B --\u003e C[Inference.net Vision LLM]\n  C --\u003e B\n  B --\u003e D[Image Search Proxy]\n  B --\u003e A\n```\n\n**Flow:**\n- Client uploads image to Hono API\n- Server sends vision prompt to Inference.net with JSON schema\n- AI returns structured celebrity matches\n- Server fetches hi-res images via search proxy (avoids CORS)\n- Combined response sent back to client\n\n\u003cbr/\u003e\n\n## ✨ API Example\n\n\u003cdetails\u003e\n\u003csummary\u003eInference.net Request → Response\u003c/summary\u003e\n\n**Request**\n\n```jsonc\nPOST https://api.inference.net/v1/chat/completions\n{\n  \"model\": \"google/gemma-3-27b-instruct/bf-16\",\n  \"messages\": [\n    {\"role\":\"user\",\"content\":[\n      { \"type\":\"image_url\",\n        \"image_url\":{\"url\":\"data:image/jpeg;base64,...\" }\n      },\n      { \"type\":\"text\",\n        \"text\":\"Find top 3 celebrity look‑alikes with explanation.\"}\n    ]}\n  ],\n  \"response_format\":{\n    \"type\":\"json_schema\",\n    \"json_schema\":{\n      \"type\":\"object\",\n      \"properties\":{\n        \"matches\":{\"type\":\"array\",\"minItems\":3,\"maxItems\":3,\n          \"items\":{\n            \"type\":\"object\",\n            \"properties\":{\n              \"name\":{\"type\":\"string\"},\n              \"percentage\":{\"type\":\"number\"},\n              \"description\":{\"type\":\"string\"}\n            },\n            \"required\":[\"name\",\"percentage\",\"description\"]\n          }\n        }\n      }\n    }\n  }\n}\n```\n\n**Response**\n\n```json\n{\n  \"matches\": [\n    { \"name\":\"Emma Stone\",\"percentage\":94,\n      \"description\":\"Wide-set green eyes, pronounced cheekbones…\" },\n    { \"name\":\"Ryan Gosling\",\"percentage\":87,\n      \"description\":\"Similar jawline, nose bridge, blue eyes…\" },\n    { \"name\":\"Zendaya\",\"percentage\":82,\n      \"description\":\"Matching eyebrow arch, chin profile…\" }\n  ]\n}\n```\n\n\u003c/details\u003e\n\n\u003cbr/\u003e\n\n## 🚀 Deploy\n\n| Platform | Instructions                                                                                                                                          |\n| -------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |\n| Railway  | [![Deploy to Railway](https://railway.app/button.svg)](https://railway.com?referralCode=hKysZG) |\n| Docker   | `docker build -t lookalikeceleb . \u0026\u0026 docker run -p 3000:3000 --env-file .env lookalikeceleb`    |\n\nSet `INFERENCE_API_KEY` in your environment variables.\n\n\u003cbr/\u003e\n\n## 🤝 Contributing\n\nWe welcome contributions! Ideas for improvements:\n\n- New share card templates\n- Additional AI providers\n- Performance optimizations  \n- Dark mode\n- Mobile app version\n\n1. Fork this repo\n2. Create a feature branch: `git checkout -b my-feature`\n3. Commit your changes and open a PR\n\n\u003cbr/\u003e\n\n## 📜 License\n\n[MIT](LICENSE) - feel free to use this in your own projects.\n\n---\n\n\u003e **A practical demo of multimodal AI for the open source community.  \n\u003e Built to show what's possible with modern vision models.**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrmps%2Flookalikeceleb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrmps%2Flookalikeceleb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrmps%2Flookalikeceleb/lists"}