The browser extension uses this backend API to convert arXiv papers for Overleaf:
Backend URL: https://huggingface.co/proxy/amitness-open-in-overleaf.hf.space
How it works:
// 1. Extension detects arXiv page
// 2. Constructs Overleaf import URL
var url = "https://www.overleaf.com/docs?snip_uri=" +
BACKEND_URL + "/fetch_tar?arxiv_url=" +
encodeURIComponent(arxivPageURL);
// 3. Adds "Open in Overleaf" button to arXiv page
// 4. Clicking button redirects to Overleaf with the source
Endpoint: GET /fetch_tar?arxiv_url={arxiv_url}
Returns a tarball of the LaTeX source that Overleaf can import directly.