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

webdev-power-kit

v2.1.5

Published

A powerful toolkit that simplifies access to browser features like clipboard, notifications, battery, vibration, and more — perfect for modern web developers.

Readme

NPM Version Downloads License: MIT Docs Made by Aditya


📦 About the Project

WebDev Power Kit is a TypeScript-powered, modular toolkit designed to make common browser tasks and utility features incredibly simple and developer-friendly.

Whether you're building SPAs, dashboards, dev tools, or internal tools — this package saves you from writing repetitive, error-prone code.

Write clean, future-ready web apps with ease using modern browser features in just one line of code:

✨ Highlights

  • Modular Structure — only import what you need
  • 🧠 TypeScript Support — 100% typed with full JSDoc comments
  • ⚛️ React-friendly — examples included for React developers
  • 🌐 Browser API Wrappers — safe, clean functions for real-world apps
  • 🔌 System Utilities — OTPs, UUIDs, performance, and more
  • 🧪 Well-tested — secure, production-ready utilities

📖 Documentation

Explore detailed guides, feature docs, and examples in the docs section:

👉 View Full Documentation

Structure Includes:

  • ✨ Features
  • 📥 Parameters
  • 🔁 Return values
  • ⚛️ React usage examples
  • 🚨 Error handling tips
  • 📦 Real world use cases
  • 🔐 Browser support tables

Each page is written for developers, not bots. With TypeScript context and practical examples that work in real apps.


📦 Installation

npm install webdev-power-kit
# or
yarn add webdev-power-kit

Via CDN (ES Module):

<script type="module">
  import { copyToClipboard } from 'https://cdn.jsdelivr.net/npm/webdev-power-kit/+esm';
  copyToClipboard('Hello via CDN!');
</script>

⚡ Quickstart

HTML (CDN ESM):

<script type="module">
  import { copyToClipboard } from 'https://cdn.jsdelivr.net/npm/webdev-power-kit/+esm';
  copyToClipboard('Hello world from clipboard!');
</script>

React Example:

import { vibrate } from 'webdev-power-kit';
export default function App() {
  return <button onClick={() => vibrate([200,100,200])}>Vibrate</button>;
}

🚀 Usage Example

import { copyToClipboard } from "webdev-power-kit/browser/clipboard";

copyToClipboard("Hello from clipboard!")
  .then(() => console.log("Copied!"))
  .catch(err => console.error("Error copying:", err));
"use client";

import React from "react";
import { useEffect } from "react";
import { isOnline } from "webdev-power-kit/browser/network/is-online";

export default function NetworkStatus() {
  useEffect(() => {
    console.log("User is online:", isOnline());
  }, []);
  return <p>Check console for online status ✅</p>;
}

🤝 Contributing

Pull requests are welcome! For major changes, please open an issue first.

We follow a clean modular structure — every feature must:

  • Be placed in its own folder (Meaningful name)
  • Include index.ts with typed exports
  • Handle errors gracefully
  • Include comments and JSDoc
  • Follow files whitelist in package.json

📝 FAQ

  • Does it work with frameworks?

    . Yes, fully compatible with React, Vue, Svelte, or Vanilla JS.

  • Need HTTPS or special setup?

    Some features (clipboard, geolocation) require secure context. Testing with file:// won’t work—use Live Server or serve locally.

  • What browsers are supported?

    Modern desktop and mobile browsers are fully supported. Specific browser notes are included in each feature doc.


👨‍💻 Author

Aditya Kumar Gupta Computer Science Engineer • Web Developer • Hackathon Enthusiast


📄 License

Distributed under the MIT License. See LICENSE for details.


🚀 webdev-power-kit makes building professional browser-based apps faster, safer, and fun again. Import only what you need — clean, typed, and production-ready.