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

web-dev-snippets

v1.1.5

Published

A fast, lightweight CLI tool that instantly generates essential boilerplate code and useful snippets to streamline your web development workflow.

Readme

Web Dev Snippets

npm version License Downloads

A fast, lightweight CLI tool by Abdul Irfan that instantly generates essential boilerplate code and useful snippets to streamline your web development workflow.

Table of Contents


Features

  • Instant Boilerplate Code: Quickly generate code snippets for HTML, React, React Native, and more.
  • Simple CLI Interface: Use one-line commands to access your favorite code templates.
  • Extendable & Customizable: Easily contribute additional snippets or modify existing ones.
  • Boosts Productivity: Save time by getting code snippets on demand during your development process.

Installation

🌟Install the latest updated verison only

Global Installation

To install the package globally so you can run the CLI command anywhere:

npm install -g web-dev-snippets

Local Installation

To install within a single project:

npm install web-dev-snippets

After local installation run this below command :

npx <command>

For Example :

npx boiler html

In this case, you can either:

  1. Run it with npx: npx web-dev-snippets html
  2. Or reference it from your project scripts in package.json.

Usage

Once installed (globally or locally), you can use the CLI command boiler to generate snippets.

Commands

| Command | Description | |---------------------------|-------------------------------------------------------------| | boiler html | Outputs a basic HTML boilerplate. | | boiler react | Outputs a simple React component snippet. | | boiler reactnative | Outputs a basic React Native component snippet. | | boiler react-class-comp | A basic class-based component for React. | | boiler express | A minimal Express server to get started with Node.js. | | boiler css | A snippet to remove default browser styling. | | boiler tailwindcss | A starter HTML file that includes Tailwind CSS via CDN. | | boiler vue | A basic Vue SFC with template, script, and scoped style. | | boiler angular | A minimal Angular component. | | boiler svelte | A simple Svelte component example. | | boiler nextjs | A basic Next.js functional page component. | | boiler graphql | A simple GraphQL server using Express and express-graphql. | | boiler mongodb | A snippet for connecting to MongoDB using Mongoose. | | boiler javascript | A simple JavaScript function template. | | boiler typescript | A basic example of a class written in TypeScript. | | boiler bootstrap | A starter template using Bootstrap 4 via CDN. | | boiler jquery | A simple HTML page demonstrating basic jQuery usage. |

Example:

boiler html

This prints a boilerplate HTML file to your console.

Using npx

If you don’t want to install the package globally, you can run it directly from npm:

npx web-dev-snippets html

This command fetches the package from the npm registry and runs it instantly.


Uninstallation

Global Uninstall

npm uninstall -g web-dev-snippets

Removes the globally installed package and the boiler command from your system.

Local Uninstall

npm uninstall web-dev-snippets

Removes the package from your project’s node_modules folder.


Contributing

Contributions are welcome! If you’d like to add more snippets or improve the tool, please follow these steps:

  1. Fork the Repository: Click on the "Fork" button on GitHub to create your own copy.
  2. Create a New Branch:
    git checkout -b feature/YourFeature
  3. Commit Your Changes:
    git commit -m "Add some feature"
  4. Push to the Branch:
    git push origin feature/YourFeature
  5. Open a Pull Request: Go to your fork on GitHub and open a pull request to merge your changes.

License

This project is licensed under the ISC License.


Author

Abdul Irfan
GitHub Profile


Additional Resources