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

@saiforceone/dirt-cli

v0.4.0

Published

Official CLI Utility for the D.I.R.T stack

Readme

______ ___________ _____   _____  _     _____ 
|  _  \_   _| ___ \_   _| /  __ \| |   |_   _|
| | | | | | | |_/ / | |   | /  \/| |     | |  
| | | | | | |    /  | |   | |    | |     | |  
| |/ / _| |_| |\ \  | |   | \__/\| |_____| |_ 
|___/  \___/\_| \_| \_/    \____/\_____/\___/ 

D.I.R.T Stack CLI / D.I.R.T CLI (Beta)

Note: This is a work-in-progress and will be updated with more useful information

Official CLI Utility for the D.I.R.T stack

Welcome to a nicer way to scaffold Django projects utilizing InertiaJs, Reactive UI (React/Vue/Svelte soon) & Tailwind CSS.

Requirements

The DIRT CLI has the following requirements before it can be used. For a smoother experience, make sure the requirements below are working correctly.

Things to keep in mind

  • This is an early version of the CLI
  • New features will be added
  • This CLI has been tested on MacOS, Linux (Ubuntu) and now, Windows.
  • There are bugs

Creating a DIRT Stack Application

The DIRT-CLI makes it very easy to create a project harnessing the power of Django, InertiaJS, React/Vue and Tailwind CSS.

# Run the command using NPX (this may change in the future)
npx @saiforceone/dirt-cli@latest

and answer the prompts. For an example, see below

? What should we call this project? testproj
? Select a frontend framework / library react
? Would you like to use StorybookJS? No
? Would you like to have git initialized? No
? Show verbose logs? No

Once the scaffolding of your project is complete, navigate to the directory and run the following

# activate pipenv's shell
pipenv shell

# run the project
npm run dirt-dev

# open the web app in browser: http://127.0.0.1:8000

If you opted to use the StoryBook option, you may run it from the project directory using

npm run storybook

Creating Controllers (Django Apps within a D.I.R.T Stack project)

A controller in this context is defined as a Django app within the project and the associated InertiaJS View files

Creating a controller

To create a controller, the following command will need to be used. This command does not need to the virtual environment to be active for it to work.

# Controller create command
@saiforceone/dirt-cli create-controller <controller_name>

# or (the create-app alias may be used)
@saiforceone/dirt-cli create-app <controller_name>

When the command runs, the necessary files will be created. Once that is done, you will need to update your project's main urls.py file as follows (see the example below)

  • Import the include function from django.urls
  • Copy and paste the path in the list of urlpatterns
### Example output assuming <controller_name> is 'demoapp'
 D.I.R.T CLI Controller Created

 Update your main urls.py file as follows

 1. Import the include function from django.urls

 from django.urls import path, include

 2. Add this entry to urlpatterns

 path('demoapp/', include('demoapp.urls')),

 3. Navigate to the newly-created controller

 http://127.0.0.1:8000/demoapp/

Technical Stuff

When the create-controller command is run, the following processes take place:

  • A Django application is created within the project matching the name specified.
  • The corresponding InertiaJS View is then created [project_root]/dirt_fe_[react|vue]/src/pages/[controller_name]/Index.[tsx|vue]

Known issues

Failed to scaffold project

Currently, the scaffolding process may fail at the initial step of creating the Django project. If that happens, delete the generated project folder, the corresponding virtual environment and then rerun the CLI.

Typically, virtual environments will be located in somewhere like: ~/.local/share/virtualenvs for Posix system or .virtualenvs for Windows.

Hidden Django dev server output:

Currently, some Django development server output is hidden when using npm run dirt-dev on Windows. The workaround is to run Django normally in it's own terminal (pipenv shell must be activated) and then the frontend in another terminal using npm run dirt-fe. Workaround: set the environment variable PYTHONUNBUFFERED=1.