{"id":47737774,"url":"https://github.com/crafter-station/trx","last_synced_at":"2026-04-06T02:01:16.552Z","repository":{"id":348150730,"uuid":"1196713935","full_name":"crafter-station/trx","owner":"crafter-station","description":"Agent-first CLI for audio/video transcription via Whisper","archived":false,"fork":false,"pushed_at":"2026-04-01T02:53:04.000Z","size":367,"stargazers_count":72,"open_issues_count":2,"forks_count":13,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-05T01:10:02.328Z","etag":null,"topics":["agent","audio","captions","cli","speech-to-text","srt","subtitles","transcription","video","whisper"],"latest_commit_sha":null,"homepage":"https://trx.crafter.run","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/crafter-station.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-31T01:07:12.000Z","updated_at":"2026-04-03T10:41:25.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/crafter-station/trx","commit_stats":null,"previous_names":["crafter-station/trx"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/crafter-station/trx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crafter-station%2Ftrx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crafter-station%2Ftrx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crafter-station%2Ftrx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crafter-station%2Ftrx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crafter-station","download_url":"https://codeload.github.com/crafter-station/trx/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crafter-station%2Ftrx/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31456664,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T21:22:52.476Z","status":"online","status_checked_at":"2026-04-06T02:00:07.287Z","response_time":112,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["agent","audio","captions","cli","speech-to-text","srt","subtitles","transcription","video","whisper"],"created_at":"2026-04-02T23:01:29.902Z","updated_at":"2026-04-06T02:01:16.526Z","avatar_url":"https://github.com/crafter-station.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @crafter/trx\n\nAgent-first CLI for audio/video transcription via [Whisper](https://github.com/ggml-org/whisper.cpp).\n\nDownloads, cleans, and transcribes media from URLs or local files with machine-readable output designed for AI agents.\n\n## Install\n\n```bash\nbun add -g @crafter/trx\ntrx init\n```\n\n`trx init` installs dependencies (`whisper-cli`, `yt-dlp`, `ffmpeg` via Homebrew), downloads a Whisper model, and optionally installs the agent skill for your AI coding tool.\n\n### Skill Only\n\nIf you already have trx set up and just want the agent skill:\n\n```bash\nnpx skills add crafter-station/trx -g\n```\n\n## Usage\n\n```bash\n# Transcribe a local file\ntrx recording.mp4\n\n# Transcribe from URL (YouTube, Twitter, Instagram, etc.)\ntrx \"https://youtube.com/watch?v=...\"\n\n# Agent-friendly JSON output\ntrx transcribe video.mp4 --output json\n\n# Only get the text (saves tokens)\ntrx transcribe video.mp4 --fields text --output json\n\n# Dry-run (validate without executing)\ntrx transcribe video.mp4 --dry-run --output json\n\n# Specify language\ntrx transcribe video.mp4 --language es\n\n# Schema introspection for agents\ntrx schema transcribe\n```\n\n## Commands\n\n| Command | Description |\n|---------|-------------|\n| `trx \u003cinput\u003e` | Shorthand for `trx transcribe` |\n| `trx init` | Install deps + download Whisper model |\n| `trx transcribe \u003cinput\u003e` | Full transcription pipeline |\n| `trx doctor` | Check dependency status |\n| `trx schema \u003cresource\u003e` | JSON schema introspection |\n\n## Agent-First Design\n\nBuilt following [agent-first CLI principles](https://justin.poehnelt.com/posts/rewrite-your-cli-for-ai-agents/):\n\n- **`--output json`** auto-detects: table for TTY, JSON when piped\n- **`--dry-run`** validates before executing\n- **`--fields`** limits response size to protect agent context windows\n- **`trx schema`** runtime introspection (no docs needed)\n- **Input validation** rejects control characters, path traversals, URL-encoded strings\n- **Ships with SKILL.md** for Claude Code agent post-processing\n\n## Agent Skill\n\nThe bundled skill (`skills/trx/SKILL.md`) enables AI agents to:\n\n1. Transcribe media via CLI\n2. Post-process output (fix punctuation, accents, technical terms, repeated phrases)\n3. Reference `whisper-fixes.md` for common Whisper mistake patterns\n\n## Pipeline\n\n```\nInput (URL or file)\n  |\n  v\n[yt-dlp] Download media (if URL)\n  |\n  v\n[ffmpeg] Clean audio (silence removal, noise reduction, normalization)\n  |\n  v\n[whisper-cli] Transcribe (local Whisper model)\n  |\n  v\nOutput: .wav + .srt + .txt + JSON\n```\n\n## Configuration\n\nStored at `~/.trx/config.json` after `trx init`:\n\n```json\n{\n  \"modelPath\": \"~/.trx/models/ggml-small.bin\",\n  \"modelSize\": \"small\",\n  \"language\": \"auto\",\n  \"threads\": 8\n}\n```\n\nModels: `tiny` (75MB) | `base` (142MB) | `small` (466MB) | `medium` (1.5GB) | `large` (3GB)\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrafter-station%2Ftrx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrafter-station%2Ftrx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrafter-station%2Ftrx/lists"}