gunni 0.2.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/LICENSE +21 -0
- package/README.md +118 -0
- package/dist/index.js +6439 -0
- package/package.json +78 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025-present Gunni
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
# Gunni
|
|
2
|
+
|
|
3
|
+
AI media toolkit. Give any AI agent the ability to create professional media.
|
|
4
|
+
|
|
5
|
+
One CLI. Seven tools. Zero config.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install -g gunni
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Quick start
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
# Set up your API key
|
|
17
|
+
gunni config
|
|
18
|
+
|
|
19
|
+
# Generate an image
|
|
20
|
+
gunni image "coffee bag product shot, warm editorial light" -o bag.png
|
|
21
|
+
|
|
22
|
+
# Remove background
|
|
23
|
+
gunni image bag.png --remove-bg -o bag-clean.png
|
|
24
|
+
|
|
25
|
+
# Edit: place on a scene
|
|
26
|
+
gunni image bag-clean.png "on marble counter, morning light" -o hero.png
|
|
27
|
+
|
|
28
|
+
# Upscale
|
|
29
|
+
gunni image hero.png --upscale -o hero-final.png
|
|
30
|
+
|
|
31
|
+
# Describe (for alt text, iteration)
|
|
32
|
+
gunni image hero-final.png
|
|
33
|
+
|
|
34
|
+
# Generate video from image
|
|
35
|
+
gunni video hero.png -p "slow cinematic zoom in" -o hero.mp4
|
|
36
|
+
|
|
37
|
+
# Text to speech
|
|
38
|
+
gunni audio "Welcome to our roastery" -o intro.mp3
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Use as an MCP server
|
|
42
|
+
|
|
43
|
+
Connect to the Gunni API server:
|
|
44
|
+
|
|
45
|
+
```json
|
|
46
|
+
{
|
|
47
|
+
"mcpServers": {
|
|
48
|
+
"gunni": {
|
|
49
|
+
"type": "streamable-http",
|
|
50
|
+
"url": "https://gunni-api.fly.dev/mcp",
|
|
51
|
+
"headers": {
|
|
52
|
+
"Authorization": "Bearer YOUR_GUNNI_API_KEY"
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
## Commands
|
|
60
|
+
|
|
61
|
+
| Command | What it does |
|
|
62
|
+
|---|---|
|
|
63
|
+
| `gunni image` | Generate, edit, describe, upscale, remove background (smart routing) |
|
|
64
|
+
| `gunni video` | Image or text to video |
|
|
65
|
+
| `gunni audio` | Text to speech |
|
|
66
|
+
| `gunni learn` | Creative expertise and best practices |
|
|
67
|
+
| `gunni list models` | Discover available models |
|
|
68
|
+
| `gunni config` | API key setup |
|
|
69
|
+
| `gunni init` | Start a new project with BRIEF.md |
|
|
70
|
+
| `gunni history` | Search past work |
|
|
71
|
+
|
|
72
|
+
## How it works
|
|
73
|
+
|
|
74
|
+
One command handles all image operations. Gunni detects what you want from the inputs:
|
|
75
|
+
|
|
76
|
+
- **Text only**: generate
|
|
77
|
+
- **Image + text**: edit
|
|
78
|
+
- **Image only**: describe
|
|
79
|
+
- **`--upscale`**: upscale
|
|
80
|
+
- **`--remove-bg`**: remove background
|
|
81
|
+
|
|
82
|
+
## Models
|
|
83
|
+
|
|
84
|
+
Curated set of the best model for each task. You don't pick models. Gunni routes to the right one.
|
|
85
|
+
|
|
86
|
+
| Capability | Model |
|
|
87
|
+
|---|---|
|
|
88
|
+
| Image generation | Nano Banana (Google) |
|
|
89
|
+
| Image editing | Nano Banana Edit |
|
|
90
|
+
| Design + typography | Recraft v4 |
|
|
91
|
+
| Upscaling | Topaz |
|
|
92
|
+
| Background removal | Bria |
|
|
93
|
+
| Video | Kling v3 Pro |
|
|
94
|
+
| Text to speech | MiniMax Speech HD |
|
|
95
|
+
|
|
96
|
+
Override with `--model <id>` when you have a reason.
|
|
97
|
+
|
|
98
|
+
## Project system
|
|
99
|
+
|
|
100
|
+
Create a `BRIEF.md` in your project root to give Gunni creative direction:
|
|
101
|
+
|
|
102
|
+
```markdown
|
|
103
|
+
# Kova Coffee
|
|
104
|
+
|
|
105
|
+
## Colors
|
|
106
|
+
- Primary: #2C1810 (espresso)
|
|
107
|
+
- Accent: #D4A574 (caramel)
|
|
108
|
+
|
|
109
|
+
## Style
|
|
110
|
+
- Warm editorial photography, natural light
|
|
111
|
+
- Minimalist, lots of negative space
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
Run `gunni init --template brand` to scaffold a project.
|
|
115
|
+
|
|
116
|
+
## License
|
|
117
|
+
|
|
118
|
+
MIT
|