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

npm-pear-template

v1.0.1

Published

imagine publishing your app on npm, and running it globally anywhere just by installing in the system.

Readme

npm-pear-template

Welcome to the npm-pear-template, a streamlined solution for creating and distributing GUI applications using the Pear framework. This template is designed to help you build and publish your app to NPM, making it easily accessible with a single command on any system.


Features

  • Pre-configured Pear setup: Save time with a ready-to-use configuration.
  • Cross-platform deployment: Publish your app on NPM for universal usage.
  • Customizable structure: Modify HTML, CSS, and JavaScript to fit your needs.
  • Global execution: Run your app on any system using a custom command.

Getting Started

1. Clone the Template

Clone this repository and navigate to the project directory:

git clone https://github.com/Codesamp-Rohan/npm-pear-template.git
cd npm-pear-template

2. Install Dependencies

Ensure you have Node.js and the Pear framework installed. Then, install project dependencies:

npm install

3. Customize Your App

Start editing the files to make the application your own:

  • HTML: Edit index.html to define your app's structure.
  • CSS: Customize styles in styles.css.
  • JavaScript: Add functionality in script.js.

4. Test Locally

Run your app locally during development:

pear run -d .

5. Prepare for NPM:

Modify the package.json file for publishing:

  • Set the name field to your desired package name.
  • Update the bin field to specify the command users will use to run your app. Example:
"bin": {
   "your-command": "./bin/gui.js"
}

Ensure that gui.js initializes the Pear framework and loads index.html as the GUI.


6. Publish Your App

Publish your app to NPM:

npm login
npm publish

7. Install and Run Your App

After publishing, users can install your app globally via NPM:

npm install -g your-package-name

And run it using the specified command:

your-command

Project Structure

npm-pear-template/
├── bin
├    └── gui.js         # Main entry point for the app
├── src
├     ├── index.html     # App UI
├     ├── styles.css     # Styles for the app
├     └── script.js      # Logic for the app
├── package.json   # NPM configuration
├── README.md      # Documentation
└── node_modules/  # Dependencies

FOR EXAMPLE

Run:

npm i npm-pear-template -g

then run

npm-pear-template

Contributions

Contributions are welcome! Fork this repository, make changes, and submit a pull request. Let's build amazing GUI applications together! 😊


Contact

Have questions or suggestions? Reach out!