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

@msishamim/avro

v0.1.0

Published

Typed TypeScript wrapper around the OmicronLab Avro Phonetic Bangla transliteration engine + suggestion stack (MPL-1.1).

Readme

avro-typescript

A small, typed TypeScript wrapper around the Avro Phonetic Bangla transliteration engine and suggestion stack — ready to drop into a modern web app.

Credit where it's due. The transliteration engine, regex/rule tables, and dictionary are the work of OmicronLab (jsAvroPhonetic and ibus-avro), distributed under the Mozilla Public License 1.1. This repository republishes that work unmodified (with its original MPL-1.1 headers intact) and adds only a browser loader, a clean promise-based API, and TypeScript types. Full credit and copyright for the Avro engine and data belongs to OmicronLab. See CREDITS.md.

🚀 Live demo

Try Avro typing in your browser: https://msi-shamim.github.io/avro-typescript/ — toggle Avro on and type Bangla phonetically.

What this gives you

  • Transliteration — Roman → Bangla, deterministically (parse)
  • Suggestions — Bangla candidate words for a Roman word (suggest)
  • Learning — remember the user's chosen candidate (commit, persisted in localStorage)
  • Types — full TypeScript definitions, promise-based loader

Install

npm install @msishamim/avro

The vendored engine + dictionary live in src/vendor/. Serve those *.js files from a static path (e.g. copy src/vendor/* to your app's /public/avro/), then point basePath at that URL.

Usage

import { loadAvro } from '@msishamim/avro';

// basePath = the URL/dir that serves the vendored avro JS files (avro-suggest.js, avrolib.js, …)
const avro = await loadAvro({ basePath: '/avro/' });

avro.parse('ami banglay gan gai');   // → "আমি বাংলায় গান গাই"
avro.suggest('bangla');              // → ["বাংলা", "বঙলা", …]
avro.commit('bangla', 'বাংলা');       // remember the user's pick

API

| Method | Returns | Description | |---|---|---| | loadAvro(opts?) | Promise<Avro> | Loads the stack once (idempotent). Browser-only. | | avro.parse(text) | string | Deterministic Roman → Bangla transliteration. | | avro.suggest(word) | string[] | Bangla candidates for a single Roman word (best first). | | avro.commit(word, pick) | void | Persist the user's chosen candidate. |

AvroOptions: { basePath?: string /* default '/avro/' */, doc?: Document }.

How it works

src/vendor/avro-suggest.js is a thin browser shim (derived from ibus-avro) that evaluates the upstream GJS/GNOME Avro modules unmodified — stubbing the GNOME imports/Gio/GLib APIs and keeping the user's candidate picks in localStorage instead of a home-directory file. The engine (avrolib.js, avroregexlib.js) and the dictionary (avrodict.js) are OmicronLab's, untouched.

License

Mozilla Public License 1.1 (MPL-1.1) — the same license as the Avro Phonetic source this builds on. See LICENSE and CREDITS.md. The vendored files retain their original OmicronLab MPL-1.1 headers.

Acknowledgements

Built on the excellent work of OmicronLab and the Avro community:

If you're an original author and want attribution adjusted, please open an issue.