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

docrev

v0.8.1

Published

Academic paper revision workflow: Word ↔ Markdown round-trips, DOI validation, reviewer comments

Readme

docrev

npm npm downloads node License: MIT CI

A CLI for writing documents in Markdown while collaborating with Word users.

You write in Markdown under version control. Your collaborators use Word (or PDF). docrev converts between the two, preserving track changes, comments, equations, and cross-references.

The Problem

You've been here before:

manuscript_v1.docx
manuscript_v2_john_comments.docx
manuscript_v2_jane_comments.docx
manuscript_v3_merged_final.docx
manuscript_v3_merged_final_REAL.docx
manuscript_v3_merged_final_REAL_submitted.docx

Three reviewers send back three Word files. You manually compare changes, copy-paste between documents, lose track of who said what. A week later, you can't remember which version has the figure updates.

docrev fixes this. You write in plain text. Reviewers use Word. Their feedback flows back into your files automatically. One source of truth, full version history, no more file chaos.

Highlights

  • Markdown → Word/PDF with citations, figures, equations, cross-references
  • Round-trip sync: import Word track changes and comments back to Markdown
  • CLI review workflow: reply to comments, accept/reject changes from terminal
  • DOI tools: validate, lookup, and auto-add references from DOIs
  • 21 journal styles: Nature, Science, PNAS, and more
  • Version control friendly: plain text source, full git history

Install

npm install -g docrev

Requires Node.js 18+, Pandoc 2.11+, and LaTeX for PDF output.

Quick Example

Write in Markdown with citations and cross-references:

Climate change poses significant challenges [@IPCC2021]. As shown in
@fig:temperature, global temperatures have risen steadily.

