{"id":15080594,"url":"https://github.com/alexcheng1982/chromeai","last_synced_at":"2026-01-23T05:35:50.467Z","repository":{"id":248811694,"uuid":"829851412","full_name":"alexcheng1982/chromeai","owner":"alexcheng1982","description":"Chrome AI Test Page","archived":false,"fork":false,"pushed_at":"2024-08-06T09:40:02.000Z","size":752,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-13T21:49:22.737Z","etag":null,"topics":["ai","chrome","chrome-ai"],"latest_commit_sha":null,"homepage":"https://alexcheng1982.github.io/chromeai/","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/alexcheng1982.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":"2024-07-17T06:01:32.000Z","updated_at":"2024-08-06T09:40:05.000Z","dependencies_parsed_at":"2024-07-17T08:14:33.692Z","dependency_job_id":"45974193-f747-4623-b70d-886052d40847","html_url":"https://github.com/alexcheng1982/chromeai","commit_stats":{"total_commits":22,"total_committers":1,"mean_commits":22.0,"dds":0.0,"last_synced_commit":"9a04b0d822e0055d01f99428e6b66f30b82bb913"},"previous_names":["alexcheng1982/chromeai"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/alexcheng1982/chromeai","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexcheng1982%2Fchromeai","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexcheng1982%2Fchromeai/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexcheng1982%2Fchromeai/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexcheng1982%2Fchromeai/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexcheng1982","download_url":"https://codeload.github.com/alexcheng1982/chromeai/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexcheng1982%2Fchromeai/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28680945,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T04:33:33.518Z","status":"ssl_error","status_checked_at":"2026-01-23T04:33:30.433Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","chrome","chrome-ai"],"created_at":"2024-09-25T05:02:22.134Z","updated_at":"2026-01-23T05:35:50.453Z","avatar_url":"https://github.com/alexcheng1982.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Chrome AI Test Page\n\n\u003e This project was inspired by [lightning-joyce/chromeai](https://github.com/lightning-joyce/chromeai/).\n\n**Visit the page [alexcheng1982.github.io/chromeai/](https://alexcheng1982.github.io/chromeai/)**.\n\n\n\u003cdetails\u003e\n\n  \u003csummary\u003eView screenshot\u003c/summary\u003e\n\n  ![Screenshot](./image/screenshot.png)\n\n\u003c/details\u003e\n\n\n## Implementation\n\n`promptStreaming` is used for streaming output. During testing, I found out that `prompt` often gave incomplete results.\n\n## Use Chrome AI\n\n### Prerequisites\n\nLatest version of Google Chrome (127+) or any compatible Chromium-based browser. \n\nTested Chrome versions: \n\n- `129.0.6640.0`\n\n### Set Up Built-in Gemini Nano in Chrome\n\n1. **Install Chrome Canary**: Ensure you have version 129. [Download Chrome Canary](https://google.com/chrome/canary/).\n2. **Enable Prompt API**: Open `chrome://flags/#prompt-api-for-gemini-nano`, set it to \"Enabled\".\n3. **Enable Optimization Guide**: Open `chrome://flags/#optimization-guide-on-device-model`, set it to \"Enabled BypassPerfRequirement\". Restart the browser.\n4. **Download Model**: Go to `chrome://components/`, find **Optimization Guide On Device Model**, ensure it’s fully downloaded. If the version is \"0.0.0.0\", click \"Check for update\".\n5. **Verify Setup**: Open a webpage, press F12, and check `window.ai` in the console.\n\n**Test Code**:\n\n```javascript\nconst model = await window.ai.createTextSession();\nawait model.prompt(\"Who are you?\");\n```\n\n\u003cdetails\u003e\n\n  \u003csummary\u003eView flags\u003c/summary\u003e\n\n  ![Chrome flags](./image/chrome-flags.png)\n\n\u003c/details\u003e\n\n\n## Known issues\n\n1. When message history is enabled, the model may not function properly.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexcheng1982%2Fchromeai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexcheng1982%2Fchromeai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexcheng1982%2Fchromeai/lists"}