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

kurdish-keyboard

v0.1.1

Published

Embeddable virtual keyboard for typing Kurdish (Kurmanji and Sorani) in the browser

Readme

kurdish-keyboard

An embeddable virtual keyboard for typing Kurdish in the browser — both Kurmanji (Latin script) and Sorani (Arabic script) — as a TypeScript npm package. No OS-level keyboard layouts, no native apps: attach it to any <input> or <textarea> on any modern site.

Status: v0.1.1. Three layouts (CLDR-seeded Sorani, two Kurmanji variants), live script toggling, mobile modes, WAI-ARIA accessibility, theming, and a legacy-text normalizer — all verified by 90 tests and an executable packaging spec. The live demo and landing pages ship in six languages.

Why

Kurdish text on the web suffers from decades of codepoint fragmentation — visually identical letters encoded differently (ك vs ک, ي vs ی, ه vs ە), which silently breaks search, sorting, and spellcheck. This keyboard emits only the unified codepoints standardized by the KRG Department of IT and verified against the Unicode Character Database, so everything typed with it is correct by construction. See proposal/002-Proposal.md for the full design and proposal/001-idea-research.md for the primary-source research behind it.

Usage

import { KurdishKeyboard } from 'kurdish-keyboard';
import 'kurdish-keyboard/styles.css'; // optional styling (responsive + touch targets)
import sorani from 'kurdish-keyboard/layouts/sorani';
import kurmanjiPhonetic from 'kurdish-keyboard/layouts/kurmanji-phonetic';

const input = document.querySelector('input')!;
const kb = KurdishKeyboard.attachTo(input, {
  layout: sorani,       // tree-shakable: only the layouts you import are bundled
  suppressNative: true, // mobile: keep the native keyboard hidden (inputmode="none")
  position: 'docked',   // or 'inline' (default) / 'floating'
});
kb.setLayout(kurmanjiPhonetic); // live script toggle (RTL ↔ LTR)
kb.detach();

Full reference — options, layouts, mobile, theming (--kkb-*), accessibility, the legacy-text normalizer, CDN usage, and platform limits — lives in the integration guide.

Try the demo

Live: kurdish-keyboard.vercel.app — the playground, plus the landing page in five languages (en · kmr · ckb · fa · tr). Every push to main redeploys.

Or run it locally:

git clone https://github.com/shaho/kurdish-keyboard.git
cd kurdish-keyboard
npm install
npm run demo

npm run demo starts a local dev server (vite) and opens the demo page in your browser. Click into the input or textarea, place the caret or select some text, and press the on-screen keys — the panel types into the focused field and the page shows each input event as frameworks would observe it.

Development

npm run test        # vitest suite (jsdom)
npm run typecheck   # tsc --noEmit (TypeScript 7, strict)
npm run build       # tsup (ESM + CJS) + tsc declaration emit → dist/
npm run demo:build  # static demo site (playground + all landing locales) → demo-dist/
npx vite preview    # serve demo-dist locally — ES modules never run from file://,
                    # so always preview through a server, not by double-clicking the HTML

The project is developed ticket by ticket with a recorded audit trail:

| Where | What | |---|---| | proposal/ | The decided v1 proposal and the research note it stands on | | docs/tasks/ | The v1 tickets, each with acceptance criteria and blocking edges | | docs/decisions/ | Decision records made during development | | report/ | Per-commit log: hash, date, description |

License

MIT