An elegant, on-device companion for J.R.R. Tolkien’s Elvish languages, combining offline dictionary indexing with local GPU-accelerated LLM intelligence.
Mithlond serves as an accessible sandbox to explore Tolkien’s languages while showcasing high-performance machine learning running directly on consumer hardware.
Features instant, zero-latency parsing and search across Paul Strack’s master database (~30MB xml).
Features standard ChatML integration optimized for grammar, roots, etymology, and declensions.
Zero tracking, zero server queries, zero subscriptions, and complete offline autonomy.
To keep initial distribution under 15MB, Mithlond employs an on-demand asset setup wizard. The user gets a premium experience right from the first launching frames.
Direct live download from pfstrack's repository to guarantee up-to-date data.
Registers custom Amanyë Tenceli fonts (Eldamar, Tengwar Parmaite) programmatically on first load.
Installs directly into standard macOS Application Support directories without modifying system files.
Mithlond provides diverse execution modes to support different hardware footprints, making high-performance local tuning modular and adaptive.
Natively optimized for Apple Silicon GPU unified memory using the Metal Performance Shaders.
Cross-platform flatbuffer compilation or GGUF single-file deployment for quick local tests.
Enables running with standard llama-server on port 8080 to conserve SSD space during active development.
Once the engine is selected, Mithlond securely streams, parses, and validates the model shards without stalling the main UI thread.
Utilizes background async-await network tasks paired with SwiftUI bindings for smooth animations.
Pre-calculates metal pipelines and pre-allocates unified memory blocks for instantaneous initial response.
The search core index parses the entire Paul Strack database instantly and provides deep language filtering, etymology analysis, and historical cross-references.
Categorizes languages (Neo-Quenya / Neo-Sindarin) using discrete color bubbles (`NQ` and `NS`).
Turns flat text references (like correlatives, words, and roots) into clickable links for instant browsing.
Displays raw database XML records with beautiful syntax highlighting for advanced lexicographers.
Mithlond provides premium typographic previews of Elvish words rendered natively in Tengwar script without requiring manual system-wide font installations.
Registers custom typefaces (Eldamar, Tengwar Parmaite, Parmaite Alt) programmatically at application startup.
Renders words inside a floating glass card utilizing traditional calligraphic rules.
The built-in assistant Eithron runs a fine-tuned Gemma-4 language model inside Apple's unified memory, operating entirely offline via the MLX framework.
Streams tokens word-by-word instantly in real-time, matching or exceeding cloud-hosted speeds.
Tuned strictly for Elvish etymology, English translations, and noun declension patterns.
Zero internet connection required. Operates perfectly even inside isolated environments.
Mithlond supports native Metal shader pipelines and third-party local wrappers to maintain extreme runtime flexibility.
| Capability | 🍏 Native MLX Engine (Default) | 🦙 Local GGUF Engine |
|---|---|---|
| Primary Backend | Apple Silicon Metal API via mlx-swift |
llama-server (C++ compiler port) |
| Quantization Focus | Highly optimized 4-bit / 8-bit MLX weights | Flexible GGUF formats (q4_k_m, etc.) |
| Memory Allocation | Dedicated unified memory (Direct GPU access) | CPU / Discrete GPU RAM split |
| Streaming Architecture | Native Swift Async Streams | Server-Sent Events (SSE) via localhost |
| Setup Overhead | Zero terminal. Loads files directly into app. | Requires terminal launcher background process |
Mithlond compiles natively into a unified, lightweight macOS/iOS target. Ready to deploy offline on your local Apple Silicon machine.
Double-click the manifest in Xcode 15+ to load the package structure automatically.
Press Cmd + R with target **Mithlond** and **My Mac** destination selected.
Run the Setup Assistant to stream Elvish model weights and Paul Strack's lexicon.