You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
v0.3.0 — Self-Contained Web Viewer, Security Fixes, & CLI Upgrades
🖥️ Self-Contained Interactive Web Viewer (chandra_app)
Zero Extra Dependencies: Replaced the legacy Streamlit demo with a fast, self-contained interactive web viewer built on Python's standard library — chandra_app now works out of the box with pip install chandra-ocr.
Rich Layout & OCR Inspection: Upload multi-page PDFs or images, toggle interactive SVG bounding-box, label, and reading-order overlays, switch live between vllm and hf backends, and inspect Preview (with KaTeX math and cropped images), Markdown, Blocks, HTML, and JSON.
⚡ CLI, AI Agent Skill & vLLM Launcher Upgrades
Direct --stdout & Recursive Batching: Stream Markdown directly to stdout (chandra doc.pdf --stdout) or process nested directories with --recursive / -r without case-insensitive duplicate file runs on macOS/Windows.
vLLM Connection Flags: Override --vllm-api-base, --vllm-api-key, and --vllm-model-name directly from the CLI (#99).
Bundled AI Agent Skill: Print or install the Chandra agent skill for Claude Code, Cursor, Codex, and Antigravity via chandra --skill and chandra --install-skill.
Safer chandra_vllm Launcher: Binds to 127.0.0.1:8000 by default (--host, --port), supports both Docker and Podman (--runtime), makes --sudo opt-in, and adds presets for b200, h200, gh200, rtx5090, and rtx4090.
🛡️ Accuracy, Compatibility & Security Fixes
Block Boundary Preservation: Fixed layout block boundary loss in parse_html and parse_markdown so headers, footers, and inline-formatted blocks never glue onto a single Markdown line (#119, #125).
Ordered List Deduping: Prevented double numbering (1. 1.) in ordered lists (#84).
HTML/XSS Sanitization: Added sanitize_html to strip unsafe tags (<script>, <iframe>, <object>, <style>), inline on*= handlers, and javascript: / data:text/html URLs (#92), and removed the legacy chandra_screenshot Flask server.
Broader Format & Device Support: Added .tif and .avif support (#98, #111), PDF extension fallback when MIME sniffing returns None (#30), optional page_range in load_pdf_images (#66), accurate 28px grid aspect-ratio scaling (#95), and CPU/Apple Silicon MPS device resolution without meta-tensor offload errors (#105).