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

@cloudrumbles/indic-transliterate

v1.2.2

Published

High-accuracy transliteration for 21 Indian languages using AI4Bharat's IndicXlit models via ONNX.

Readme

@cloudrumbles/indic-transliterate

Node.js transliteration for 21 Indian languages using AI4Bharat's IndicXlit models via ONNX Runtime.

This is an unofficial port. Models (~47MB) are bundled with the package.

Install

npm install @cloudrumbles/indic-transliterate

Usage

import { IndicTransliterator } from '@cloudrumbles/indic-transliterate'

const transliterator = new IndicTransliterator()

// Tamil
const tamil = await transliterator.transliterate('amma', 'ta')
// => ['அம்மா', 'அம்ம', 'ஆம்மா', ...]

// Hindi
const hindi = await transliterator.transliterate('namaste', 'hi')
// => ['नमस्ते', 'नमस्ती', ...]

// Get more candidates
const results = await transliterator.transliterate('chennai', 'ta', 10)

// With rescoring (improves accuracy by ~6%)
const t = new IndicTransliterator({ rescore: true })
const rescored = await t.transliterate('amma', 'ta', 4)
// => ['அம்மா', 'ஆம்மா', 'அம்ம', 'ஆமா']
// Dictionary auto-downloads on first use (~200MB per language)

API

new IndicTransliterator(options?)

Creates a new transliterator instance. Models are loaded lazily on first use.

const transliterator = new IndicTransliterator({
  beamWidth: 4,      // beam search width (default: 4)
  maxLen: 20,        // max output length (default: 20)
  rescore: true,     // use word frequency dict for better accuracy (default: false)
  rescoreAlpha: 0.9, // model vs dict weight (default: 0.9)
  modelPath: '...'   // custom model path (default: bundled)
})

transliterate(word, langCode, count?): Promise<string[]>

Transliterates a romanized word to the target script. Returns count candidates (default 5) ranked by likelihood.

getSupportedLanguages(): string[]

Returns array of supported language codes.

initialize(): Promise<void>

Pre-loads the ONNX models. Optional - models load automatically on first transliterate() call.

dispose(): Promise<void>

Releases ONNX sessions to free memory. Call when done.

isInitialized: boolean

Whether models are currently loaded.

Supported Languages

| Code | Language | Code | Language | Code | Language | |------|----------|------|----------|------|----------| | as | Assamese | hi | Hindi | ne | Nepali | | bn | Bengali | kn | Kannada | or | Odia | | brx | Bodo | ks | Kashmiri | pa | Punjabi | | gom | Konkani | mai | Maithili | sa | Sanskrit | | gu | Gujarati | ml | Malayalam | sd | Sindhi | | mr | Marathi | mni | Manipuri | si | Sinhala | | ta | Tamil | te | Telugu | ur | Urdu |

Credits

Models and vocabulary from IndicXlit by AI4Bharat (MIT License).

@article{Madhani2022AksharantarTB,
  title={Aksharantar: Towards building open transliteration tools for the next billion users},
  author={Yash Madhani and Sushane Parthan and Priyanka A. Bedekar and Ruchi Khapra and Vivek Seshadri and Anoop Kunchukuttan and Pratyush Kumar and Mitesh M. Khapra},
  journal={ArXiv},
  year={2022},
  volume={abs/2205.03018}
}

License

MIT