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

justd-cli

v2.2.16

Published

The command line interface for Justd.

Downloads

3,373

Readme

CLI

The CLI is designed to help you set up your project with Justd quickly and efficiently. It’s the easiest and most convenient way to install Justd, allowing you to get started with your project in just minutes.

Existing Project

If you already have a project set up—whether it’s built with Laravel, Next.js, Remix, Tanstack, or any other framework—simply run the following command to install Justd:

npx justd-cli@latest init

This command will prompt you to confirm your project’s setup. However, the CLI is smart enough to detect your project type and provide default values. Here’s an example of the output when running the command in a Next.js project:

✔ Initializing.
? Components folder: src/components
? Utils folder: src/utils
? Where would you like to place the CSS file? src/app/globals.css
✔ Installing dependencies.
✔ Configuring.
✔ UI folder created at `src/components/ui`
✔ Primitive file saved to `src/components/ui/primitive.tsx`
✔ Classes file saved to `src/utils/classes.ts`
✔ Theme Provider file saved to `"src/components/theme-provider.tsx"`
✔ Providers file saved to `"src/components/providers.tsx"`
✔ Configuration saved to `justd.json`
✔ Installation complete.

Start a New Project

The CLI is highly flexible and can automatically detect whether you already have a project set up. If you don’t, you can start fresh by running the init command like this:

npx justd-cli@latest init

Running this command will create a new project if no existing setup is detected. Currently, the CLI supports Laravel, Next.js, Remix, and Vite. If you’d like to see support for other frameworks, please let me know.

? No setup project detected. Do you want to start a new project? (yes/no) yes
? Which framework do you want to use? Next.js
? Which package manager do you want to use? Bun
? Enter the name of your new project: new-project
? Which Tailwind version do you want to use? (3/4) 4
...
...
Project setup complete!
To get started, run: `cd new-project && npm run dev`

Add

Once you’ve set up Justd, you can start adding components easily by running the add command:

npx justd-cli@latest add combo-box

Diff

If you think your Justd setup might be outdated, don’t worry. You can check for changes by running the diff command:

npx justd-cli@latest diff

This will display the components that differ from your installed versions and provide a list so you can quickly choose which components to update.

Change Gray

Not satisfied with the default gray base color? You can easily customize it by running the change command:

npx justd-cli@latest change-gray

The output will be like this:

? The specified CSS path 'src/app/globals.css' exists. Do you want to use this path? yes
? You will override the current theme "`zinc`" with others? yes
? Pick your desired base gray:
  zinc
  gray
❯ slate
  neutral
  stone

Alias

If you’re tired of typing npx justd-cli@latest, you can create an alias for the CLI by adding the following line to your .bashrc or .zshrc file:

alias justd='npx justd-cli@latest'

Then you can run the CLI using the justd command:

justd [command]

Options

The CLI is highly customizable, allowing you to use various flags for a more tailored experience. Here are some of the options available:

Skip

If you’re confident with the default values provided by the CLI, you can skip prompts by using the --yes or -y flag:

npx justd-cli@latest init --yes

Dirty

When running the init command, the CLI checks whether your project is clean. If it’s not, it will throw an error and halt the process. If you want to proceed regardless, you can use the --force flag:

npx justd-cli@latest init --force

Help

If you’re unsure about the next steps, you can always refer to the help command for guidance:

npx justd-cli@latest help