{"id":50982982,"url":"https://github.com/plfavreau/design-variant-picker","last_synced_at":"2026-06-19T16:06:32.934Z","repository":{"id":363107119,"uuid":"1260511089","full_name":"plfavreau/design-variant-picker","owner":"plfavreau","description":"Human-in-the-loop design variant picker for OpenCode. Pick or regenerate HTML design variants from a live browser grid, powered by your conversation's model.","archived":false,"fork":false,"pushed_at":"2026-06-07T13:13:16.000Z","size":18992,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-07T14:15:35.406Z","etag":null,"topics":["design","frontend","human-in-the-loop","opencode","opencode-plugin","ui"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/design-variant-picker","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/plfavreau.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-05T15:11:59.000Z","updated_at":"2026-06-07T13:13:20.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/plfavreau/design-variant-picker","commit_stats":null,"previous_names":["plfavreau/design-variant-picker"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/plfavreau/design-variant-picker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plfavreau%2Fdesign-variant-picker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plfavreau%2Fdesign-variant-picker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plfavreau%2Fdesign-variant-picker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plfavreau%2Fdesign-variant-picker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/plfavreau","download_url":"https://codeload.github.com/plfavreau/design-variant-picker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plfavreau%2Fdesign-variant-picker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34538480,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-19T02:00:06.005Z","response_time":61,"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":["design","frontend","human-in-the-loop","opencode","opencode-plugin","ui"],"created_at":"2026-06-19T16:06:32.290Z","updated_at":"2026-06-19T16:06:32.927Z","avatar_url":"https://github.com/plfavreau.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# design-variant-picker\n\nA design picker for [OpenCode](https://opencode.ai) that keeps you in the loop. The agent builds HTML design variants, and you pick one (or ask for more) from a live grid in your browser. New variants are made by the model you're already chatting with, so there's **no image-generating model required**. The model just writes HTML, no extra model, no API keys.\n\n## Demo\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"assets/demo.gif\" alt=\"design-variant-picker in action\" /\u003e\n\u003c/p\u003e\n\n## Install\n\nAdd it to your `opencode.json`:\n\n```json\n{\n  \"plugin\": [\"design-variant-picker\"]\n}\n```\n\nThat's it. Restart OpenCode (the tool binds at session start, so open a **new** session).\n\n## Use\n\nJust ask:\n\n\u003e Generate 9 variants of this pricing card and let me pick.\n\nThe agent calls the `variant_picker` tool. A browser tab opens **right away** and the variants will start loading. From there you drive:\n\n- **Click a tile** to select it.\n- **Generate variants of this**: the tiles show skeletons, the agent makes a new batch based on your pick and any notes, and the **same tab updates in place**. Repeat as many times as you want.\n- **Use this**: hands the chosen variant back to the agent, and the chat keeps going.\n\nYou can type notes to guide each round, and choose how many variants you want next from the **Next:** dropdown (default 9).\n\n## How it works\n\n```\nagent ──variant_picker(variants)──▶ local picker tab (you)\n  ▲                                        │\n  │  decision: use | regenerate | abandoned│\n  └────────────────────────────────────────┘\n       on \"regenerate\", the agent makes new variants of the\n       one you picked and shows them in the same tab\n```\n\n- To skip the first wait, the agent opens the tab with an empty batch (`open`) so the skeletons show up immediately, then fills it with the first batch.\n- The tool **waits** until you act, then returns `use` (with your pick), `regenerate` (the agent makes the next batch itself), or `abandoned` (you closed the tab, so the agent never hangs).\n- Variants render in sandboxed `\u003ciframe\u003e`s. The server is bound to `127.0.0.1`.\n- Closing the tab cancels cleanly (a beacon resolves the call right away).\n\n## Remote access (optional)\n\nTo open the picker from another machine, the agent can pass `remote: true`. This serves the picker through an anonymous [Cloudflare Quick Tunnel](https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/do-more-with-tunnels/trycloudflare/), which needs [`cloudflared`](https://github.com/cloudflare/cloudflared) on your `PATH`. If it's missing, it falls back to localhost.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplfavreau%2Fdesign-variant-picker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fplfavreau%2Fdesign-variant-picker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplfavreau%2Fdesign-variant-picker/lists"}