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

kwidget-inhtml

v1.0.0

Published

A reliable option for making widgets in html.

Downloads

6

Readme

kwidget.js

Author

kwidget.js is a free widget software that insert a widget button into your web app.

  • Cookbook How to use kwidget.js <widget> tag is used in html

  • Widget
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<widget>
   <p>Widget Content</p>
</widget>
    <script src="kwidget.js"></script>
</body>
</html>
  • Widget colours - Widget colors is to change the color of the modal/Widget You can replace the color to a hex color as well.
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<widget color="blue">
   <p>Widget Content</p>
</widget>
    <script src="kwidget.js"></script>
</body>
</html>
  • Widget positions - Set the widget position to right and left

For right-

Note: Right is the default position and you can directly add and it will be set to right. However the position can be still changed-

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<widget position="right">
   <p>Widget Content</p>
</widget>
    <script src="kwidget.js"></script>
</body>
</html>

For left-

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<widget position="left">
   <p>Widget Content</p>
</widget>
    <script src="kwidget.js"></script>
</body>
</html>
  • Widget button icon - Set the widget button's icon default is ⚙ (Cog)
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<widget icon="🛠">
   <p>Widget Content</p>
</widget>
    <script src="kwidget.js"></script>
</body>
</html>

You can replace the emoji with anything you want.

  • Double widgets - Also, It also has double widgets with their own buttons
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<widget color="blue" position="right">
   <p>Widget Content</p>
</widget>
<widget color="red" position="left">
   <p>Widget Content</p>
</widget>
    <script src="kwidget.js"></script>
</body>
</html>
  • Change the colour of the button - You can also change the color of the button that opens the widget
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<widget color="blue" buttoncolor="blue" icon="🌊">
   <p>Widget Content</p>
</widget>
<widget color="red" buttoncolor="red" icon="🔥">
    <script src="kwidget.js"></script>
</body>
</html>

You can also replace the colors with hex codes of colors.

  • Widget gradients - The widget's background color can also be changed to gradients like-
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<widget gradient="blue; red">
   <p>Widget Content</p>
</widget>
    <script src="kwidget.js"></script>
</body>
</html>

You can Also use hex codes as well

  • Widget button gradient - Change the color of the button which opens the widget/PopUp
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<widget buttongradient="blue; green">
   <p>Widget Content</p>
</widget>
    <script src="kwidget.js"></script>
</body>
</html>
  • Widget button icon image - Change the button's icon to a image (That button that opens the widget)
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<widget iconimage="ICON.PNG">
   <p>Widget Content</p>
</widget>
    <script src="kwidget.js"></script>
</body>
</html>

Feel free to change the ICON.PNG to anything else.

  • Gradient position/Direction Change the gradient position
  • For ContentGradient : <widget contentgradient="blue; green" contentgradientposition="left">
  • For All : <widget contentgradient="blue; green" gradientposition="left">

Note: Attributes can be mixed, Not 1 attribute can be used at a time, You can use as many attributes that you want