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 🙏

© 2025 – Pkg Stats / Ryan Hefner

windsurf-syncdocs

v1.0.4

Published

Sync custom documentation into Windsurf IDE

Readme

windsurf-syncdocs

Extend Windsurf IDE with custom documentation by syncing docs from your installed packages.

Background:

  1. Windsurf has built-in documentation, but no ability to add custom documentation.
  2. When you create custom packages, Windsurf can perform ++++ much better with access to structured documentation.
  3. Usually, folders like node_modules, or similar are .gitignore'd by default, meaning we can't symlink documentation into Windsurf.

The Fix:

Syncdocs provides a reproducible way to sync documentation from your installed packages into Windsurf.

You can then tell Windsurf to create a memory about how to sync docs, then Windsurf can later sync docs for you automatically, giving you access to the documentation you need.

Installation

npm install windsurf-syncdocs

Usage

  1. Create a .syncdocs.yaml file in your project root with your sync configuration:
syncs:
  - name: my-package-docs
    source: node_modules/my-package/docs
    target: docs/my-package
    # You don't need any of these options, but they are available if you need them.
    options:
      deleteOrphaned: true # Remove files in target that don't exist in source
      type: copy # 'copy' or 'hardlink'
      watch: false # Set to true for development mode
      logging:
        beforeSync: Starting docs sync...
        afterSync: Docs sync complete!
  1. Run the sync command:
npm run syncdocs

Configuration Options

Each sync configuration in .syncdocs.yaml supports:

  • name: Identifier for this sync operation
  • source: Path to source documentation (relative to project root)
  • target: Path where docs should be synced (relative to project root)
  • options:
    • deleteOrphaned: Remove files in target that don't exist in source (default: true)
    • type: 'copy' or 'hardlink' (default: 'copy')
    • watch: Watch for changes and sync automatically (default: false)
    • logging: Custom messages for sync operations
      • beforeSync: Message to show when sync starts
      • afterSync: Message to show when sync completes

Example

To sync documentation from multiple packages:

syncs:
  - name: ui-components
    source: node_modules/@my-org/ui-components/docs
    target: docs/ui-components
    options:
      deleteOrphaned: true
      watch: true

  - name: api-client
    source: node_modules/@my-org/api-client/docs
    target: docs/api-client
    options:
      deleteOrphaned: true
      type: hardlink

Development Mode

Set watch: true in your sync options to automatically sync documentation when changes are detected in the source directory.

License

MIT