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

@litomore/coli

v0.0.2

Published

A CLI for the Cola

Downloads

17

Readme

coli

Core library for Cola. Provides essential capabilities commonly used by agents.

CLI

npm i -g @litomore/coli
Usage
  $ coli <command> [options]

Commands
  asr    Transcribe an audio file using speech recognition

Examples
  $ coli asr recording.m4a
  $ coli asr -j recording.m4a
  $ coli asr --model whisper recording.wav

coli asr

Transcribe an audio file using speech recognition.

# Plain text output
coli asr recording.m4a

# JSON output
coli asr -j recording.m4a

# Select model
coli asr --model whisper recording.wav

Options

-j, --json     Output result in JSON format
--model        Model to use: whisper, sensevoice (default: sensevoice)

JSON output example

{
	"text": "The tribal chieftain called for the boy.",
	"model": "sensevoice-small",
	"lang": "<|en|>",
	"emotion": "<|NEUTRAL|>",
	"event": "<|Speech|>",
	"tokens": ["The", " tri", "bal", " chief", "tain", "..."],
	"timestamps": [0.9, 1.26, 1.56, 1.8, 2.16, "..."],
	"duration": 7.152
}

API

npm i @litomore/coli

ASR

ensureModels()

Check for required models and download any that are missing. Call this before runAsr.

import {ensureModels} from '@litomore/coli';

await ensureModels();

runAsr(filePath, options)

Run speech recognition on an audio file. Results are printed to stdout.

import {ensureModels, runAsr} from '@litomore/coli';

await ensureModels();

// Plain text output
await runAsr('recording.m4a', {json: false, model: 'sensevoice'});

// JSON output
await runAsr('recording.m4a', {json: true, model: 'whisper'});

Options

| Property | Type | Description | | -------- | --------------------------- | ----------------------------------------------------------------------------- | | json | boolean | Output JSON (with model name, tokens, timestamps, etc.) instead of plain text | | model | 'whisper' \| 'sensevoice' | Which model to use for recognition |

getModelPath(model)

Returns the local filesystem path for a given model.

import {getModelPath} from '@litomore/coli';

getModelPath('sensevoice');
// => '/Users/you/.coli/models/sherpa-onnx-sense-voice-zh-en-ja-ko-yue-int8-2024-07-17'

getModelPath('whisper');
// => '/Users/you/.coli/models/sherpa-onnx-whisper-tiny.en'

modelDisplayNames

A mapping from model key to its human-readable display name.

import {modelDisplayNames} from '@litomore/coli';

modelDisplayNames.sensevoice; // => 'sensevoice-small'
modelDisplayNames.whisper; // => 'whisper-tiny.en'

Models

On first run, coli automatically downloads ASR models to ~/.coli/models/:

| Name | Model | Languages | | ---------------------- | ------------------------------------------------------------------ | --------------------------------------------- | | sensevoice (default) | SenseVoice Small int8 | Chinese, English, Japanese, Korean, Cantonese | | whisper | Whisper tiny.en int8 | English |

Supported audio formats

WAV files are passed directly to the recognizer. All other formats (m4a, mp3, ogg, flac, etc.) are automatically converted to 16 kHz mono WAV via ffmpeg.

License

MIT