Wenlan
Wenlan is a source-backed AI knowledge base and LLM wiki for AI work: organize documents and decisions into pages you can find, inspect, and review.
A free online LaTeX editor with instant PDF preview. Write or import .tex files, compile with Tectonic, jump to errors, and copy clean text or Markdown.
ProductivityTypeScript · CSSGitHub @yesabhishekAvailability needs another checkOwner unconfirmed
Have you tried it? One tap is enough. No sign-in needed.
No updates detected yet. GitHub releases will appear here.
Minimal LaTeX editor and PDF viewer with Vercel/Tectonic compilation
Loading the full README.
Read the full README ↗A fast, focused LaTeX editor with a live PDF preview. Write or drop in a .tex file, and the PDF rebuilds a moment after you stop typing.
Live at latex-viewer-alpha.vercel.app.
$...$ and $$...$$.Cmd+K or Ctrl+K) for every action, plus Cmd+S to compile and Cmd+O to open a file.| Action | Shortcut |
|---|---|
| Command palette | Cmd+K or Cmd+Shift+P |
| Compile now | Cmd+S or Cmd+Enter |
| Open a .tex file | Cmd+O |
| Find in source | Cmd+F |
| Zoom the PDF | Ctrl or Cmd + scroll |
Use Ctrl in place of Cmd on Windows and Linux.
Requires Node.js 20.9 or newer.
npm install
npm run dev
Open http://localhost:3000. On macOS and Windows, npm install brings in a Tectonic binary for your platform through node-latex-compiler. You can also point TECTONIC_PATH at any Tectonic executable. The first compile downloads TeX packages and takes longer than the rest.
| Command | What it does |
|---|---|
npm run dev | Start the dev server |
npm run build | Production build |
npm run start | Serve the production build |
npm run lint | ESLint |
npm run typecheck | TypeScript, no emit |
src/app/api/compile/route.ts accepts POST with { "source": "..." } (or a plain text body) and returns application/pdf. Failures return JSON with error and log.src/lib/server/tectonic.ts runs Tectonic in a temporary folder, removes it afterwards, and keeps a small in-memory cache of recent PDFs.src/lib/server/shims.ts rewrites a few Overleaf and pdfTeX conventions, such as fontawesome5 and glyphtounicode, without shifting line numbers in error messages.vercel.json sets the framework to Next.js and runs two scripts after npm install:
scripts/install-vercel-tectonic.mjs downloads a static Linux Tectonic build into vendor/bin.scripts/warm-tectonic-cache.mjs compiles a few representative documents so the TeX packages and the LaTeX format file land in node_modules/.cache/tectonic. Vercel restores that folder between builds, so only the first build waits on the downloads.next.config.ts includes the binary and the warmed cache in the compile function. On a cold start the function copies the cache into /tmp, so the first compile skips most downloads.
MIT. Use it, fork it, and adapt it freely.