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

silence-cli

v1.0.0

Published

A custom webpack cli

Readme

Introduction

silence-cli provides a set of commands and options to create and customize webpack projects.

Install

npm install silence-cli --save-dev
yarn add silence-cli --dev
pnpm install silence-cli -D

Usage

configuration file

Create a file named silence.config.js or silence.config.ts in the root directory of the project:

import { defineConfig } from "silence-cli";
import { fileURLToPath } from "node:url";

export default defineConfig({
    entry: fileURLToPath(new URL("./src/main.ts", import.meta.url)),
    resolve: {
        alias: {
            "@": fileURLToPath(new URL("./src", import.meta.url))
        }
    },
    devServer: {
        hot: true,
        open: true,
        historyApiFallback: true
    },
    framework: "vue",
    css: {
        preprocessor: "sass"
    }
});

This configuration file can be CommonJS or ESM.

command

development

silence dev --host 0.0.0.0 --port 8080 --config silence.config.ts

production

silence build --config silence.config.ts

Config options

assets

type: Array<Asset> Handle resource modules.

Asset

A set of options for one resource module.

suffixes

type: string[] An array storing resource suffixes, for example ["png", "jpg"].

type

type: "url" | "raw" | "base64" | "auto" default: "url" Compile resource files into different output formats.

outputName

type: string default: [hash][ext][query] Output name of resource file during building.

base

type: string default: "/" The public base path for developing or producing environmental services.

css

preprocessor

type: "less" | "sass" | "none" default: "none"

output

filename

type: string default: "css/index.css" The output file name corresponding to the CSS entry file.

chunkFilename

type: string default: "css/[name].css" The output chunk name corresponding to the CSS chunk file.

devServer

webpack-dev-server.

entry

webpack entry.

externals

webpack externals.

framework

type: "vue" | "react" default: undefined The purpose is to load different loaders and plugins based on different frameworks.

htmlTemplate

path

type: string default: "./index.html" The path of the root HTML in the project.

outputName

type: string default: "index.html" The output name of the root html.

inject

type: "body" | "head" default: "body" The position to insert the entry file into the HTML.

output

webpack output.

optimization

splitChunks

webpack splitChunks.

plugins

webpack plugins.

resolve

alias

webpack alias.