A powerful toolkit that simplifies access to browser features like clipboard, notifications, battery, vibration, and more β perfect for modern web developers.
npm install webdev-power-kit
A powerful, modular toolkit that simplifies working with browser APIs, utility tools, and system-level features β built for modern web developers. β‘
bash
npm install webdev-power-kit
or
yarn add webdev-power-kit
`
$3
`html
`
β‘ Quickstart
$3
`html
`
$3
`tsx
import { vibrate } from 'webdev-power-kit';
export default function App() {
return ;
}
`
π Usage Example
`ts
import { copyToClipboard } from "webdev-power-kit/browser/clipboard";
copyToClipboard("Hello from clipboard!")
.then(() => console.log("Copied!"))
.catch(err => console.error("Error copying:", err));
`
`tsx
"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 Check console for online status β
;
}
`
---
π€ 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
* π GitHub
* π Hashnode Docs
---
π License
Distributed under the MIT License.
See LICENSE for details.
---
> π webdev-power-kit` makes building professional browser-based apps faster, safer, and fun again.