designnn 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 +269 -0
- package/dist/cli.js +65795 -0
- package/package.json +54 -0
- package/public/app.js +277 -0
- package/public/index.html +114 -0
- package/public/style.css +756 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 concepter (Yoshihisa Abe)
|
|
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,269 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
|
|
3
|
+
# DESIGNNN
|
|
4
|
+
|
|
5
|
+
**Trend-driven design prompt engine for Figma AI**
|
|
6
|
+
|
|
7
|
+
Generate high-quality UI/UX design prompts powered by real-time design trend analysis.
|
|
8
|
+
|
|
9
|
+
[](LICENSE)
|
|
10
|
+
[](https://www.npmjs.com/package/designnn)
|
|
11
|
+
|
|
12
|
+
</div>
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
## The Problem
|
|
17
|
+
|
|
18
|
+
AI design tools like **Figma AI** can generate stunning UI designs — but only if you give them the right prompt. Most designers struggle with:
|
|
19
|
+
|
|
20
|
+
- **"What should I prompt?"** — Knowing current design trends is hard to keep up with
|
|
21
|
+
- **"How do I describe this style?"** — Translating visual ideas into precise text prompts
|
|
22
|
+
- **"How do I combine trends?"** — Mixing multiple design styles into something fresh
|
|
23
|
+
|
|
24
|
+
## The Solution
|
|
25
|
+
|
|
26
|
+
**DESIGNNN** is a CLI tool and MCP server that acts as a **design intelligence layer** for Figma AI. It knows the latest UI/UX design trends and generates optimized prompts that Figma AI can directly use.
|
|
27
|
+
|
|
28
|
+
```
|
|
29
|
+
$ designnn chat "SaaS pricing page with dark theme"
|
|
30
|
+
|
|
31
|
+
─── Prompt for: "SaaS pricing page with dark theme" ───
|
|
32
|
+
|
|
33
|
+
Design a SaaS pricing page with a modern dark theme...
|
|
34
|
+
Use a full-width frame sized 1440px wide...
|
|
35
|
+
Each grid cell is a pricing card with subtle rounded corners (12px)...
|
|
36
|
+
|
|
37
|
+
📋 Copy the prompt above and paste it into Figma AI (Ctrl+I)
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Quick Start
|
|
41
|
+
|
|
42
|
+
### Installation
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
# Install globally via npm
|
|
46
|
+
npm install -g designnn
|
|
47
|
+
|
|
48
|
+
# Or run directly with npx
|
|
49
|
+
npx designnn chat "landing page for a fitness app"
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
### Set your OpenAI API key
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
export OPENAI_API_KEY=your-api-key-here
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
### Usage
|
|
59
|
+
|
|
60
|
+
#### 1. Chat to Prompt
|
|
61
|
+
|
|
62
|
+
Generate a Figma AI prompt from any design description:
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
designnn chat "SaaS dashboard with analytics charts and dark theme"
|
|
66
|
+
designnn chat "Mobile onboarding flow for a meditation app"
|
|
67
|
+
designnn chat "E-commerce product page with glassmorphism style"
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
#### 2. Explore Trends
|
|
71
|
+
|
|
72
|
+
Browse the built-in design trend database (50+ trends):
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
# Show all trends
|
|
76
|
+
designnn explore
|
|
77
|
+
|
|
78
|
+
# Show top 10 trends
|
|
79
|
+
designnn explore --top 10
|
|
80
|
+
|
|
81
|
+
# Filter by category
|
|
82
|
+
designnn explore --category style
|
|
83
|
+
designnn explore --category component
|
|
84
|
+
designnn explore --category pattern
|
|
85
|
+
designnn explore --category layout
|
|
86
|
+
designnn explore --category interaction
|
|
87
|
+
|
|
88
|
+
# Search by keyword
|
|
89
|
+
designnn explore --component "bento"
|
|
90
|
+
|
|
91
|
+
# Generate a prompt from a specific trend
|
|
92
|
+
designnn explore --generate bento-ui
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
#### 3. Mix Trends
|
|
96
|
+
|
|
97
|
+
Combine two design trends into something new:
|
|
98
|
+
|
|
99
|
+
```bash
|
|
100
|
+
designnn mix "bento-ui" "glassmorphism"
|
|
101
|
+
designnn mix "neubrutalism" "dark-mode-first" --context "for a music streaming app"
|
|
102
|
+
designnn mix "kinetic-typography" "organic-shapes" --context "landing page for a creative agency"
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
#### 4. Update Trends (AI Research)
|
|
106
|
+
|
|
107
|
+
Research and add new design trends to the database using AI:
|
|
108
|
+
|
|
109
|
+
```bash
|
|
110
|
+
# Research 5 new trends (default)
|
|
111
|
+
designnn update
|
|
112
|
+
|
|
113
|
+
# Research a specific number of trends
|
|
114
|
+
designnn update --count 10
|
|
115
|
+
|
|
116
|
+
# Focus on a specific category
|
|
117
|
+
designnn update --category interaction
|
|
118
|
+
|
|
119
|
+
# Clear all custom (AI-generated) trends
|
|
120
|
+
designnn update --reset
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
#### 5. Database Stats
|
|
124
|
+
|
|
125
|
+
View trend database statistics:
|
|
126
|
+
|
|
127
|
+
```bash
|
|
128
|
+
designnn stats
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
```
|
|
132
|
+
Overview
|
|
133
|
+
─────────────────────────────────
|
|
134
|
+
Total Trends: 53
|
|
135
|
+
Built-in: 50
|
|
136
|
+
AI-Generated: 3
|
|
137
|
+
User-Added: 0
|
|
138
|
+
|
|
139
|
+
By Category
|
|
140
|
+
─────────────────────────────────
|
|
141
|
+
◆ style ████████░░░░░░░ 16
|
|
142
|
+
◇ component ██████░░░░░░░░░ 11
|
|
143
|
+
▣ pattern █████░░░░░░░░░░ 10
|
|
144
|
+
▤ layout ████░░░░░░░░░░░ 8
|
|
145
|
+
▥ interaction ████░░░░░░░░░░░ 8
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
#### 6. Web UI
|
|
149
|
+
|
|
150
|
+
Launch the DESIGNNN Web UI in your browser:
|
|
151
|
+
|
|
152
|
+
```bash
|
|
153
|
+
designnn serve
|
|
154
|
+
|
|
155
|
+
# Custom port
|
|
156
|
+
designnn serve --port 8080
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
The Web UI provides a visual interface for all DESIGNNN features — Chat, Explore, and Mix — with a sleek dark theme and one-click prompt copying.
|
|
160
|
+
|
|
161
|
+
#### 7. MCP Server (AI Agent Integration)
|
|
162
|
+
|
|
163
|
+
Start DESIGNNN as an MCP server for integration with AI agents like Claude Code, Codex, or OpenCode:
|
|
164
|
+
|
|
165
|
+
```bash
|
|
166
|
+
designnn agent
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
**MCP Configuration** (`claude_desktop_config.json`):
|
|
170
|
+
|
|
171
|
+
```json
|
|
172
|
+
{
|
|
173
|
+
"mcpServers": {
|
|
174
|
+
"designnn": {
|
|
175
|
+
"command": "npx",
|
|
176
|
+
"args": ["-y", "designnn", "agent"]
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
**Available MCP Tools:**
|
|
183
|
+
|
|
184
|
+
| Tool | Description |
|
|
185
|
+
|---|---|
|
|
186
|
+
| `generate_prompt` | Generate a Figma AI prompt from natural language |
|
|
187
|
+
| `explore_trends` | Search and browse design trends |
|
|
188
|
+
| `generate_trend_prompt` | Generate a prompt based on a specific trend |
|
|
189
|
+
| `mix_trends` | Mix two trends into a creative prompt |
|
|
190
|
+
|
|
191
|
+
## Design Trends Database
|
|
192
|
+
|
|
193
|
+
DESIGNNN includes a curated database of **50+ current UI/UX design trends** across 5 categories, with AI-powered live expansion:
|
|
194
|
+
|
|
195
|
+
| Category | Count | Examples |
|
|
196
|
+
|---|---|---|
|
|
197
|
+
| **Style** | 15 | Bento UI, Glassmorphism, Neubrutalism, Dark Mode First, AI-Native Aesthetic, Japandi, Aurora Gradients |
|
|
198
|
+
| **Component** | 10 | AI Chat Interface, Command Palette, Skeleton Loading, Data Table, Toast Notifications |
|
|
199
|
+
| **Pattern** | 10 | SaaS Landing Page, Analytics Dashboard, Kanban Board, E-commerce PDP, Notification Center |
|
|
200
|
+
| **Layout** | 8 | Responsive Card Grid, Split Hero, Masonry Layout, Z-Pattern, Sticky Header |
|
|
201
|
+
| **Interaction** | 7 | Micro-interactions, Scroll Animations, Gesture Navigation, Dark/Light Toggle |
|
|
202
|
+
|
|
203
|
+
Use `designnn update` to research and add new trends via AI — the database grows with every update.
|
|
204
|
+
|
|
205
|
+
## How It Works
|
|
206
|
+
|
|
207
|
+
```
|
|
208
|
+
┌─────────────┐ ┌──────────────┐ ┌──────────────┐ ┌───────────┐
|
|
209
|
+
│ User Input │ ──▶ │ Trend DB │ ──▶ │ LLM Engine │ ──▶ │ Figma AI │
|
|
210
|
+
│ (CLI/MCP) │ │ (50+ trends)│ │ (GPT-4.1) │ │ Prompt │
|
|
211
|
+
└─────────────┘ └──────────────┘ └──────────────┘ └───────────┘
|
|
212
|
+
▲
|
|
213
|
+
│
|
|
214
|
+
┌─────┴──────┐
|
|
215
|
+
│ AI Update │ ← designnn update
|
|
216
|
+
│ (Research) │
|
|
217
|
+
└────────────┘
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
1. **Input**: Describe what you want to design (CLI, Web UI, or MCP)
|
|
221
|
+
2. **Trend Analysis**: DESIGNNN matches your request with current design trends
|
|
222
|
+
3. **Prompt Generation**: GPT-4.1 generates a detailed, Figma AI-optimized prompt
|
|
223
|
+
4. **Output**: Copy the prompt and paste it into Figma AI (Ctrl+I / Cmd+I)
|
|
224
|
+
5. **Update**: Run `designnn update` to research and add new trends via AI
|
|
225
|
+
|
|
226
|
+
## Configuration
|
|
227
|
+
|
|
228
|
+
```bash
|
|
229
|
+
# Set API key via environment variable
|
|
230
|
+
export OPENAI_API_KEY=your-key
|
|
231
|
+
|
|
232
|
+
# Or use a custom OpenAI-compatible endpoint
|
|
233
|
+
export OPENAI_BASE_URL=https://your-endpoint.com/v1
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
## Tech Stack
|
|
237
|
+
|
|
238
|
+
- **Runtime**: [Bun](https://bun.sh) / Node.js
|
|
239
|
+
- **Language**: TypeScript
|
|
240
|
+
- **CLI Framework**: [Commander.js](https://github.com/tj/commander.js)
|
|
241
|
+
- **AI Engine**: OpenAI GPT-4.1
|
|
242
|
+
- **MCP**: [@modelcontextprotocol/sdk](https://github.com/modelcontextprotocol/typescript-sdk)
|
|
243
|
+
- **License**: MIT
|
|
244
|
+
|
|
245
|
+
## Contributing
|
|
246
|
+
|
|
247
|
+
Contributions are welcome! Here are some ways you can help:
|
|
248
|
+
|
|
249
|
+
- **Add new trends**: Submit PRs to expand the trend database
|
|
250
|
+
- **Improve prompts**: Help refine the prompt generation quality
|
|
251
|
+
- **Build integrations**: Create plugins for other design tools
|
|
252
|
+
- **Report bugs**: Open issues for any problems you find
|
|
253
|
+
|
|
254
|
+
## Roadmap
|
|
255
|
+
|
|
256
|
+
- [x] CLI core (chat, explore, mix)
|
|
257
|
+
- [x] MCP server integration
|
|
258
|
+
- [x] Web UI (`designnn serve`)
|
|
259
|
+
- [x] 50+ built-in design trends
|
|
260
|
+
- [x] AI-powered trend research (`designnn update`)
|
|
261
|
+
- [x] Database statistics (`designnn stats`)
|
|
262
|
+
- [ ] Figma plugin for direct integration
|
|
263
|
+
- [ ] Multi-language prompt support
|
|
264
|
+
- [ ] Community trend submissions
|
|
265
|
+
- [ ] Scheduled auto-update via cron
|
|
266
|
+
|
|
267
|
+
## License
|
|
268
|
+
|
|
269
|
+
[MIT](LICENSE) - Made with energy by [concepter](https://github.com/concepter)
|