kimoyo 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +134 -2
- package/bin/kimoyo.js +37 -0
- package/package.json +39 -4
package/README.md
CHANGED
|
@@ -1,3 +1,135 @@
|
|
|
1
|
-
#
|
|
1
|
+
# kimoyo
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Hundreds of file, image, PDF, audio, data and developer tools in one small native
|
|
4
|
+
binary, with a built-in MCP server so AI agents can use them.
|
|
5
|
+
|
|
6
|
+
Resize and convert images, merge and encrypt PDFs, trim audio, mute or trim
|
|
7
|
+
videos, convert CSV to JSON, sign JWTs, generate QR codes, invoices and favicons,
|
|
8
|
+
and a few hundred more, all locally. Nothing is uploaded and nothing shells out
|
|
9
|
+
to ffmpeg, ImageMagick, Ghostscript or qpdf: every format is handled by Rust
|
|
10
|
+
code inside the binary.
|
|
11
|
+
|
|
12
|
+
**383 tools and 766 aliases** across images, PDF, audio and video, data, text,
|
|
13
|
+
developer utilities, design, files, security, business documents, social media
|
|
14
|
+
and calculators. Site: [kimoyo.pulkit.page](https://kimoyo.pulkit.page).
|
|
15
|
+
|
|
16
|
+
## Install
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
npm i -g kimoyo
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
curl -fsSL https://kimoyo.pulkit.page/install.sh | sh
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
cargo install kimoyo
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Prebuilt binaries for macOS (Apple silicon and Intel), Linux (x86_64 and arm64,
|
|
31
|
+
static) and Windows (x86_64) are attached to every
|
|
32
|
+
[GitHub release](https://github.com/pulkitxm/kimoyo/releases).
|
|
33
|
+
|
|
34
|
+
## Use it
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
kimoyo image-resize photo.jpg --width 1200
|
|
38
|
+
kimoyo image-convert *.png --format jpg --quality 85 -o out/
|
|
39
|
+
kimoyo remove-metadata photo.jpg
|
|
40
|
+
kimoyo pdf-merge a.pdf b.pdf -o both.pdf
|
|
41
|
+
kimoyo pdf-protect report.pdf --user-password correct-horse
|
|
42
|
+
kimoyo pdf-to-image slides.pdf --dpi 150
|
|
43
|
+
kimoyo audio-trimmer song.mp3 --start 0.5 --end 30
|
|
44
|
+
kimoyo video-trim clip.mp4 --start 2 --end 9
|
|
45
|
+
kimoyo csv-to-json --text-file people.csv
|
|
46
|
+
kimoyo qr-generator --kind wifi --ssid Home --password hunter22
|
|
47
|
+
kimoyo jwt-decode "$TOKEN" --secret "$SECRET"
|
|
48
|
+
echo "Hello World" | kimoyo kebab-case
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
```text
|
|
52
|
+
$ kimoyo image-resize photo.jpg --width 1200
|
|
53
|
+
Wrote photo-resized.jpg (298.3 KB)
|
|
54
|
+
width: 1200
|
|
55
|
+
height: 675
|
|
56
|
+
format: jpeg
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
- `kimoyo list [category]` lists tools, `kimoyo search <words>` finds them, and
|
|
60
|
+
`kimoyo <tool> --help` shows one tool's arguments.
|
|
61
|
+
- `kimoyo describe <tool> --json` prints the tool's JSON Schema.
|
|
62
|
+
- Every tool takes `--json` and prints structured output.
|
|
63
|
+
- Text arguments can be piped on standard input or read from a file with
|
|
64
|
+
`--<name>-file`.
|
|
65
|
+
- Tools that write files put the result next to the input with a descriptive
|
|
66
|
+
suffix and never overwrite an existing file unless you pass `-o`.
|
|
67
|
+
- Exit codes: `0` success, `1` the tool failed, `2` invalid arguments.
|
|
68
|
+
|
|
69
|
+
The [tool reference](docs/tools/README.md) is generated from the registry and
|
|
70
|
+
lists every tool with its arguments, types, ranges and defaults.
|
|
71
|
+
|
|
72
|
+
## Use it from AI agents
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
kimoyo mcp install
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
That adds a `kimoyo` MCP server to Claude Code, Codex, Cursor, VS Code, Windsurf
|
|
79
|
+
and Gemini CLI, whichever are installed. For any other client:
|
|
80
|
+
|
|
81
|
+
```json
|
|
82
|
+
{
|
|
83
|
+
"mcpServers": {
|
|
84
|
+
"kimoyo": { "command": "npx", "args": ["-y", "kimoyo", "mcp"] }
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
By default the server exposes three small tools, `search_tools`,
|
|
90
|
+
`describe_tool` and `run_tool`, so an agent can reach every tool without
|
|
91
|
+
loading hundreds of schemas into its context. `kimoyo mcp --tools all` or
|
|
92
|
+
`--tools pdf,image` exposes tools directly instead. Arguments are validated
|
|
93
|
+
strictly against each tool's schema, and results carry structured JSON plus
|
|
94
|
+
links to every file written. See [docs/mcp.md](docs/mcp.md).
|
|
95
|
+
|
|
96
|
+
## What is inside
|
|
97
|
+
|
|
98
|
+
| Area | Highlights |
|
|
99
|
+
| --- | --- |
|
|
100
|
+
| [Images](docs/tools/image.md) | Convert, compress, resize, crop, rotate, filters and adjustments, lossless metadata removal, watermarks, memes, background and green-screen removal, GIFs, contact sheets |
|
|
101
|
+
| [PDF](docs/tools/pdf.md) | Merge, split, reorder, rotate, compress, AES-256 protect and unlock, watermark, page numbers, Bates, n-up, booklets, render to images, extract text and images, Markdown, DOCX and PPTX to PDF |
|
|
102
|
+
| [Audio and video](docs/tools/media.md) | Decode MP3, AAC, ALAC, FLAC, Vorbis and AIFF; trim, fade, normalize to LUFS, tempo and pitch, waveforms, spectrograms, generators; lossless MP4 and MOV trim, mute, rotate, speed and audio extraction |
|
|
103
|
+
| [Data](docs/tools/data.md) | JSON, CSV, YAML, TOML, XML and SQL formatting, validation and conversion, JSONPath, JSON Schema, TypeScript types, statistics, charts, mock data, XLSX to CSV |
|
|
104
|
+
| [Developer](docs/tools/developer.md) | Regex, JWT sign and verify, UUIDs, encodings, URLs, HTML and CSS formatting, timestamps, cron, curl to code, gitignore, semver, subnets |
|
|
105
|
+
| [Text](docs/tools/text.md) | Counts and readability, case conversion, line tools, extraction, diffs, Markdown, cleaning, slugs |
|
|
106
|
+
| [Design](docs/tools/design.md) | QR codes and barcodes, SVG, favicons and app icons, social images, mockups, palettes, color and CSS generators |
|
|
107
|
+
| [Files](docs/tools/files.md) and [Security](docs/tools/security.md) | Hashes, zip and tar, streaming AES-256-GCM encryption, SSH and PEM keys, passwords, passphrases, TOTP |
|
|
108
|
+
| [Business](docs/tools/business.md), [Social](docs/tools/social.md), [Calculators](docs/tools/utilities.md) | Invoices and receipts as PDF, platform-aware character counts and threads, finance, unit, date and time-zone calculators |
|
|
109
|
+
|
|
110
|
+
## Limitations
|
|
111
|
+
|
|
112
|
+
- Video is handled at the container level only: inspect, trim, mute, rotate,
|
|
113
|
+
speed and audio extraction work losslessly on MP4 and MOV. Re-encoding,
|
|
114
|
+
resizing and frame extraction would need a video codec, and no pure-Rust
|
|
115
|
+
H.264 or HEVC decoder is mature enough yet.
|
|
116
|
+
- AVIF input is not supported, and WebP output is lossless.
|
|
117
|
+
- Browser-only tools (screen and webcam recorders, playgrounds, live timers)
|
|
118
|
+
have no CLI equivalent.
|
|
119
|
+
|
|
120
|
+
## Development
|
|
121
|
+
|
|
122
|
+
```bash
|
|
123
|
+
cargo fmt --all -- --check
|
|
124
|
+
cargo clippy --all-targets -- -D warnings
|
|
125
|
+
cargo test
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
The unit tests and the end-to-end suites in `tests/` build real images, PDFs,
|
|
129
|
+
audio files, CSV and JSON in temporary folders and run the binary against them.
|
|
130
|
+
[AGENTS.md](AGENTS.md) describes how to add a tool.
|
|
131
|
+
|
|
132
|
+
## License
|
|
133
|
+
|
|
134
|
+
MIT. The embedded Geist fonts are licensed under the SIL Open Font License
|
|
135
|
+
(`assets/fonts/OFL.txt`).
|
package/bin/kimoyo.js
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
const { spawnSync } = require("node:child_process");
|
|
5
|
+
|
|
6
|
+
const packages = {
|
|
7
|
+
"darwin arm64": "kimoyo-darwin-arm64",
|
|
8
|
+
"darwin x64": "kimoyo-darwin-x64",
|
|
9
|
+
"linux arm64": "kimoyo-linux-arm64",
|
|
10
|
+
"linux x64": "kimoyo-linux-x64",
|
|
11
|
+
"win32 x64": "kimoyo-win32-x64",
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
const key = `${process.platform} ${process.arch}`;
|
|
15
|
+
const name = packages[key];
|
|
16
|
+
if (!name) {
|
|
17
|
+
process.stderr.write(`kimoyo: no prebuilt binary for ${key}. Build from source: cargo install kimoyo\n`);
|
|
18
|
+
process.exit(1);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
let binary;
|
|
22
|
+
try {
|
|
23
|
+
binary = require.resolve(`${name}/bin/kimoyo${process.platform === "win32" ? ".exe" : ""}`);
|
|
24
|
+
} catch {
|
|
25
|
+
process.stderr.write(`kimoyo: the ${name} package is missing. Reinstall without --no-optional, for example: npm i -g kimoyo\n`);
|
|
26
|
+
process.exit(1);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
const result = spawnSync(binary, process.argv.slice(2), { stdio: "inherit", windowsHide: true });
|
|
30
|
+
if (result.error) {
|
|
31
|
+
process.stderr.write(`kimoyo: ${result.error.message}\n`);
|
|
32
|
+
process.exit(1);
|
|
33
|
+
}
|
|
34
|
+
if (result.signal) {
|
|
35
|
+
process.kill(process.pid, result.signal);
|
|
36
|
+
}
|
|
37
|
+
process.exit(result.status ?? 1);
|
package/package.json
CHANGED
|
@@ -1,6 +1,41 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kimoyo",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Hundreds of file, image, PDF, audio, data and developer tools in one small native binary, with a built-in MCP server for AI agents",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"cli",
|
|
7
|
+
"mcp",
|
|
8
|
+
"mcp-server",
|
|
9
|
+
"image",
|
|
10
|
+
"pdf",
|
|
11
|
+
"audio",
|
|
12
|
+
"csv",
|
|
13
|
+
"json",
|
|
14
|
+
"tools",
|
|
15
|
+
"agents"
|
|
16
|
+
],
|
|
17
|
+
"homepage": "https://kimoyo.pulkit.page",
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "git+https://github.com/pulkitxm/kimoyo.git"
|
|
21
|
+
},
|
|
22
|
+
"bugs": "https://github.com/pulkitxm/kimoyo/issues",
|
|
23
|
+
"license": "MIT",
|
|
24
|
+
"bin": {
|
|
25
|
+
"kimoyo": "bin/kimoyo.js"
|
|
26
|
+
},
|
|
27
|
+
"files": [
|
|
28
|
+
"bin",
|
|
29
|
+
"README.md"
|
|
30
|
+
],
|
|
31
|
+
"engines": {
|
|
32
|
+
"node": ">=18"
|
|
33
|
+
},
|
|
34
|
+
"optionalDependencies": {
|
|
35
|
+
"kimoyo-darwin-arm64": "0.1.0",
|
|
36
|
+
"kimoyo-darwin-x64": "0.1.0",
|
|
37
|
+
"kimoyo-linux-arm64": "0.1.0",
|
|
38
|
+
"kimoyo-linux-x64": "0.1.0",
|
|
39
|
+
"kimoyo-win32-x64": "0.1.0"
|
|
40
|
+
}
|
|
41
|
+
}
|