Yijing Oracle
An Yijing oracle that runs entirely in the browser: three-coin casting, the complete public-domain Wilhelm texts, and optional AI interpretation that only ever talks to a local LLM server. Bilingual German / English, offline-capable as a PWA. It now also ships as a universal native app for iPhone, iPad and Apple Watch — live on the App Store — where the AI reading runs fully on-device through Apple's built-in models, so even the interpretation never leaves the phone.
Download on the App Store Download for macOS Open live demo
Why this one
An oracle is a very personal thing and I wanted it to stay genuinely private: no backend, nothing that phones home, and any AI reading is routed only through a local model on your own machine. Many predecessors went in the bin; what survived is vanilla ES modules and static JSON, no build step. Pairing the 1924 Wilhelm translation of this ancient text with an on-device LLM that interprets any specific cast, without sending the question anywhere was the goal.
On iPhone the native app reads the cast with Apple's on-device foundation models and even paints a per-reading meditation image locally and nothing about the question ever leaves the device.
Under the hood
The three-coin method with the correct line distribution, all 64 hexagrams in King Wen order, gender-neutral or verbatim 1924 wording, and local-LLM interpretation that auto-probes Ollama / MLX / LM Studio / vLLM. Ships as an offline PWA, a notarized macOS app, and a universal native Apple family on the App Store — on-device AI interpretation (Apple Foundation Models), on-device meditation images (Apple Image Playground), a daily-hexagram Home- and Lock-Screen widget, and a standalone Apple Watch app with complication. Detail in the repo.
In Obsidian, too
The oracle also lives where my thinking lives: as a native Obsidian plugin (yijing-oracle, in the community plugin store) every cast becomes a vault note — searchable, linkable, part of the journal instead of trapped in an app. It carries the same local-first DNA: optional AI interpretation through your own LLM server, with a model picker right in the panel, and an optional per-reading meditation image, composed from the hexagram's curated motif and painted by the Local Image Generator plugin, on your own GPU or through a local image server. Nothing about the question leaves your machine.
Online repository
git.jkaindl.de/jkaindl/yijing: code, releases, and the technical detail.
See also: zettelkasten