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

vkbd

v1.0.1

Published

A lightweight Hindi/English virtual keyboard UI for web applications.

Downloads

30

Readme

vkbd

A lightweight Hindi/English virtual keyboard UI for web applications.

npm version license downloads month jsDelivr Hits author Publish Package to npm

✨ Features

  • 🖊️ Hindi + English typing support
  • 🎨 Light / Dark / System theme support with variants
  • 🖥️ On-screen draggable keyboard (movable dialog)
  • 🔀 Language switch (EN ⇄ HI)
  • ⌨️ Special keys (Shift, Caps, Alt, Backspace, Enter, etc.)
  • 📦 Zero dependency, pure JavaScript

Installation

npm install vkbd

or via yarn:

yarn add vkbd

Including vkbd

Below are some of the most common ways to include vkbd.

Browser

CDN Link

<script src="https://cdn.jsdelivr.net/npm/[email protected]/lib/vkbd.min.js"></script>

You can add the script manually to your project:

<script src="vkbd.js"></script>

Webpack / Browserify / Babel

There are several ways to use Webpack, Browserify or Babel. For more information on using these tools, please refer to the corresponding project's documentation. In the script, including vkbd will usually look like this:

import vkbd from 'vkbd';

API Usage

Usage in React

import 'vkbd.css';
import vkbd from 'vkbd';

function App() {

  const kbdUI = new vkbd({
    lang: 'hi',      // 'hi' or 'en'
    theme: 'dark',  // e.g, 'light', 'dark', 'system'
    themeVariant: 1, // 1-3
  });

  // OR
  // const kbdUI = new vkbd();
  // kbdUI.open(inputElement|selector);
  // kbdUI.close();

  return (
    <div>
      <div>
        <input type="text" placeholder="Firstname" id="firstname" />
        <span onClick={() => kbdUI.open("#firstname")}>⌨️</span>
      </div>
      <div>
        <input type="text" placeholder="Surname" id="surname" />
        <span onClick={kbdUI.open("#surname")}>⌨️</span>
      </div>
    </div>
  );
}

export default App;

Output

Output1

Usage in Browser

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Virtual Keyboard UI</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/lib/vkbd.min.css">
  <script src="https://cdn.jsdelivr.net/npm/[email protected]/lib/vkbd.min.js"></script>

  <!-- Keboard UI Configuration -->
  <script>
    const kbdUI = new vkbd({
      lang: 'hi',      // 'hi' or 'en'
      theme: 'light',  // e.g, 'light', 'dark', 'system'
      themeVariant: 1, // 1-3
    });

    // OR
    // const kbdUI = new vkbd();
    // kbdUI.open(inputElement|selector);
    // kbdUI.close();
  </script>
</head>
<body>
  <div>
    <div>
      <input type="text" placeholder="Firstname" id="firatname" />
      <span onclick="kbdUI.open('#firatname')">⌨️</span>
    </div>
    <div>
      <input type="text" placeholder="Surname" id="surname" />
      <span onclick="kbdUI.open('#surname')">⌨️</span>
    </div>
  </div>
</body>
</html>

Output

Output2

Configuration Options

That means the user can set these options (such as lang, theme, themeVariant) to control the keyboard’s language, theme, and style.

|Option|Type|Default|Description| |:-----|:---|:------|:----------| |lang|string|'hi'|Initial language (hi or en)| |theme|string|'light'|Theme: light, dark, system |themeVariant|number|1|Theme style variant (1–3)

📚 API

  • vkbd(options) returns a keyboard instance
  • keyboard.open(elem) open keyboard for given input/textarea
  • keyboard.close() close keyboard

Contributing

Pull requests are welcome! For major changes, please open an issue first to discuss what you would like to change.

License

Licensed Under MIT

Copyright (c) 2025 Indian Modassir