{"id":23468410,"url":"https://github.com/val-town/codemirror-codeium","last_synced_at":"2025-10-05T04:31:27.337Z","repository":{"id":229229447,"uuid":"776180240","full_name":"val-town/codemirror-codeium","owner":"val-town","description":"Codeium code completion integration for CodeMirror 6","archived":false,"fork":false,"pushed_at":"2024-08-06T21:00:16.000Z","size":145,"stargazers_count":70,"open_issues_count":7,"forks_count":6,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-01-23T00:35:08.682Z","etag":null,"topics":["codeium","codemirror","codemirror6","copilot"],"latest_commit_sha":null,"homepage":"https://val-town.github.io/codemirror-codeium/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/val-town.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-03-22T21:02:26.000Z","updated_at":"2025-01-18T22:48:20.000Z","dependencies_parsed_at":"2024-04-11T16:39:54.272Z","dependency_job_id":"242841b0-0575-4839-ba4c-4d521e4edc8a","html_url":"https://github.com/val-town/codemirror-codeium","commit_stats":null,"previous_names":["val-town/codemirror-codeium"],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/val-town%2Fcodemirror-codeium","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/val-town%2Fcodemirror-codeium/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/val-town%2Fcodemirror-codeium/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/val-town%2Fcodemirror-codeium/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/val-town","download_url":"https://codeload.github.com/val-town/codemirror-codeium/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235361622,"owners_count":18977707,"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":["codeium","codemirror","codemirror6","copilot"],"created_at":"2024-12-24T13:53:03.079Z","updated_at":"2025-10-05T04:31:21.992Z","avatar_url":"https://github.com/val-town.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# codemirror-codeium\n\n[![npm](https://img.shields.io/npm/v/@valtown/codemirror-codeium)](https://www.npmjs.com/package/@valtown/codemirror-codeium)\n\n```mermaid\nflowchart TD\n\tKeystroke --\u003e SetTimeout\n\tKeystroke --\u003e|ignoreUpdate| Cancelled\n\tSetTimeout --\u003e|edits| Cancelled\n\tSetTimeout --\u003e GetCompletions\n\tGetCompletions --\u003e|edits| Cancelled\n\tX[ ] --\u003e|focusChanged| Cancelled\n\tGetCompletions --\u003e DispatchEdits\n\tDispatchEdits --\u003e|mousedown| Cancelled\n\tDispatchEdits --\u003e SameKeyCommand\n\tSameKeyCommand --\u003e|tab| AcceptSuggestionCommand\n```\n\n_Very experimental and unofficial_\n\nCopilot-like ghost text code from [modeling-app](https://github.com/KittyCAD/modeling-app)\nby [Jess Frazelle](https://github.com/jessfraz) and based on [Cursor](https://cursor.sh/).\n\n## Documentation\n\nSee the [demo source code](https://github.com/val-town/codemirror-codeium/tree/main/demo) for\na reference to how it's used.\n\n```ts\nimport { copilotPlugin } from \"@valtown/codemirror-codeium\";\n\n// This is a CodeMirror extension\ncopilotPlugin();\n```\n\n### CSS\n\nThis adds a `.ghostText` class to CodeMirror decorations for the AI-written\ntext. You can add your own style for this class. The demo uses this style:\n\n```css\n.cm-ghostText,\n.cm-ghostText * {\n  opacity: 0.6;\n  filter: grayscale(20%);\n  cursor: pointer;\n}\n\n.cm-ghostText:hover {\n  background: #eee;\n}\n```\n\n### Architecture\n\nThis makes requests against the [Codeium](https://codeium.com/) hosted product,\nusing their Protocol Buffer-based interface. That's what the `buf` and `connectrpc`\nmodules are doing - generating and using bindings to their service.\n\nThe extension is a composite of facets, decorations, state fields, and more\nthat are encapsulated.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fval-town%2Fcodemirror-codeium","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fval-town%2Fcodemirror-codeium","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fval-town%2Fcodemirror-codeium/lists"}