{"id":29966796,"url":"https://github.com/eu-ge-ne/kitty-keys","last_synced_at":"2026-04-12T13:38:49.520Z","repository":{"id":299288236,"uuid":"1001065726","full_name":"eu-ge-ne/kitty-keys","owner":"eu-ge-ne","description":"Kitty keyboard protocol parser library for Node.js, Deno and Bun.","archived":false,"fork":false,"pushed_at":"2025-07-24T06:07:23.000Z","size":99,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-24T10:04:35.075Z","etag":null,"topics":["bun","deno","javascript","kitty-terminal","nodejs","parser","terminal","tui","typescript"],"latest_commit_sha":null,"homepage":"","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/eu-ge-ne.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":"2025-06-12T19:03:25.000Z","updated_at":"2025-07-24T06:07:26.000Z","dependencies_parsed_at":"2025-06-15T19:47:07.291Z","dependency_job_id":"865a8f61-73fa-41a0-b4e8-6fb591fdc553","html_url":"https://github.com/eu-ge-ne/kitty-keys","commit_stats":null,"previous_names":["eu-ge-ne/kitty-keys"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/eu-ge-ne/kitty-keys","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eu-ge-ne%2Fkitty-keys","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eu-ge-ne%2Fkitty-keys/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eu-ge-ne%2Fkitty-keys/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eu-ge-ne%2Fkitty-keys/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eu-ge-ne","download_url":"https://codeload.github.com/eu-ge-ne/kitty-keys/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eu-ge-ne%2Fkitty-keys/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268643765,"owners_count":24283318,"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-08-04T02:00:09.867Z","response_time":79,"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":["bun","deno","javascript","kitty-terminal","nodejs","parser","terminal","tui","typescript"],"created_at":"2025-08-04T03:01:28.252Z","updated_at":"2026-04-12T13:38:49.514Z","avatar_url":"https://github.com/eu-ge-ne.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @eu-ge-ne/kitty-keys\n\n[Kitty keyboard protocol](https://sw.kovidgoyal.net/kitty/keyboard-protocol)\nparser library for Node.js, Deno and Bun.\n\n[![JSR](https://jsr.io/badges/@eu-ge-ne/kitty-keys)](https://jsr.io/@eu-ge-ne/kitty-keys)\n[![JSR Score](https://jsr.io/badges/@eu-ge-ne/kitty-keys/score)](https://jsr.io/@eu-ge-ne/kitty-keys)\n[![codecov](https://codecov.io/gh/eu-ge-ne/kitty-keys/branch/main/graph/badge.svg?token=AH09FY4Y9O)](https://codecov.io/gh/eu-ge-ne/kitty-keys)\n\n- [Installation](#installation)\n  - [Deno](#deno)\n  - [Node.js](#nodejs)\n  - [Bun](#bun)\n- [Example](#example)\n- [Links](#links)\n- [License](#license)\n\n## Installation\n\n### Deno\n\n```bash\ndeno add jsr:@eu-ge-ne/kitty-keys\n```\n\n### Node.js\n\n```bash\n# pnpm\npnpm i jsr:@eu-ge-ne/kitty-keys\n\n# yarn\nyarn add jsr:@eu-ge-ne/kitty-keys\n\n# npm\nnpx jsr add @eu-ge-ne/kitty-keys\n```\n\n### Bun\n\n```bash\nbunx jsr add @eu-ge-ne/kitty-keys\n```\n\n## Example\n\n```ts ignore\nimport { Key, set_flags } from \"jsr:@eu-ge-ne/kitty-keys\";\n\nDeno.stdin.setRaw(true);\n\nconst flags = set_flags({\n  disambiguate: true,\n  events: true,\n  alternates: true,\n  all_keys: true,\n  text: true,\n});\n\nDeno.stdout.writeSync(flags);\n\nself.onunload = () =\u003e {\n  Deno.stdout.writeSync(set_flags({}));\n\n  console.log(\"Exit\");\n};\n\nconst reader = Deno.stdin.readable.getReader();\n\nwhile (true) {\n  const { value } = await reader.read();\n\n  const result = Key.parse(value!);\n  if (!key) {\n    continue;\n  }\n\n  const [key, bytes_parsed] = result;\n\n  console.log(key);\n\n  if (key.name === \"c\" \u0026\u0026 key.ctrl) {\n    break;\n  }\n}\n```\n\n## Links\n\n- \u003chttps://sw.kovidgoyal.net/kitty/keyboard-protocol\u003e\n- \u003chttps://www.leonerd.org.uk/hacks/fixterms\u003e\n\n## License\n\n[MIT](https://choosealicense.com/licenses/mit)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feu-ge-ne%2Fkitty-keys","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feu-ge-ne%2Fkitty-keys","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feu-ge-ne%2Fkitty-keys/lists"}