# Open Source Repositories — BitesBytes Lab

> Every repository pairs production source code with illustrated architecture essays for bidirectional traceability.

- Language: en (Alternate: https://twn39.github.io/projects.md)
- Canonical URL: https://twn39.github.io/en/projects/
- GitHub: https://github.com/twn39

---

## twn39/pylibheif (v1.23.1)

- Category: Image Codec · C++/Python
- Primary Language: Python | License: LGPL-3.0 | Stars: 1
- Repository: https://github.com/twn39/pylibheif
- Docs: https://twn39.github.io/pylibheif/
- Summary: High-performance Python bindings for libheif (HEIC / AVIF / JPEG2000) via nanobind — Zero-copy Python/C++ bridge for modern HEIF containers featuring bidirectional NumPy Buffer Protocol access, >300k OPS streaming I/O, Pillow plugin integration, and a CLI toolkit.
- Highlights:
  * Zero-copy encoded binary export via lifetime-decoupled read-only memoryview
  * GIL-free multi-threaded HEIC, AVIF & JPEG2000 codecs with >300k OPS stream I/O
  * Seamless zero-copy NumPy plane sharing, Pillow plugin, and standalone wheels
- Install / Clone:
  * `uv add pylibheif`
  * `pip install pylibheif`
  * `git clone https://github.com/twn39/pylibheif.git`

## twn39/pyopenxlsx (v1.6.0)

- Category: Data Engine · C++/Python
- Primary Language: Python | License: BSD-3-Clause | Stars: 4
- Repository: https://github.com/twn39/pyopenxlsx
- Docs: https://twn39.github.io/pyopenxlsx/
- Summary: High-throughput Python Excel (.xlsx) binding powered by the OpenXLSX-NX C++ kernel — Delivers order-of-magnitude faster .xlsx read/write throughput and lower memory overhead than pure-Python openpyxl while preserving an idiomatic Pythonic API.
- Highlights:
  * C++17 native XML & ZIP streaming under the hood with ergonomic Pythonic wrappers
  * Supports Agile encryption, streaming I/O, vector shapes, and threaded comments
  * Ships full .pyi type stubs and prebuilt wheels across macOS, Linux, and Windows
- Install / Clone:
  * `uv add pyopenxlsx`
  * `pip install pyopenxlsx`
  * `git clone https://github.com/twn39/pyopenxlsx.git`

## twn39/codegraph-gen (v1.7.0)

- Category: AI Agent Infra · Static Analysis
- Primary Language: Python | License: MIT | Stars: 0
- Repository: https://github.com/twn39/codegraph-gen
- Summary: Multi-language static codebase knowledge graph compiler built for AI Coding Agents — Parses 11 languages via tree-sitter, clusters cohesive components with Louvain community detection, and exports database-free Markdown vaults (Obsidian-style) tailored for Claude Code and Codex.
- Highlights:
  * Extracts cross-file calls, inheritance, and import edges across 11 languages via tree-sitter
  * Detects architectural God Nodes, circular file imports, and mutual recursion cycles
  * Stat-First incremental caching and generated AGENTS.md protocols with zero LLM API cost
- Install / Clone:
  * `uv tool install codegraph-gen`
  * `pip install codegraph-gen`
  * `git clone https://github.com/twn39/codegraph-gen.git`

## twn39/yt-dlp-qt-gui (v0.7.0)

- Category: Desktop App · PySide6 GUI
- Primary Language: Python | License: GPL-3.0 | Stars: 7
- Repository: https://github.com/twn39/yt-dlp-qt-gui
- Summary: Lightweight, modern cross-platform desktop client built on PySide6 and yt-dlp — Wraps yt-dlp format probing, stream muxing, subtitle embedding, and proxy routing inside a responsive multi-threaded PySide6 desktop interface across macOS, Windows, and Linux.
- Highlights:
  * Non-blocking QThread worker architecture keeps 60fps UI responsiveness under concurrent downloads
  * Supports 1,000+ streaming sites (YouTube, Bilibili, Vimeo) with automatic FFmpeg stream merging
  * Bilingual UI, resumeable task queues, codec/resolution presets, and clipboard monitoring
- Install / Clone:
  * `uv sync && uv run python main.py`
  * `git clone https://github.com/twn39/yt-dlp-qt-gui.git`

## twn39/OpenXLSX-NX (v1.12.1)

- Category: C++17 Library · Document Kernel
- Primary Language: C++ | License: BSD-3-Clause | Stars: 4
- Repository: https://github.com/twn39/OpenXLSX-NX
- Docs: https://twn39.github.io/OpenXLSX-NX/
- Summary: Next-generation security-hardened C++17 library for high-speed .xlsx processing — An actively engineered C++17 continuation of OpenXLSX featuring enterprise fuzz-hardening, AST formula calculation, style deduplication, agile encryption, and low-memory streaming.
- Highlights:
  * Hardened against malformed OOXML inputs with LLVM libFuzzer plus ASan/UBSan verification
  * Built-in AST formula engine, automatic style deduplication, and high-throughput streaming
  * Minimal external dependencies with clean CMake integration across all major compilers
- Install / Clone:
  * `cmake -B build -DCMAKE_BUILD_TYPE=Release && cmake --build build`
  * `git clone https://github.com/twn39/OpenXLSX-NX.git`

## twn39/tex2math (v2.4.1)

- Category: Compiler & Typesetting · Rust
- Primary Language: Rust | License: LGPL-3.0 | Stars: 0
- Repository: https://github.com/twn39/tex2math
- Docs: https://twn39.github.io/tex2math/
- Summary: Blazing-fast, zero-copy Rust compiler & CLI converting LaTeX math to native MathML — Combines full AST parsing via winnow combinators with KaTeX-grade symbol dictionaries to emit standards-compliant MathML XML—rendering complex math in modern browsers with zero client JS.
- Highlights:
  * Slice-oriented winnow parser combinator AST handles deeply nested fractions, radicals & matrices
  * Emits native browser MathML (Chrome 109+, Safari, Firefox) eliminating heavy JS math runtimes
  * Pure Rust with resilient error recovery—ideal for SSR pipelines, CLIs, and WebAssembly targets
- Install / Clone:
  * `cargo add tex2math`
  * `git clone https://github.com/twn39/tex2math.git`
