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

takumi-cli

v1.3.1

Published

The craftsman's toolkit for shaping video assets

Downloads

738

Readme

takumi (匠)

A command-line toolkit for processing video assets. Convert, trim, caption, thumbnail, and inspect videos — one command at a time or in batch across folders.

Works on macOS, Windows, and Linux.

Install

macOS

brew tap kaiyiwong/tap
brew install takumi
takumi setup

setup installs ffmpeg and whisper via Homebrew.

Windows

Prerequisites:

  1. Install Node.js (LTS recommended)
  2. Install Git for Windows

Then open PowerShell:

npm install -g takumi-cli
takumi setup

setup installs ffmpeg via winget, chocolatey, or scoop (whichever is available).

Linux

npm install -g takumi-cli
takumi setup

setup installs ffmpeg and whisper via apt, dnf, or pacman.

Commands

| Command | Description | |---------|-------------| | takumi convert <path> [--profile name] | Convert to optimized MP4 | | takumi trim <video> <start> <end> | Cut a clip between timestamps | | takumi cc <path> [lang] [model] [format] | Generate captions using Whisper | | takumi thumb <path> [timestamp] | Extract a poster image (JPG) | | takumi info <path> | Show video metadata | | takumi gif <video> <start> <end> [width] | Create animated GIF from a clip | | takumi strip <path> <audio\|video\|both> | Extract audio/video as separate tracks | | takumi srt2vtt <path> | Convert SRT subtitles to VTT | | takumi vtt2srt <path> | Convert VTT subtitles to SRT |

All commands accept a single file or a folder (processes all videos recursively). Existing outputs are skipped on re-run so it's safe to retry.

Examples

# Convert for web (default, plays everywhere)
takumi convert video.mp4

# Convert for FireTV
takumi convert ./videos --profile firetv

# Compressed for email or Slack
takumi convert video.mp4 --profile small

# High quality for portfolio
takumi convert video.mp4 --profile hq

# Custom: override quality and max height
takumi convert ./videos --crf 21 --max 720

# Trim a 75-second clip
takumi trim video.mp4 00:01:30 00:02:45

# Generate Japanese captions with the large model
takumi cc ./videos ja large

# Thumbnail at a specific frame
takumi thumb video.mp4 00:00:15

# Create a GIF from a 5-second clip
takumi gif video.mp4 00:00:05 00:00:10

# Extract audio only
takumi strip video.mp4 audio

# Check resolution, codec, duration
takumi info ./videos

AI Integration (MCP)

takumi includes an MCP server so AI clients like Claude Code and Kiro can use all commands as tools. No syntax to remember, just describe what you want.

Run takumi mcp-config to get the config block for your client, or copy from below.

VS Code

Create or edit .vscode/mcp.json in your project:

{
  "servers": {
    "takumi": {
      "command": "takumi-mcp"
    }
  }
}

Claude Code

Add to ~/.claude.json or create .mcp.json in your project root:

{
  "mcpServers": {
    "takumi": {
      "command": "takumi-mcp"
    }
  }
}

Kiro

Create or edit .kiro/settings/mcp.json in your project:

{
  "mcpServers": {
    "takumi": {
      "command": "takumi-mcp"
    }
  }
}

Note: If your editor can't find takumi-mcp, use the full path from takumi mcp-config instead.

Once configured, just ask in natural language:

  • "convert all the videos in ~/projects/campaign for FireTV"
  • "what's the resolution and duration of this video?"
  • "generate Japanese captions for the videos in this folder"
  • "trim the intro, keep only 00:01:30 to 00:04:00"
  • "extract the audio from meeting.mp4"
  • "make a gif from the first 5 seconds of demo.mp4"

Update

# Homebrew (macOS)
brew update && brew upgrade takumi

# npm (any platform)
npm update -g takumi-cli

Troubleshooting

Windows: takumi is not recognized

The npm global bin directory may not be in your PATH. Run this in PowerShell:

npm prefix -g

If the output (e.g. C:\Users\<you>\AppData\Roaming\npm) is not in your PATH, add it:

[Environment]::SetEnvironmentVariable("PATH", $env:PATH + ";C:\Users\$env:USERNAME\AppData\Roaming\npm", "User")

Then close and reopen PowerShell.

Windows: bash not found

takumi needs bash to run. Git for Windows includes it. Make sure Git for Windows is installed — the default installation options are fine.

ffmpeg not found after setup

Restart your terminal. If it still doesn't work, check that ffmpeg is installed:

ffmpeg -version

On Windows, you can install it manually with:

winget install --id Gyan.FFmpeg -e

License

MIT