Repository navigation
v0.2.1 — Cached Signed URLs, Simplified Naming, Polished Docs
🚀 ReadPaper v0.2.1
What is ReadPaper?
An AI-powered tool that translates arXiv papers from English to Chinese while preserving the original LaTeX layout — equations, citations, figures all stay pixel-perfect. Powered by Gemini 3.0 Flash with 1M-token context.
✨ Highlights in v0.2.1
⚡ Cached Signed URL PDF Delivery
- PDFs now served via GCS signed URLs — browser downloads directly from storage (1 hop, no backend proxy)
- Module-level credential caching + 12-min URL cache = near-instant responses on repeat access
- Fallback to direct streaming if signing fails
📛 Simplified PDF Naming
- Translated PDFs are now consistently named
{arxiv_id}_zh.pdf - Version suffixes (v1, v2) are stripped from output filename
- Single-candidate lookup (no more v1–v5 scanning)
📚 Polished Documentation
- README: attractive badges, live demo link, architecture diagram, feature highlights
- ARCHITECTURE: Mermaid flow diagrams, IPC protocol, signed URL delivery flow, storage layout
📊 Since v0.1
| Metric | Value |
|---|---|
| Commits | 11 |
| Files changed | 20+ |
| Lines | +2500 / -800 |
Key Features
- 🧠 Whole-file LaTeX translation — one Gemini API call per .tex file
- 🔄 AI compile fix loop — auto-fixes LaTeX errors (3 retries)
- ⚡ GCS signed URL delivery — cached, 1-hop PDF loading
- 🔐 Google OAuth — per-user paper libraries
- 📊 Admin dashboard — user/paper management
- 📈 Live token tracking — real-time Gemini usage
- 💾 Translation cache — skip re-translation for cached papers
- 📖 Split-view reader — side-by-side EN/中文 with zoom & notes