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

@kamaras/venpm

v0.3.0

Published

Vencord Plugin Manager — CLI and index spec for distributing userplugins

Downloads

206

Readme


Why venpm?

Vencord's userplugin ecosystem is powerful but fragmented. Plugin authors host code in personal repos, users manually clone and rebuild, and there's no dependency resolution, no update tracking, and no discoverability.

venpm fixes this. Authors publish a small plugins.json index alongside their code. Users install plugins with a single command. venpm handles dependencies, version pinning, sparse git checkouts, and Vencord rebuilds automatically.

venpm install minimalCallBar
  Resolved [email protected] from kamaras-plugins
  Optional: settingsHub, channelTabs (install with venpm install <name>)
  Fetching via git (sparse checkout)...
  Installed [email protected]
  Rebuilding Vencord... done

Install

npm install -g @kamaras/venpm

Or run without installing:

npx @kamaras/venpm doctor

Quick Start

# Check your environment
venpm doctor

# Point venpm at your Vencord install
venpm config set vencord.path ~/Vencord

# Add a plugin repository
venpm repo add https://example.com/plugins.json

# Find and install plugins
venpm search betterFolders
venpm install BetterFolders
venpm list
venpm update
venpm rebuild

Commands

| Command | Description | |---------|-------------| | venpm install <plugin> | Install a plugin and its dependencies | | venpm uninstall <plugin> | Remove a plugin (warns about reverse deps) | | venpm update [plugin] | Update one or all plugins | | venpm list | Show installed plugins | | venpm search <query> | Search across all configured repos | | venpm info <plugin> | Show plugin details | | venpm repo add\|remove\|list | Manage plugin index repositories | | venpm config set\|get\|path | View or edit venpm configuration | | venpm create <path> | Scaffold a new plugin repo or plugin | | venpm rebuild | Rebuild Vencord after changes | | venpm doctor | Diagnose environment issues | | venpm validate [path] | Validate a plugins.json index file |

Global flags: --yes (auto-confirm), --verbose, --quiet, --json (structured output)

How It Works

  Author                          User
  ------                          ----
  plugins.json  ──publish──>  venpm repo add <url>
       |                          |
       v                          v
  GitHub / any URL            venpm install <plugin>
                                  |
                              resolve deps
                              fetch (git sparse checkout / tarball)
                              update lockfile
                              rebuild Vencord
  1. Authors publish a plugins.json index file — a JSON document describing their plugins, versions, and sources.
  2. Users register that URL with venpm repo add.
  3. venpm resolves the full dependency graph, fetches via git (with sparse checkout for monorepos) or tarball, updates the lockfile, and optionally rebuilds Vencord.

For Plugin Authors

# Scaffold a new plugin repository
venpm create my-plugins

# Scaffold a plugin inside an existing repo
venpm create my-plugins/MyPlugin

# Validate your index before publishing
venpm validate plugins.json --strict

venpm ships a GitHub Action for automated index publishing:

- uses: theokyr/venpm/actions/publish-index@main

See the Author Guide for the full walkthrough.

Plugin Index Spec

The JSON Schema defines the index format. Key features:

  • Dependencies & optional dependencies with automatic resolution
  • Monorepo support via source.git + source.path (sparse checkout)
  • Multiple source types: git, tarball, local symlink
  • Version pinning with versions map of tag/tarball pairs
  • Informational constraints for Discord and Vencord versions

Architecture

src/
  core/           Pure logic + I/O interfaces (never imports from cli/)
    types.ts        All interfaces: IOContext, PluginIndex, Config, Lockfile
    resolver.ts     Version resolution, dependency graph, topological sort
    registry.ts     Fetch + parse + cache plugin indexes
    fetcher.ts      Git clone (sparse checkout), tarball extract, local symlink
    builder.ts      Vencord pnpm build, deploy, Discord restart
    ...             config, lockfile, schema, detect, cache, paths, prompt, log
  cli/            Command handlers (compose core modules)
    context.ts      createRealIOContext() — wires real Node.js I/O
    install.ts      uninstall.ts  update.ts  list.ts  search.ts  ...
  index.ts        CLI entry point (commander)
schemas/v1/       JSON Schemas — the primary deliverable
actions/          GitHub Action for plugin repo authors

Design principle: All I/O is injected via IOContext — filesystem, HTTP, git, shell, prompts, logging. Core modules never import fs, fetch, or child_process directly. This makes the entire core testable with pure mocks.

Development

git clone https://github.com/theokyr/venpm.git && cd venpm
node scripts/setup.mjs    # install, build, link globally
npm run dev                # watch mode (live global updates)
npm test                   # 389 tests
npm run lint               # type check (tsc --noEmit)
npm run build              # one-shot compile

Test Suite

389 tests across three layers:

| Layer | What it tests | |-------|---------------| | Unit | Pure functions — resolver, registry, config, lockfile, schema, detect, cache | | Integration | Full command flows with mocked IOContext | | E2E | Compiled CLI as a subprocess against real temp directories |

See CONTRIBUTING.md for development guidelines.

Config & State

venpm stores configuration in a single XDG-compliant directory:

| OS | Path | |----|------| | Linux | ~/.config/venpm/ | | macOS | ~/Library/Application Support/venpm/ | | Windows | %APPDATA%\venpm\ |

Files: config.json, venpm-lock.json, index-cache.json

Documentation

Full documentation at venpm.dev — guides, author documentation, API reference, and TypeDoc-generated internals.

Disclaimer

venpm is not affiliated with, endorsed by, or sponsored by Discord Inc. or the Vencord project. "Discord" is a trademark of Discord Inc., mentioned solely for descriptive purposes.

Client modifications — including Vencord and any plugins installed through venpm — are against Discord's Terms of Service. While no widespread bans for client mod usage are known, Discord may take action against accounts at any time. You use client modifications entirely at your own risk.

venpm does not review or audit third-party plugins. You are responsible for evaluating the trustworthiness of any plugin repository and plugin you install. The authors are not responsible for any damage to your Discord account, computer, or data.

This software is provided "as is", without warranty of any kind. See LICENSE for details.

License

MIT