npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

overleap

v0.2.5

Published

Bidirectional real-time sync between Overleaf projects and local files

Readme


Why?

Overleaf is great for collaboration. Your local editor is great for writing. overleap bridges the two — no manual pull/push, no git middleware, just real-time OT sync over Overleaf's native protocol.

Once your Overleaf project is just local files, anything that can edit files can edit Overleaf — Neovim, VS Code, scripts, and yes, AI agents.

Your AI assistant writes LaTeX. Collaborators see it on Overleaf. In real time.

Prerequisites

  • Node.js >= 18
  • git (needed to install the Overleaf-compatible socket.io client)

Quick Start

npm install -g overleap

# 1. List your projects
overleap projects --cookie "your_session_cookie"

# 2. Start syncing — pick by number, name, or ID
overleap sync -p 3 --dir ./my-paper
overleap sync -p "quantum" --dir ./my-paper
overleap sync -p 64a1b2c3d4e5f6... --dir ./my-paper

Or use a .env file:

OVERLEAF_COOKIE=your_session_cookie

Then just:

overleap sync
# → shows numbered project list, pick one interactively

How It Works

  Local Editor                         Overleaf
  ┌──────────┐    OT ops over WS     ┌──────────┐
  │  .tex    │ ◄──────────────────►  │  Project │
  │  files   │    Socket.IO v0.9     │  docs    │
  └──────────┘                       └──────────┘
       ▲                                    ▲
       │ chokidar                           │
       │ (fs watch)              Operational Transform
       │                          (same protocol as
       ▼                           Overleaf editor)
   overleap
  1. Connects to Overleaf using the same WebSocket protocol as the browser editor
  2. Downloads all project files on first run; uploads local-only files to the server
  3. Watches local files — text edits are diffed and sent as OT operations, binary files are uploaded via multipart API
  4. Receives remote changes — applied to local files atomically
  5. New files/docs created by collaborators are auto-downloaded

Commands

| Command | Description | |---------|-------------| | overleap sync | Start bidirectional sync | | overleap projects | List available projects | | overleap compile | Trigger compilation & download PDF |

Options

| Flag | Env Variable | Description | |------|-------------|-------------| | --project, -p | OVERLEAF_PROJECT_ID | Project number, name (fuzzy), or ID | | --dir, -d | OVERLEAF_DIR | Local directory (default: cwd) | | --cookie, -c | OVERLEAF_COOKIE | Session cookie | | --url, -u | OVERLEAF_URL | Server URL (default: overleaf.com) |

Project selection is flexible — omit -p for an interactive numbered list, or:

-p 3                    # pick 3rd project from list
-p "quantum"            # fuzzy match by name
-p 64a1b2c3d4e5...      # direct Overleaf project ID

Getting Your Cookie

  1. Open overleaf.com and log in
  2. DevTools → Application → Cookies
  3. Copy the full cookie string (or just the overleaf_session2 value)

Features

  • Text files (.tex, .bib, .sty, etc.) — live OT sync, same protocol as the Overleaf editor
  • Binary files (images, PDFs, etc.) — auto upload/download/update via REST API
  • AI-agent friendly — flush debouncing and content stability checks prevent corrupted uploads from rapid edits
  • Local-only file detection — files that exist locally but not on the server are uploaded on initial sync

Limitations

  • Requires a valid session cookie (no OAuth yet)

License

MIT