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

dify-setup

v0.2.1

Published

Bootstrap a Dify frontend development environment from a single CLI entry point.

Downloads

860

Readme

dify-setup

dify-setup is a Node.js CLI that prepares a local Dify frontend development environment.

Prerequisites

  • macOS
  • Node.js 22.18+ available on the machine
  • pnpm available via Corepack is recommended
  • Google Chrome
  • GitHub CLI (gh) authenticated for the target account
  • Manual Chrome extension loading is still required during the plugin phase

Recommended setup:

  • install Node.js with fnm
  • enable pnpm with Corepack:
    • npm install --global corepack@latest
    • corepack enable pnpm

Commands

  • npx dify-setup init
  • npx dify-setup doctor
  • npx dify-setup plugin

init starts the Dify frontend dev server in the background during the runtime phase. When startup succeeds, the CLI prints the reachable local URL, reuses an existing reachable frontend when one is already running, tells you how to stop a CLI-started server, and writes runtime logs to ~/.dify-setup/runtime.log.

At the workspace step, init asks whether to use the current directory or a custom path. It no longer assumes a fixed default clone path.

After you confirm a path, the CLI shows a workspace loading state while it checks the directory and, when needed, clones the Dify repository.

By default, the final login-sync step targets https://cloud.dify.ai, which matches the default API prefixes written to web/.env.local.

Local workflows

  • vp install
  • vp config
  • vp check
  • vp test run
  • vp pack
  • vp staged

vp check is the static quality gate for this project. With lint.options.typeCheck: true enabled in vite.config.ts, it already includes TypeScript type checking.

vp staged reads rules from the staged block in vite.config.ts. To make those checks run automatically at commit time, run vp config once after cloning the repository. Vite+ installs local Git hooks under .vite-hooks/, which should remain local setup output rather than tracked project files.

Configuration

Copy dify-setup.config.example.json to dify-setup.config.json and override plugin, env, or runtime values when needed.