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

dikt

v1.4.1

Published

Voice dictation for the terminal.

Readme

dikt

Voice dictation for the terminal. Record, transcribe, copy — zero npm dependencies.

Uses Mistral's Voxtral for speech-to-text.

Install

npm install -g dikt

Requires sox for audio recording (not needed for --file):

# macOS
brew install sox

# Ubuntu/Debian
sudo apt install sox

# Arch
sudo pacman -S sox

Optional dependencies for --file mode:

  • ffmpeg — enables compression, chunked transcription of long files, and broader format support
  • yt-dlp — enables transcribing audio from URLs (YouTube, podcasts, etc.)

Setup

On first run, dikt will prompt you for your Mistral API key and model preferences:

dikt setup

Config is stored in ~/.config/dikt/config.json.

Usage

dikt

This opens an interactive TUI where you can record, transcribe, and copy text.

Keys

| Key | Action | |---|---| | Space | Start / stop recording | | c / Enter | Copy transcript to clipboard | | a | Toggle auto-copy | | h | Cycle through history | | r | Re-transcribe last recording | | Esc | Cancel recording | | s | Re-run setup | | ? | Show keybindings | | q | Quit |

Single-shot mode

# Print transcript to stdout
dikt -q

# Output JSON
dikt --json

# Pipe to another tool
dikt -q | claude

# Wait longer before auto-stopping
dikt -q --silence 5

Stream mode

Continuously transcribe, emitting chunks on pauses:

dikt --stream

# Stream as JSON Lines
dikt --stream --json

# Stream as continuous flowing text
dikt --stream -n

# Stream continuously until Ctrl+C
dikt --stream --silence 0

File mode

Transcribe an existing audio file (wav, mp3, m4a, flac, ogg, webm, aac, wma, and more):

dikt --file meeting.wav

# Save to a file (.json auto-enables JSON output)
dikt --file meeting.wav -o transcript.json
dikt --file meeting.wav -o transcript.txt

# With JSON output
dikt --file recording.mp3 --json

# Transcribe from a URL (requires yt-dlp)
dikt --file https://youtube.com/watch?v=VIDEO_ID
dikt --file https://youtube.com/watch?v=VIDEO_ID -o transcript.txt

Speaker identification & timestamps

# Speaker labels
dikt -q --diarize

# Timestamps
dikt -q --timestamps segment
dikt -q --timestamps word
dikt --file lecture.mp3 --timestamps segment

# Combined with JSON
dikt -q --json --diarize

Options

| Flag | Description | |---|---| | --file <path\|url> | Transcribe audio file or URL (via yt-dlp) | | -o, --output <path> | Write output to file (.json auto-enables JSON) | | --stream | Stream transcription chunks on pauses | | --json | Output JSON (single-shot or stream) | | -q, --quiet | Record once, print transcript to stdout | | --silence <seconds> | Silence duration before auto-stop (default: 2.0) | | --pause <seconds> | Pause duration to split stream chunks (default: 1.0) | | --language <code> | Language code, e.g. en, de, fr (default: auto) | | --timestamps <granularity> | Add timestamps: segment or word | | --diarize | Enable speaker identification | | -n, --no-newline | Join stream chunks without newlines | | --no-color | Disable colored output | | --no-input | Fail if config is missing (no wizard) | | --setup | Run setup wizard | | --update | Update to latest version | | --version | Show version | | -h, --help | Show help |

Update

dikt update

Environment variables

| Variable | Description | |---|---| | DIKT_API_KEY | Override API key | | DIKT_MODEL | Override model (default: voxtral-mini-latest) | | DIKT_LANGUAGE | Override language (default: auto) | | DIKT_TEMPERATURE | Override temperature | | DIKT_CONTEXT_BIAS | Override context bias |

License

MIT