![Temperature anomalies](figures/temperature.png){#fig:temperature}

The relationship follows $\Delta T = \lambda \cdot \Delta F$ (@eq:forcing).

Build and share:

rev build docx    # → paper.docx (for collaborators)
rev build pdf     # → paper.pdf  (for journals)

When collaborators return the Word doc with track changes:

rev sync reviewed.docx    # their comments → your markdown

How It Works

┌─────────────┐     rev build docx      ┌─────────────┐
│             │ ───────────────────────→│             │
│  Markdown   │                         │    Word     │  → collaborators
│   (you)     │     rev build pdf       │   / PDF     │  → journals
│             │ ───────────────────────→│             │
└─────────────┘                         └─────────────┘
       ↑                                       │
       │              rev sync                 │
       └───────────────────────────────────────┘
              their feedback → your files

You stay in Markdown. Collaborators use Word. Journals get PDF. Everyone works in their preferred format.

The CLI Review Cycle

When reviewers send back a Word document with track changes and comments:

rev sync reviewed.docx            # import feedback into markdown

Track changes appear inline - accept or reject by editing:

The sample size was {--100--}{++150++} participants.

Handle comments without opening Word:

rev comments                      # list all comments
rev reply methods.md -n 1 -m "Added clarification"
rev resolve methods.md -n 1       # mark as resolved
rev build docx --dual             # clean + annotated versions

Reviewers who annotate PDFs instead of Word? That works too:

rev sync annotated.pdf            # extract PDF comments
rev pdf-comments annotated.pdf --append methods.md

Multiple reviewers sending back separate files? Merge them:

rev merge reviewer_A.docx reviewer_B.docx   # three-way merge

The merge command uses the original document (auto-saved in .rev/base.docx on build) to detect what each reviewer changed, identifies conflicts when reviewers edit the same text differently, and lets you resolve them interactively.

Your entire revision cycle stays in the terminal. final_v3_REAL_final.docx is over.

Getting Started

Starting a New Document

Create a new project:

rev new my-report
cd my-report

You'll be prompted to enter your section names, or press Enter to use the default structure. You can also specify sections directly:

rev new my-report -s intro,methods,results,discussion

Or set your preferred default sections once:

rev config sections "intro,methods,results,discussion"

This creates a folder with your chosen sections:

my-report/
├── intro.md
├── methods.md
├── results.md
├── discussion.md
├── references.bib
└── rev.yaml

Write your content in the markdown files. When ready to share:

rev build docx pdf

After building, your project structure looks like:

my-report/
├── intro.md
├── methods.md
├── results.md
├── discussion.md
├── references.bib
├── rev.yaml
├── paper.md              ← combined sections (auto-generated)
├── my-report.docx        ← output for collaborators
└── my-report.pdf         ← output for journals

The output filename is derived from your project title in rev.yaml. Citations are resolved, equations rendered, and cross-references numbered.

Starting from an Existing Word Document

If you have a Word document to convert:

rev import manuscript.docx

This creates a project folder and splits the document into section files. Images are extracted to figures/, equations are converted to LaTeX, and track changes/comments are preserved as markdown annotations.

Configuration

Layout is controlled in rev.yaml:

title: "My Document"
output:
  docx:
    reference-doc: template.docx   # your Word template
  pdf:
    documentclass: article
    fontsize: 12pt

Configure your name for comment replies:

rev config user "Your Name"

Annotation Syntax

Track changes from Word appear as CriticMarkup:

The sample size was {--100--}{++150++} participants.   # deletion + insertion
Data was collected {~~monthly~>weekly~~}.              # substitution
{>>Reviewer 2: Please clarify.<<}                      # comment

Writing Tips

Track word count changes between versions:

rev diff                    # compare against last commit
#  methods.md     +142 words  -38 words
#  results.md      +89 words  -12 words

Add references to references.bib (BibTeX format):

@article{Smith2020,
  author = {Smith, Jane},
  title = {Paper Title},
  journal = {Nature},
  year = {2020},
  doi = {10.1038/example}
}

Cite with [@Smith2020] or [@Smith2020; @Jones2021] for multiple sources.

Equations use LaTeX: inline $E = mc^2$ or display $$\sum_{i=1}^{n} x_i$$.

Cross-references: @fig:label, @tbl:label, @eq:label → "Figure 1", "Table 2", "Equation 3".

Command Reference

| Task | Command | |------|---------| | Create project | rev new my-project | | Create LaTeX project | rev new my-project --template latex | | Import Word document | rev import manuscript.docx | | Extract Word equations | rev equations from-word doc.docx | | Build DOCX | rev build docx | | Build PDF | rev build pdf | | Build clean + annotated | rev build docx --dual | | Sync Word feedback | rev sync reviewed.docx | | Sync PDF comments | rev sync annotated.pdf | | Extract PDF comments | rev pdf-comments annotated.pdf | | Extract with highlighted text | rev pdf-comments file.pdf --with-text | | Project status | rev status | | Next pending comment | rev next | | List pending comments | rev todo | | Filter by author | rev comments file.md --author "Reviewer 2" | | Accept all changes | rev accept file.md -a | | Reject change | rev reject file.md -n 1 | | Reply to comment | rev reply file.md -n 1 -m "response" | | Reply to all pending | rev reply file.md --all -m "Addressed" | | Resolve comment | rev resolve file.md -n 1 | | Show contributors | rev contributors | | Lookup ORCID | rev orcid 0000-0002-1825-0097 | | Merge reviewer feedback | rev merge reviewer_A.docx reviewer_B.docx | | Archive reviewer files | rev archive | | Check DOIs | rev doi check references.bib | | Find missing DOIs | rev doi lookup references.bib | | Add citation from DOI | rev doi add 10.1038/example | | Word count | rev wc | | Pre-submission check | rev check | | Check for updates | rev upgrade --check |

Run rev help to see all commands, or rev help <command> for details on a specific command.

Full command reference: docs/commands.md

Claude Code Skill

Install the docrev skill for Claude Code:

rev install-cli-skill      # install to ~/.claude/skills/docrev
rev uninstall-cli-skill    # remove

Once installed, Claude understands docrev commands and can help navigate comments, draft replies, and manage your revision cycle.

Installing Dependencies

Pandoc

Pandoc handles document conversion.

| Platform | Command | |----------|---------| | macOS | brew install pandoc | | Windows | winget install JohnMacFarlane.Pandoc | | Debian/Ubuntu | sudo apt install pandoc | | Fedora | sudo dnf install pandoc |

Other platforms: pandoc.org/installing

LaTeX (for PDF output)

| Platform | Command | |----------|---------| | macOS | brew install --cask mactex | | Windows | winget install MiKTeX.MiKTeX | | Debian/Ubuntu | sudo apt install texlive-full | | Fedora | sudo dnf install texlive-scheme-full |

Alternatively, TinyTeX provides a minimal distribution that downloads packages on demand.

License

MIT