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

simple-ime

v1.2.3

Published

A simple browser tool to use Chinese Pinyin Input Method (IME).

Downloads

280

Readme

Simple Ime

CI latest tag npm

一个简易的web拼音输入法工具

英文文档

Goole Input tools相比,它携带了一个离线词库,因此不需要联网查询就可以完成拼音转换。 相应的,由于离线词库,包体积无法做到很小。此外,不支持iframe

如果你想减小离线词库的大小,可以运行npm run splitDict,然后将temp/目录下的dict.txtpacked-trie复制到src/data目录下,重新构建即可

快捷键

| 快捷键 | 描述 | | --- | --- | | ↑ | 向上翻页 | | ↓ | 向下翻页 | | + | 向上翻页 | | - | 向下翻页 | | ← | 向左切换候选词 | | → | 向右切换候选词 | | < | 向左切换候选词 | | > | 向左切换候选词 | | Shift | 切换英/拼 | | Enter | 直接键入转换后内容 | | [ | 左移输入法上的光标 | | ] | 右移输入法上的光标 |

安装

npm install simple-ime

使用

import { createSimpleIme } from 'simple-ime'

const ime = createSimpleIme()

// turn on ime
ime.turnOn()

// turn off ime
ime.turnOff()

APIs

createSimpleIme

创建一个SimpleIme实例

function createSimpleIme(): SimpleImeInstance

SimpleImeInstance

属性:

version

ime的版本

version: string

Methods:

turnOn

打开ime

function turnOn(): void

turnOff

关闭ime

function turnOff(): void

toggleOnOff

开关ime

function toggleOnOff(): void

dispose

销毁ime实例

function dispose(): void

开发

执行npm run dev,打开页面http://localhost:xxx

构建

npm run build

感谢

  • 输入框的实现参考了 CloudInput,它提供了输入法前后端的实现
  • 感谢web-pinyin-ime ,它提供了生成词典以及优化查询速度的方法