back to home

tribixbite / CleverKeys

Privacy-first neural Android keyboard with advanced swipe prediction

280 stars
19 forks
35 issues
KotlinHTMLPython

AI Architecture Analysis

This repository is indexed by RepoMind. By analyzing tribixbite/CleverKeys in our AI interface, you can instantly generate complete architecture diagrams, visualize control flows, and perform automated security audits across the entire codebase.

Our Agentic Context Augmented Generation (Agentic CAG) engine loads full source files into context on-demand, avoiding the fragmentation of traditional RAG systems. Ask questions about the architecture, dependencies, or specific features to see it in action.

Source files are only loaded when you start an analysis to optimize performance.

Embed this Badge

Showcase RepoMind's analysis directly in your repository's README.

[![Analyzed by RepoMind](https://img.shields.io/badge/Analyzed%20by-RepoMind-4F46E5?style=for-the-badge)](https://repomind.in/repo/tribixbite/CleverKeys)
Preview:Analyzed by RepoMind

Repository Overview (README excerpt)

Crawler view

CleverKeys 🗺️ Project Overview CleverKeys is the only fully open-source neural network gesture keyboard for Android. Featuring an AI-powered swipe engine that runs entirely on-device, unlimited clipboard history, and a powerful theme engine with DIY customization. No proprietary libraries. No cloud dependencies. No data collection. What Makes CleverKeys Unique Open-Source Gesture Keyboard Comparison | Feature | CleverKeys | HeliBoard | FUTO | FlorisBoard | AnySoftKeyboard | |---------|:----------:|:---------:|:----:|:-----------:|:---------------:| | **Gesture Typing in Termux** | ✅ | ⚠️ Corrupted⁴ | ❌ Broken | ⚠️ Disabled | ⚠️ Experimental | | **Gesture/Swipe Typing** | ✅ Stable | ✅ Stable | ⚠️ Alpha | ⚠️ Disabled⁵ | ⚠️ Experimental | | **Multi-Language Swipe**⁹ | ✅ 11 languages | ⚠️ Single | ⚠️ English only | ❌ | ❌ | | **Gesture Engine Open Source** | ✅ | ❌¹ | ✅² | ✅ | ✅ | | **ML Training Code Public** | ✅ | N/A | ✅⁶ | N/A³ | N/A³ | | **Model Size** | 13MB | Proprietary | 62MB | N/A | N/A | | **APK Size** | ~52MB | ~45MB | ~200MB | ~15MB | ~25MB | | **Clipboard History** | ✅ Unlimited | ⚠️ 10min default⁷ | ✅ 25 items | ✅ 20-100 items | ❌ 15s hint only | | **Short-Swipe Actions**⁸ | ✅ 208 gestures | ⚠️ Limited | ❌ | ⚠️ Limited | ⚠️ Limited | | **Per-Key Customization** | ✅ 204+ commands | ❌ | ❌ | ❌ | ❌ | | **Custom Layouts** | ✅ XML (8 sublabels) | ✅ JSON | ✅ YAML | ⚠️ JSON (no editor) | ⚠️ Addon packs only | | **DIY Theme Creator** | ✅ | ✅ | ❌ (16 built-in) | ✅ Snygg v2 | ✅ | | **Word Suggestions** | ✅ | ✅ | ✅ | ❌ (v0.6 planned) | ✅ | | **No Internet Access** | ✅ | ✅ | ✅ | ✅ | ✅ | | **License** | GPL-3.0 | GPL-3.0 | Source-First² | Apache-2.0 | Apache-2.0 | Footnotes & Sources ¹ HeliBoard requires Google's proprietary library for gesture typing (source) ² FUTO uses "Source First License 1.1" — source-available but restricts commercial use (source) ³ FlorisBoard and AnySoftKeyboard use algorithmic approaches (corner matching, template matching) — no ML training involved ⁴ HeliBoard has a known bug where swipe typing in Termux produces duplicated/corrupted output ⁵ FlorisBoard glide typing is disabled by default and labeled "alpha quality" — must be enabled manually in advanced settings ⁶ FUTO swipe training dataset is public on HuggingFace with training code in their repo ⁷ HeliBoard clipboard retention defaults to 10 minutes but is configurable; items are not persisted across restarts by default ⁸ Short-swipe actions: 8 directions × 26 keys = 208 one-touch gestures for navigation (arrows, home/end), editing (select all, undo, cut/copy/paste), function keys (F1-F12), and more — no long-press menus needed ⁹ Multi-language swipe typing: CleverKeys uses the same neural network model for all languages — dictionaries provide word candidates, not language-specific models. 6 languages bundled (en, es, fr, pt, it, de), 5 downloadable (nl, id, ms, tl, sw). Primary + secondary language support with automatic best-match selection. Why CleverKeys? CleverKeys uses a custom **transformer neural network** (encoder-decoder architecture) trained specifically for swipe typing. Unlike algorithmic approaches, neural models learn complex patterns from real swipe data. The model architecture, training code, and datasets are all publicly available at CleverKeys-ML — making it fully reproducible and auditable. **Key differentiators:** • **Only keyboard with public ML training pipeline** — verify exactly how the model was trained • **ONNX format** — cross-platform, hardware-accelerated inference via XNNPACK • **Sub-200ms predictions** — optimized for mobile with beam search decoding • **208 customizable short-swipe gestures** — 8 directions × 26 letter keys Unlimited Clipboard History Android restricts clipboard access for security - apps can't read clipboard contents in the background. But keyboards are special. As an Input Method Editor (IME), CleverKeys has legitimate clipboard access, making it the only way to get truly unlimited clipboard history without root. 📱 Reliable Swipe Typing in Termux CleverKeys is the **only open-source keyboard with reliable swipe/gesture typing in Termux**. Other keyboards either disable gestures in terminals (FlorisBoard), produce corrupted output (HeliBoard), or simply don't work (FUTO). Commercial keyboards like Gboard and SwiftKey also disable swipe in Termux. CleverKeys works everywhere — including terminal emulators, SSH sessions, and developer tools. 📲 Install Options *Recommended — Obtainium pulls directly from GitHub releases, avoiding F-Droid's typical 24-48 hour update delay. 🎨 Extensive Theme Engine CleverKeys features one of the most powerful keyboard theme engines available: Built-in Themes (18+) • **CleverKeys Dark** — Deep purple with silver accents (default) • **CleverKeys Light** — Silver keys with purple accents • **Neon Cyan/Magenta** — Vibrant cyberpunk aesthetic • **ePaper / ePaper Black** — High contrast e-ink styles • **Jungle** — Tropical teal theme • **Everforest Light** — Soft green nature theme • **Monet (Auto)** — Material You dynamic colors • **Dark / Light / Black / Alt Black** — Classic options • And many more... DIY Theme Creator Build your own themes on-the-fly with full control over: • **Key Colors** — Default, Activated, Locked, Modifier, Special • **Label Colors** — Primary, Sub-label, Secondary labels • **Border Colors** — Full border customization • **Trail Effects** — Swipe trail color and style ✨ Features 🧠 Neural Network Gesture Recognition • **Transformer-based encoder-decoder model** (5.4MB encoder + 7.4MB decoder) • **Sub-200ms predictions** with hardware acceleration (XNNPACK) • **100% local processing** — works in airplane mode • **Full inference control** — beam width, length normalization, pruning, early stopping 📋 Unlimited Clipboard History As an IME, CleverKeys has legitimate clipboard access that other apps don't: • **Unlimited history** (configurable by count or storage size) • **Pin impo…