Portfolio
Featured apps, libraries, and tools — organized by category.
Create stunning mathematical animations with a powerful GUI application. Microsoft Store compatible — no administrator rights required.
Created by: Yu Yao-Hsing
License: MIT License
LaTeX Engine: MiKTeX
Format: MSIX Package
Platform: Windows 10+
A complete offline Python animation studio for iPad and iPhone, built on the Manim engine. Edit Python in a Monaco editor, render to MP4 via Apple VideoToolbox hardware encode, drop in LaTeX with busytex — entirely on-device.
ImageMobject snippetCreated by: Yu Yao-Hsing
App Store ID: 6764472686 (manimstudio)
Branch: manim_app/ios
Python: 3.14 (iOS arm64)
Editor: Monaco · Terminal: SwiftTerm + PTY
A self-contained developer / scientific / AI workstation for iPad and Mac. Python 3.14, C, C++, Fortran, pdflatex, and local LLMs — all running on-device, no internet required.
Real Monaco editor in WKWebView. Python IntelliSense with ~70-entry signature DB, hover docs, and live resolve from the embedded Python daemon for numpy / scipy / sklearn / matplotlib / sympy completions.
SwiftTerm-backed terminal piped through a real PTY into the embedded CPython REPL. Type Python directly, or use POSIX-style builtins like ls, grep, ncdu, top, git clone.
busytex (pdftex 1.40.25 + xetex + luatex + bibtex8) running in a hidden WKWebView. TeX Live 2023 preloaded into MEMFS plus a 23 MB overlay with PGF/TikZ/beamer, hyperref, mathtools, microtype, fontspec, CJK.
llama.cpp as an XCFramework — load any Llama / Mistral / Qwen / Phi GGUF model and chat with streaming tokens. ExecuTorch backends for Apple Core ML / XNNPACK kernel-optimized PyTorch inference.
In-process sentence-embedding + vector store over user-imported text / PDF / markdown. Offline image generation via ExecuTorch-runnable diffusion models. All models stay in the app sandbox — no tokens leave the device.
iOS document browser with multiple concurrent workspaces. Auto-save debounced ~600 ms after every keystroke + on run, tab-switch, view-disappear, and app-backgrounding. Tombstone system records deleted files so seeders don't resurrect them.
Monkey-patched torch.matmul / mm / bmm / addmm, F.linear, and SDPA onto Apple's MPSMatrixMultiplication via ctypes → Swift @_cdecl. 2–10× speedup at training sizes. fp32/fp16 native, bf16 via fp32 cast. Autograd-aware via torch.autograd.Function. Auto-installed via sitecustomize.py — zero user code changes.
Live RAM sparkline in the top-right tab bar, command palette (⌘P), editor status bar, tab slide animation, drag-to-select in the terminal (via SwiftTerm doubleTap), and a real Stop button that interrupts the running task.
Opt-in _cb_training.py (~12 KB pure Python) ships OOMGuard, MemoryProfiler, KVCache, and TrainingMonitor. Plus a pure-Python safetensors reader (mmap + struct + torch.frombuffer) so transformers.from_pretrained() works without Rust crates.
Train a LoRA adapter on a GGUF base model in-place via llama.cpp's Metal backward kernels (LlamaFinetuner.swift). Closes the train→deploy loop: fine-tune with PyTorch + HF Trainer (Metal bridge for speed), then convert the .pt to a GGUF adapter with a pure-Python writer for fast Metal inference.
js shell builtin backed by Apple's JavaScriptCore (zero bundle cost) — persistent Node-style REPL globals, js -e one-liners, and js script.js file execution, sitting alongside the python builtin.
IntelliSense engine moved from a 3 s blocking loop to DispatchSource event watch (no held threads), Monaco file opens batched 3 JS round-trips → 1 (~100 ms saved per open), and C/C++/Fortran language providers lazy-register only on first non-Python file.
ChatGPT-style chat panel wired to the local LLM — streaming replies that render compiled LaTeX inline, code-aware assists into the editor, and a one-tap scratch file when there's no target. All on-device; no tokens leave the iPad.
Step through Python with a visual debugger wired into Monaco, data Quick Look for inspecting variables / arrays / frames, plus a redesigned Libraries tab, richer System Info, and a hidden debug panel with a native-lib test probe.
Created by: Yu Yao-Hsing
Platforms: iPad · iPadOS · Mac Catalyst
Runtime: Python 3.14 + four interpreters
Editor: Monaco (VS Code) in WKWebView
Status: Active Development
Full Python 3.14 runtime for iOS/iPadOS with 30+ offline libraries — including native PyTorch, HuggingFace transformers, and Rust tokenizers. Train on-device. No JIT, App Store safe. Powers CodeBench. Its Metal-accelerated pieces also ship as standalone repos: cairometal and torchmetal.
| Library | Ver |
|---|---|
| PyTorch BETA | 2.1.2 |
| transformers BETA | 4.41.2 |
| tokenizers BETA | 0.19.1 |
| scikit-learn | 40 modules |
Native PyTorch (95/95 asserts) + Metal GPU bridge (2–10× speedup) + HuggingFace transformers & Rust tokenizers — train on-device
| Library | Ver |
|---|---|
| matplotlib | 3.9.0 |
| Plotly | 6.6.0 |
| manim BETA | 0.20.1 |
145+ mobjects, 73 animations, interactive Plotly HTML charts
| Library | Type |
|---|---|
| PyAV | 17 C exts |
| FFmpeg | 7 dylibs |
| Cairo + Pango | Native iOS |
| Pillow | 12.2.0 |
| offlinai_latex | SwiftMath + 33MB texmf |
| Library | Purpose |
|---|---|
| PyWebView NEW | v5.4.0 — iOS WKWebView |
| requests | HTTP client |
| BeautifulSoup4 | HTML parse |
| NetworkX | Graphs |
| jsonschema | Validation |
| PyYAML | YAML |
| Library | Ver |
|---|---|
| psutil | 5.9.8 |
| watchdog | 4.0.0 |
| moderngl | 5.12.0 |
| svgelements | 1.9.6 |
| decorator NEW | 5.1.1 |
| safetensors | HF deps |
| huggingface-hub | HF deps |
Real VS Code editor in WKWebView with Python signature help, hover docs, and live resolve from Python for numpy / scipy / sklearn / matplotlib / sympy.
Full Latin Modern Type 1 fonts, expl3 (1.3 MB), firstaid, hyphenation, unicode-data, pdftex.map. Math-mode rendering via SwiftMath is unlimited.
ncdu with arrow-key navigation, top with Apple-chip detection, git clone via zipball fetch, universal --help interception.
Edits persist to disk on every keystroke (debounced) plus on run, tab-switch, view-disappear, and app-backgrounding. No more lost edits on reopen.
Files deleted via UI / shell rm / ncdu's d are recorded so starter-script seeders (pip_demo.py, torch_test_all.py) won't re-create them.
Full integration test for the transformers stack passes 24/24. PyTorch ships 95/95 correctness asserts. First public iOS builds for PyTorch + tokenizers.
_torch_metal_bridge.py patches torch matmul / mm / bmm / addmm, F.linear, and SDPA onto Apple's MPSMatrixMultiplication. 2–10× speedup at training sizes. fp32/fp16 native, bf16 via fp32 cast. Autograd-aware, auto-installed via sitecustomize.py.
Real git push / pull / commit via auto-installed dulwich. Plus pywebview FileDialog enum and faulthandler that writes C-level crashes to ~/Documents/log.txt.
pycairo-compatible 2D vector graphics rendered on the Apple GPU — 246 cm_* functions, stencil-then-cover fills, all 28 compositing operators, IOSurface-backed MTLTexture, pixel-diffed vs real cairo. Cairo has no other Metal backend — to our knowledge this is novel. Standalone repo: cairometal — now pip install cairometal on PyPI (macOS arm64 wheel).
App-Store-safe per-op Metal/MPS routing for PyTorch inference — matmul, linear, softmax, layer_norm, gelu, attention — size + dtype gated with bit-exact CPU fallback. fp16 matmul is often hundreds of times faster than CPU. Public MPS only, no private symbols. Standalone repo: torchmetal.
Memory-safe high-res rendering up to 8K (7680×4320) without tripping iOS jetsam — bounded GIF buffer, frames stream to mp4 instead of accumulating, resolution-tiered RAM pre-flight, h264_videotoolbox encode. Quality selectable 480p→8K.
js shell builtin backed by Apple's JavaScriptCore — zero bundle cost. Persistent REPL globals (Node-style), js -e "code" one-liners, and js script.js file execution. See js-engine.md.
site-packages/Created by: Yu Yao-Hsing
License: MIT
Runtime: Python 3.14 on iOS arm64
Libraries: 30+ (native + pure Python)
Platform: iOS 17+ / iPadOS 17+
A boot manager for your iPad. Bootbox is a native iOS app that boots real operating systems — 64-bit Linux (x86-64 and ARM64), classic Windows, graphical desktops — inside a WebKit-hosted emulation stack, with real internet, real multi-core, files in the iOS Files app, and one-tap downloads for every guest image. Everything runs on-device: no servers, no streaming, no jailbreak.
Genuine aarch64 Alpine (uname -m really reports aarch64) alongside a dual-core x86-64 console guest with Python 3.12, pip/uv, Wine, and real internet.
Windows 98 SE and Windows 2000 Pro boot natively to the desktop via v86, with working internet on Windows 2000 through the NDIS relay.
The x86-64 guest boots dual-core by default with genuine parallel execution (measured 2.0× wall-clock speedup). A cores selector (1/2/4/6/8) sits in the toolbar and UEFI Setup.
A patched engine sleeps on a real futex between polls instead of busy-spinning. Measured: idle ~120% → ~32% host CPU, boot time 30s → ~20s, cooler iPad, longer battery.
pip install backed by uv with ~24 packages pre-installed and 10-minute download timeouts for large wheels. A baked-in constraints file resolves NumPy to the 1.x line for correctness on the emulated CPU.
A classic NSFileProviderExtension exposes the Bootbox folder in the iOS Files app. Materialized files are hard links — drop in .iso/.img, pull guest exports out, zero-copy.
Iosnet.xcframework embeds a gVisor userspace TCP/IP stack — the guest's virtio NIC frames travel over a local WebSocket into native sockets. pip, apk, wget, DNS all work, fully on-device.
Import any .iso/.img via the Files app; paired save-states let a custom install resume in about a second instead of rebooting.
GRUB-style boot menu with per-system notes, a classic Aptio-blue UEFI Setup screen, then serial console on the left and GUI on the right — keyboard routing follows your last tap.
.iso / .imgCreated by: Yu Yao-Hsing
Platform: iPad · iPadOS (Swift host app + WKWebView)
Networking: gVisor userspace TCP/IP via Iosnet.xcframework
App size: ~60 MB · guest images download on demand, once, and are cached
Status: Active development — build from source (Xcode 16+, Apple developer team)
Advanced eigenvalue spectral distribution analysis for generalized covariance matrices. A powerful research tool for mathematicians and data scientists!
Perfect for: Statistical analysis, ML research, quantum mechanics, and financial modeling
Created by: Yu Yao-Hsing
Category: Research & Education
Platform: Windows Store
Type: Desktop App
Status: Active Development
Native macOS image denoiser using random matrix theory — the macOS counterpart to Generalized Covariance Matrix. Pure Swift, Metal-accelerated, App Store sandbox-ready.
MPSMatrixMultiplication for Gram stepdsyevd for eigen-decompositionFor X ∈ ℝ^(p×n) with i.i.d. N(0,1) entries, S_n = (1/n)XXᵀ and T_n = diag(t₁,…,t_p), the generalized sample covariance B_n = S_n T_n. Its Stieltjes transform satisfies a cubic:
a·z·s³ + (a(z − y + 1) + z)·s² + (a + z − y + 1 − y·β·(a − 1))·s + 1 = 0
Limiting density f_{y,H}(z) follows from Cardano's depressed-cubic root; support recovered via bulk-edge function and quartic discriminant for one-interval (Cases 1, 3) vs two-interval (Case 2) topology.
Created by: Yao-Hsing Yu
License: MIT
Platform: macOS 14+ (Apple Silicon)
Type: Native macOS App (App Store ready)
Status: Active Development
Precision GPS workout tracker for iPhone & Apple Watch. Kalman-filtered location, HealthKit sync, Live Activities, CarPlay, and route analytics — all in a clean SwiftUI interface.
Created by: Yu Yao-Hsing
App Store ID: 6764729098
Frameworks: SwiftUI · CoreLocation · HealthKit · ActivityKit · CarPlay
Stack: Pure Swift / SwiftUI
Status: Live on App Store (approved May 18, 2026)
On-device speech transcription for iPhone & iPad — Whisper models running entirely on Apple's Neural Engine. Record, import audio/video, or pick from Photos; transcripts never leave your device.
A Python-based creative writing and text processing tool with a modern interface.
View projectTCP-based sound transfer tool for streaming audio between devices over a network.
View projectA Python tool for downloading files from Google Drive with ease and automation.
View project