MIT License

项目介绍

johnbean393/KeyType 是一个托管在 GitHub 上的开源项目,主要使用 Swift 编写,采用 MIT License 许可证,目前获得 577 个 Star、31 次 Fork。

仓库全名
johnbean393/KeyType
开源许可证
MIT License
Star 数
577
Fork 数
31
未关闭 Issue
19

README 摘要

KeyType An open-source, on-device, system-wide tab-autocomplete utility for macOS. KeyType is an open-source, on-device, system-wide tab-autocomplete utility for macOS. It watches the focused text field across any app, predicts a short continuation at the cursor using a local LLM, and offers it as ghost text that you accept with Tab. It is a MIT-licensed alternative to the closed-source app Cotypist. Getting started…

完整内容见 GitHub 原始 README 或本页 。

常见问题

KeyType 用什么语言开发?

主要使用 Swift 编写,采用 MIT License 许可证,目前有 577 个 Star。

KeyType 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 KeyType 的源码?

可以直接克隆仓库:git clone https://github.com/johnbean393/KeyType.git,默认分支为 main;安装与运行步骤见仓库 README。

KeyType 最近还在维护吗?

仓库最近一次更新为 8月29日,当前有 19 个未关闭 Issue;Star 数为 577,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

An open-source Cotypist with macOS system wide AI autocomplete

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
643
价值分
354
活跃状态
活跃

语言占比

Python
Shell
Swift

Release

README

KeyType app icon

KeyType

An open-source, on-device, system-wide tab-autocomplete utility for macOS.

Download DMG

KeyType demo video

KeyType is an open-source, on-device, system-wide tab-autocomplete utility for macOS.

It watches the focused text field across any app, predicts a short continuation at the cursor using a local LLM, and offers it as ghost text that you accept with Tab.

It is a MIT-licensed alternative to the closed-source app Cotypist.

Getting started

Installation

  1. Download the latest release from the releases page
  2. Double-click the downloaded KeyType.dmg file
  3. Drag the KeyType app into Applications
  4. Open KeyType and complete the onboarding

Development

Requirements: macOS 14+ and a recent version of Xcode.

git clone https://github.com/johnbean393/KeyType.git
cd KeyType
open KeyType.xcworkspace

Build/run the KeyType scheme.

Per-package builds:

swift build --package-path Packages/AutocompleteCore
swift test  --package-path Packages/Prompting

Repo layout

KeyType/
├── KeyType.xcworkspace/      ← open this in Xcode
├── KeyType.xcodeproj/
├── KeyType/                  ← app target (menu-bar shell)
├── KeyTypeTests/  KeyTypeUITests/
├── docs/                     ← the project brief & playbooks (00–08)
└── Packages/                 ← local SwiftPM packages (the real logic)
    ├── AutocompleteCore/         shared domain types & protocols
    ├── MacContextCapture/        AX focus + caret + text-field snapshot
    ├── Prompting/                sectioned, budgeted prompt builder
    ├── ModelRuntime/             llama.cpp wrapper
    ├── ConstrainedGeneration/    logit masking, trie admissibility, search
    ├── TokenProfiles/            ACPF profile reader + offline builder
    ├── CompletionUI/             overlay rendering (inline ghost text)
    ├── TextInsertion/            pasteboard / keystroke insertion strategies
    └── AppCompatibility/         per-app / per-domain override policy

License

MIT — see LICENSE.

评论

暂无评论