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

v-thaana

v1.1.0

Published

Vue directive for Thaana (Maldivian script) input with TypeScript support

Readme

V-Thaana

N|Solid

Build Status

V-Thaana is a Vue directive and standalone library for Thaana (Maldivian script) input with full TypeScript support.

Features

  • Vue 2 & Vue 3 Compatible - Works with both Vue 2 and Vue 3
  • TypeScript Support - Fully typed with TypeScript definitions
  • Two Keyboard Layouts - Phonetic and Typewriter layouts
  • Input & Textarea Support - Works with both input and textarea elements
  • Standalone Function - Can be used without Vue
  • Modern Package Structure - Proper ES modules and CommonJS support

Installation

npm install v-thaana

Usage

As a Vue Plugin

import Vue from 'vue';
import vThaana from 'v-thaana';

Vue.use(vThaana, {
  keyboard: 'phonetic' // or 'typewriter'
});

// In your template
<input v-thaana v-model="text" type="text" />
<textarea v-thaana v-model="text"></textarea>

TypeScript Usage

import Vue from "vue";
import vThaana, { ThaanaOptions } from "v-thaana";

const options: ThaanaOptions = {
  keyboard: "phonetic",
};

Vue.use(vThaana, options);

Standalone Function

import { thaana } from "v-thaana";

const input = document.querySelector("#my-input");
thaana(
  input,
  (value) => {
    console.log("Updated value:", value);
  },
  {
    keyboard: "phonetic",
  }
);

TypeScript Standalone Usage

import { thaana, ThaanaOptions } from "v-thaana";

const input = document.querySelector("#my-input") as HTMLInputElement;
const options: ThaanaOptions = {
  keyboard: "phonetic",
};

thaana(
  input,
  (value: string) => {
    console.log("Updated value:", value);
  },
  options
);

API

Types

type KeyboardType = "phonetic" | "typewriter";

interface ThaanaOptions {
  keyboard?: KeyboardType;
}

interface ThaanaUpdateCallback {
  (value: string): void;
}

Functions

thaana(el, updateCallback, options?)

Standalone function to enable Thaana input on an element.

  • el: HTMLInputElement | HTMLTextAreaElement - The input element
  • updateCallback: ThaanaUpdateCallback - Callback function called when value changes
  • options: ThaanaOptions - Optional configuration

Keyboard Layouts

Phonetic Layout

The phonetic layout maps English QWERTY keys to Thaana characters based on phonetic similarity.

Typewriter Layout

The typewriter layout uses the traditional Thaana typewriter keyboard mapping.

Sample Project

A complete sample project is included in the sample/ directory. To run it:

cd sample
npm install
npm run dev

Development

Building

npm run build

This will:

  • Compile TypeScript to JavaScript
  • Generate type definitions (.d.ts files)
  • Create both CommonJS and ES module builds

Development Mode

npm run dev

Runs TypeScript compiler in watch mode.

Publishing

The package includes scripts for semantic versioning and publishing:

Quick publish (recommended):

# Using the shell script (handles everything)
./scripts/publish.sh [patch|minor|major]

Using npm scripts:

# Patch version (1.0.2 -> 1.0.3) - bug fixes
npm run release:patch

# Minor version (1.0.2 -> 1.1.0) - new features
npm run release:minor

# Major version (1.0.2 -> 2.0.0) - breaking changes
npm run release:major

Manual version bump (without publishing):

npm run version:patch  # or version:minor, version:major

Publish without git operations:

npm run publish:patch  # or publish:minor, publish:major

The release scripts will:

  1. Build the package
  2. Bump the version in package.json
  3. Publish to npm
  4. Create a git tag
  5. Push to remote repository

Project Structure

v-thaana/
├── src/
│   └── index.ts          # Main source code
├── dist/                 # Built files (generated)
├── sample/               # Sample/demo project
│   ├── src/
│   │   ├── App.vue
│   │   └── main.js
│   └── ...
├── package.json
├── tsconfig.json
└── README.md

License

MIT

Free Software, Hell Yeah!