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

the-dig

v1.4.0

Published

A powerful command-line interface tool for managing The DIG component library.

Readme

The DIG CLI

🛠 A powerful command-line interface tool for managing The DIG component library in your projects.

Overview

The DIG CLI is a Node.js-based command-line tool that helps you initialize, configure, and manage The DIG component library in your projects. It provides a seamless way to set up your project with the necessary configuration and add components from the library.

Features

  • Project Initialization: Set up your project with The DIG configuration
  • Component Management: Add components from the library to your project
  • CSS Configuration: Automatically configure your project's CSS with The DIG styles
  • Dependency Management: Automatically install required dependencies
  • TypeScript Support: Full TypeScript support with proper type definitions

Usage

Initialize a Project

Set up your project with The DIG configuration:

npx the-dig@latest init

This command will:

  • Create a .thedigrc.json configuration file
  • Install necessary dependencies (clsx, lucide-react)
  • Set up the basic project structure

Configure CSS

Configure your project's CSS with The DIG styles:

npx the-dig@latest config

This will update your global CSS file with The DIG styles and Tailwind CSS configuration.

Add Components

Add components from The DIG library to your project:

npx the-dig@latest add <components-name>

Example:

npx the-dig@latest add TextField
npx the-dig@latest add Button,Badge

Update Components

Update components from The DIG library to your project:

npx the-dig@latest update <components-name>

Example:

npx the-dig@latest update TextField
npx the-dig@latest update Button,Badge

Configuration

The CLI uses a .thedigrc.json file to store project configuration. Here's the default configuration:

{
  "tsx": true,
  "tailwind": {
    "version": 4,
    "css": "/src/app/globals.css"
  },
  "aliases": {
    "components": "/src/components"
  }
}

Configuration Options

  • tsx: Enable TypeScript JSX support
  • tailwind.version: Tailwind CSS version to use
  • tailwind.css: Path to your global CSS file
  • aliases.components: Directory where components will be added

Available Commands

| Command | Description | | --------------------- | ------------------------------------ | | init | Initialize the project for The DIG | | config | Configure the project CSS | | add <components> | Add new components to your project | | update <components> | Update components to your project |

Prerequisites

  • Node.js 18+
  • TypeScript
  • npm or yarn

Development Dependencies

  • commander: CLI framework
  • fs-extra: Enhanced file system operations
  • node-fetch: HTTP client
  • ora: Terminal spinners

License

ISC License - see the LICENSE file for details.

Author

Parham Hoseyni


For more information about The DIG component library, visit the main documentation.