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

fmode-listen

v0.1.1

Published

Claude Code skill: 录音文件转写(讯飞 LFASR)通过 Fmode 网关 /api/listen/transcribe 完成。讯飞凭据仅服务端持有,客户端只需 fmode token,服务端按音频时长计费。提供 `npx fmode-listen transcribe` 直连命令 + Claude Code 技能安装器。

Readme

fmode-listen

Claude Code skill + CLI that transcribes audio files via the Fmode gateway (POST /api/listen/transcribe, backed by iFlytek LFASR). iFlytek credentials live only on the server — the client just needs an fmode token, and the server bills by actual audio duration.

Transcribe directly

# transcribe an audio file (auto-probes duration for the pre-check)
npx fmode-listen@latest transcribe -- meeting.mp3

# language + speaker diarization + dump full JSON
npx fmode-listen@latest transcribe -- meeting.mp3 \
  --language autodialect --diarize --speakers 3 --out result.json

# custom gateway (default https://server.fmode.cn/api/listen)
npx fmode-listen@latest transcribe -- meeting.mp3 --gateway https://server.fmode.cn/api/listen

transcribe prints the plain transcript to stdout. Everything after -- is passed through to the runner.

Auth (fmode token only)

The runner resolves the token in this order:

  1. FMODE_API_TOKEN environment variable
  2. ~/.fmode/config.jsonfmodeApiToken / newapiToken (written by FmodeStudio)
  3. ./.fmode/config.jsonfmodeApiToken / newapiToken
  4. ~/.claude/settings.json (plus settings.local.json / project .claude/) → env.ANTHROPIC_AUTH_TOKENthis is Claude Code's sk- token; the runner reads it automatically, no manual config needed. Only accepted when it starts with sk- (real Anthropic sk-ant- is excluded) and the base points to fmode.

A "token not found" error means the token is missing, not that the service is unavailable — do not click any payment/top-up popup; just supply the token via any source above.

Never put iFlytek appId/apiKey/secretKey on the client — they belong to the server only.

Install the Claude Code skill

# project-level → ./.claude/skills/fmode-listen
npx fmode-listen@latest workspace

# user-level → ~/.claude/skills/fmode-listen
npx fmode-listen@latest install

Then prompt Claude Code, e.g. 把 meeting.mp3 转写成文字,开启说话人分离。

Billing

  • Billed by actual audio duration: ceil(minutes) × unit price, minimum 1 minute.
  • The server charges after transcription succeeds (real duration from iFlytek), through the same newapi metering as other Fmode models. The client-supplied duration is only used for the pre-flight balance check.
  • Insufficient balance returns HTTP 402 with a rechargeUrl.

Commands

| Command | Description | |---------|-------------| | transcribe -- <file> [opts] / run -- ... | transcribe an audio file via the gateway | | workspace / install | install the Claude Code skill | | check / smoke / path | verify install / run smoke test / print target |

Programmatic use

import { transcribeFile, probeDurationMs, resolveApiToken }
  from './skills/fmode-listen/scripts/listen-runner.mjs';

const { text, segments, raw } = await transcribeFile({
  filePath: 'meeting.mp3',
  language: 'autodialect',
  diarize: true,
  speakers: 3,
});

License

MIT