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

@davi-ai/virtual-keyboard

v1.0.3

Published

Virtual keyboard component for React applications, to be used with Retorik Framework

Readme

Retorik Virtual Keyboard

A customizable virtual keyboard component for React applications, built on top of react-simple-keyboard. It automatically attaches to any focused input or textarea in the DOM, including elements inside Shadow Roots.

Features

  • 🌍 Multi-language support via simple-keyboard-layouts
  • 🖱️ Draggable keyboard
  • 👆 Tactile device detection
  • 🔲 Shadow DOM support (e.g. Retorik Framework)
  • 🎯 Auto-attach to input and textarea elements
  • 📦 Zero CSS import required (styles are injected automatically)

Installation

npm install @davi-ai/virtual-keyboard

Usage

import { VirtualKeyboard } from "@davi-ai/virtual-keyboard";

const App = () => {
  return (
    <>
      <input type="text" placeholder="Click to open keyboard" />
      <VirtualKeyboard locale="fr-FR" />
    </>
  );
};

Props

| Prop | Type | Default | Description | |---|---|---|---| | locale | string | "fr-FR" | Locale used for keyboard layout and translations (e.g. "en-US", "fr-FR") | | defaultPosition | { x?: number, y?: number } | Auto | Initial position of the keyboard on screen | | onlyWithRetorikFramework | boolean | false | If true, only observes inputs inside the Retorik Framework Shadow DOM | | observeShadowRoots | boolean | false | If true, observes all Shadow Roots found in the DOM | | onlyOnTactileDevices | boolean | false | If true, the keyboard is only displayed on tactile devices | | display | object | Auto (from locale) | Overrides the default labels for special keys. See below for details. |

display prop

Allows you to customize the labels shown on special keys. If not provided, labels are automatically resolved from the locale prop.

<VirtualKeyboard
  locale="fr-FR"
  display={{
    '{bksp}': '⌫',
    '{enter}': 'Entrée',
    '{shift}': 'Maj',
    '{lock}': 'Verr. Maj',
    '{tab}': 'Tab',
    '{space}': 'Espace',
  }}
/>

| Key | Description | |---|---| | {bksp} | Backspace key | | {enter} | Enter / Return key | | {shift} | Shift key | | {lock} | Caps Lock key | | {tab} | Tab key | | {space} | Space bar |

Supported Input Types

The keyboard automatically attaches to the following input types:

text, search, email, url, tel, password, number

Supported Locales

The component uses simple-keyboard-layouts for keyboard layouts. Many locales are supported, including but not limited to:

  • fr-FR — French
  • en-US — English
  • de-DE — German
  • es-ES — Spanish
  • it-IT — Italian

The full list is : "ar-AE", "ar-EG", "ar-SA", "ca-ES", "cs-CZ", "da-DK", "de-AT", "de-CH", "de-DE", "en-CA", "en-GB", "en-HK", "en-IE", "en-IN", "en-US", "es-ES", "es-MX", "fi-FI", "fr-BE", "fr-CA", "fr-CH", "fr-FR", "hi-IN", "hu-HU", "id-ID", "it-IT", "ja-JP", "ko-KR", "nb-NO", "nl-BE", "nl-NL", "pl-PL", "pt-BR", "pt-PT", "ru-RU", "sv-SE", "th-TH", "tr-TR", "zh-CN", "zh-HK", "zh-TW"

Dependencies

License

MIT