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

@cyberlangke/tokkit-moonshotai

v1.11.0

Published

moonshotai tokenizer families for tokkit.

Readme

@cyberlangke/tokkit-moonshotai

moonshotai 官方文本 tokenizer 的 tokkit 子包。

这是一个独立特殊协议子包,不包含在 @cyberlangke/tokkit 总包里。

当前内置 family:

  • kimi-k2
    • 覆盖 moonshotai/Kimi-K2-Base
    • 覆盖 moonshotai/Kimi-K2-Instruct
    • 覆盖 moonshotai/Kimi-K2-Instruct-0905
    • 也聚合当前确认在 BPE / added token 行为上完全一致的:
      • moonshotai/Kimi-Linear-48B-A3B-Base
      • moonshotai/Kimi-Linear-48B-A3B-Instruct
  • kimi-k2-thinking
    • 覆盖 moonshotai/Kimi-K2-Thinking
    • 该线额外引入了 <think> / </think> added tokens,因此与普通 kimi-k2 分开
  • moonlight
    • 覆盖 moonshotai/Moonlight-16B-A3B
    • 也聚合当前确认完全复用同一 tokenizer 行为的 moonshotai/Moonlight-16B-A3B-Instruct
    • 该线的 added tokens 少于 kimi-k2,因此单独保留 family
  • kimi-dev
    • 覆盖 moonshotai/Kimi-Dev-72B

说明:

  • Kimi-K2-*Moonlight-*Kimi-Linear-* 虽然共享同一份 tiktoken.model,但 tokenizer_config.json 里的 added token 集不同,不能粗暴压成一个 family。
  • kimi-k2 的模型之间当前只观察到 chat_template 差异;本项目不支持 chat template,因此仍可收口到同一个 family。
  • moonshotai/Kimi-Dev-72B 当前是独立 tokenizer,不命中现有仓库 family。

使用方法

npm install @cyberlangke/tokkit-moonshotai
import { getTokenizer } from "@cyberlangke/tokkit-moonshotai"

const shared = await getTokenizer("moonshotai/Kimi-K2-Instruct-0905")
const thinking = await getTokenizer("kimi-k2-thinking")

console.log(shared === thinking) // false