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

vscode-docpilot

v0.7.2

Published

AI-Powered PDF Assistant & Quick Prompts Manager for VSCode

Readme

DocPilot

VSCode extension for PDF viewing, Reveal.js slide presentations, AI-powered document analysis, and productivity tools.

Features

Reveal.js Slide Presentations

Transform markdown files into professional presentations with one click.

  • Slide separators: --- (horizontal), ---- (vertical)
  • Rich plugins: Markdown, syntax highlighting, speaker notes, Mermaid diagrams, math (KaTeX)
  • 11 themes: black, white, league, beige, sky, night, serif, simple, solarized, blood, moon
  • 6 transitions: none, fade, slide, convex, concave, zoom
  • VSCode theme integration: Auto dark/light mode mapping
  • Customizable: controls, progress bar, slide numbers

slides-preview-01

slides-preview-02

PDF Viewer

  • Auto-activation when opening .pdf files
  • Local & remote PDFs (filesystem or URLs)
  • Navigation & zoom with fit-to-width/page
  • Text search (Ctrl/Cmd+F)
  • Screenshot tool with drag-to-select
  • Object inspector (images, tables, fonts, annotations, metadata)
  • Theme integration (dark/light modes)

pdf-viewer-01

pdf-viewer-03

pdf-viewer-04

AI Document Analysis

Requires GitHub Copilot subscription.

  • Summarization with smart caching
  • Mindmap generation (Mermaid format)
  • Semantic chunking for large documents
  • Multi-model support (GPT-4, Gemini, etc.)
  • Cache management (stats, export, clear)

pdf-viewer-02

Quick Prompts

  • Customizable text processing with AI
  • Context menu integration (right-click selected text)
  • Template system ({selectedText} placeholder)
  • Direct Copilot integration
  • Built-in defaults (Explain Code, Find Issues)

quick-prompts-01

quick-prompts-02

Markdown Enhancement

  • Auto Mermaid rendering in preview and Reveal.js slides
  • All diagram types (flowcharts, sequence, class, state, ER, gantt, mindmap, etc.)
  • Theme-aware visualization
  • Math equations (KaTeX in slides)
  • Zero configuration

mermaid-01

mermaid-02

Installation

Marketplace:

Development:

git clone https://github.com/DTeam-Top/vscode-docpilot
cd vscode-docpilot
npm install && npm run compile
# Press F5 to launch Extension Development Host

Quick Start

Reveal.js Slides

Right-click .md file → "View as Reveal.js Slides"

Markdown format:

# Title Slide

---

## Slide 1
Content here

---

## Slide 2

----

### Vertical Slide 2.1

PDFs

  • Automatic: File → Open → select .pdf
  • Command: Ctrl/Cmd+Shift+P → "DocPilot: Open Local PDF"
  • Context menu: Right-click .pdf → "Open Local PDF"

AI Commands

Open Copilot Chat (Ctrl/Cmd+Alt+I):

@docpilot /summarise path/to/file.pdf
@docpilot /summarise https://example.com/doc.pdf
@docpilot /summarise                    # Shows file picker

@docpilot /mindmap path/to/file.pdf     # Generate Mermaid mindmap
@docpilot /cache-stats                  # View cache info
@docpilot /clear-cache                  # Clear all caches
@docpilot /cache-export                 # Export to markdown

Quick Prompts

  1. Select text
  2. Right-click → DocPilot → Quick Prompts
  3. Choose prompt

Custom prompts:

{
  "docpilot.quickPrompts": [
    {
      "name": "Explain Code",
      "prompt": "Explain this code:\n\n{selectedText}"
    }
  ]
}

Keyboard Shortcuts

Reveal.js:

  • Arrow Keys / Space - Navigate
  • ESC - Exit presentation
  • F - Fullscreen
  • S - Speaker notes
  • O - Overview

PDF:

  • Ctrl/Cmd+F - Search
  • Enter / Shift+Enter - Next/Previous result
  • Ctrl/Cmd + +/-/0 - Zoom

Configuration

{
  "docpilot.reveal.theme": "black",
  "docpilot.reveal.transition": "slide",
  "docpilot.reveal.controls": true,
  "docpilot.textProcessing.chunkSizeRatio": 0.8,
  "docpilot.pdfViewer.maxCachedTextLayers": 10,
  "docpilot.timeouts.textExtractionMs": 30000
}

See full options in VSCode Settings UI.

Development

npm run compile          # Build TypeScript + assets
npm run watch            # Watch mode
npm run test             # All tests
npm run test:e2e         # E2E tests (Playwright)
npm run lint             # Biome linting
npm run package          # Create .vsix

Architecture:

src/
├── extension.ts         # Entry point
├── chat/                # Copilot integration
├── commands/            # Commands (PDF, Reveal.js, Quick Prompts)
├── webview/             # PDF & slide viewers
├── pdf/                 # Text/object extraction
├── cache/               # Document caching
└── test/                # Unit/integration/E2E tests

Tech stack: TypeScript 5.9, PDF.js 5.3.93, Reveal.js 5.2.1, Mermaid v11, VSCode Extension API, Rollup, Biome, Playwright

Limitations

  • AI features require GitHub Copilot subscription
  • Large documents (>100MB) may have performance issues

Links

License

MIT License - see LICENSE