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

@papit/create

v0.0.7

Published

Project and package scaffolding tool for @papit — opinionated, consistent, and designed to kickstart Papit-based projects with the correct structure from day one.

Readme

@papit/create

Project and package scaffolding tool for @papit — opinionated, consistent, and designed to kickstart Papit-based projects with the correct structure from day one.

Logo

This package is intended to be used from within a workspace or an empty directory. Simply run:

npm create @papit

to generate a fully initialized Papit package, component, or project with zero or minimal configuration.


Type Tests NPM version


CLI Flags

| Flag | Description | | ------------- | ----------------------------------- | | --package | Create a package | | --component | Create a component | | --project | Create a project | | --agree | Skip confirmations | | --install | Install dependencies after creation | | --commit | Create an initial git commit | | --verbose | Show detailed output |

If no creation flag is provided, an interactive selector is shown.


How it works

@papit/create presents a set of creation options. Some of these can be invoked directly via flags, but the tool is primarily interactive and focused on generating boilerplate code based on predefined templates.

There are currently three built-in runners:

  1. package
  2. component
  3. project

Note: You can provide your own custom runners by placing them in the bin folder. Each runner must have a runner.js file with a default export, for example:

<workspace-root>/bin/runners/<custom>/runner.js

A runner is a function that receives two arguments:

info: {
  root: string; // Location of the workspace root
  local: string; // Location of the current package (if any)
  script: string | null; // Location of the @papit/create script
}
args: {
  flags: Record<string, string | string[] | true | undefined>,
  values: string[]
}

For more details on the structure and behavior of these arguments, see the

  • @papit/arguments
  • @papit/information package.

Package

The package runner creates a new package at a selected location (sometimes referred to as layers or folders).

A template is selected — either one of the built-in templates or a custom template located at:

<workspace-root>/bin/runners/package/*

The selected template folder is copied, and all files are processed to replace supported variables.

The generated license file automatically references the same license as the workspace root.

Available variables

  • VARIABLE_NAME
  • VARIABLE_FULL_NAME
  • VARIABLE_DESCRIPTION
  • VARIABLE_LAYER_FOLDER
  • VARIABLE_PROJECTLICENSE
  • VARIABLE_GITHUB_REPO
  • VARIABLE_LOCAL_DESTINATION
  • VARIABLE_CLASS_NAME
  • VARIABLE_HTML_PREFIX
  • VARIABLE_USER

Component

The component runner creates a new component and is intended for adding sub-components to an existing package.

Like the package runner, it copies a selected template from either built-ins or:

<workspace-root>/bin/runners/component/*

Folder handling

  • views If a views folder exists in both the current package and the template, a new subfolder named after the component is created inside the package’s views directory and populated with the template content.

  • src If the current package already has a src folder with files, the template’s src content is typically placed under:

    src/components/<component-name>

Available variables

  • VARIABLE_NAME
  • VARIABLE_FULL_NAME
  • VARIABLE_HTML_NAME
  • VARIABLE_CLASS_NAME

Project

⚠️ This runner is currently under development.

The project runner creates a raw monorepo project at a selected destination.

As with packages and components, custom templates can be provided at:

<workspace-root>/bin/runners/project/*

You will be prompted to select a template during creation.

Licensing is handled interactively. You may provide an existing license file or omit it, in which case a standard MIT license is used.

Available variables

  • VARIABLE_NAME
  • VARIABLE_DESCRIPTION
  • VARIABLE_PROJECTLICENSE
  • VARIABLE_USER

Contributing

Contributions are welcome.

Please ensure that:

  • Templates follow Papit conventions
  • Runners remain deterministic
  • Interactive prompts stay minimal

Open a pull request when ready 🚀


License

Licensed under the @Papit License 1.0 Copyright (c) 2024 Henry Pap (@onkelhoy)

Key points:

  • ✅ Free to use in commercial projects
  • ✅ Free to modify and distribute
  • ✅ Attribution required
  • ❌ Cannot resell the component itself as a standalone product

See the LICENSE file for full details.


Support

For issues, questions, or contributions, please visit the GitHub repository.