@helpra/design 0.1.0 → 0.1.2
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 +71 -58
- package/design-system/helpra/tokens.json +56 -118
- package/dist/embed/types.d.ts +2 -2
- package/dist/ui/assets/browserHost-DO0VE7SS.js +1 -0
- package/dist/ui/assets/{index-DCndCScv.js → index-B0caw0Dc.js} +10 -10
- package/dist/ui/assets/session.schemas-o3W88yfn.js +352 -0
- package/dist/ui/index.html +1 -1
- package/docs/orca-integration.md +1 -1
- package/package.json +2 -1
- package/src/contracts/agent-targets.ts +1 -1
- package/src/contracts/publication-publish.schemas.ts +2 -2
- package/src/contracts/publication.schemas.ts +1 -1
- package/src/contracts/publication.types.ts +1 -1
- package/src/embed/types.ts +2 -2
- package/src/project/git.ts +2 -4
- package/src/publication/cutover.ts +1 -1
- package/src/publication/store.constants.ts +2 -2
- package/src/publication/validate-store.ts +1 -1
- package/src/service/agent/dispatch.ts +2 -2
- package/src/service/agent/payload.ts +1 -1
- package/src/ui/HomeRecents.tsx +8 -52
- package/src/ui/ProjectDialog.tsx +3 -1
- package/src/ui/ThreadDetail.tsx +10 -7
- package/src/ui/agentDelivery.ts +1 -1
- package/src/ui/browserHost.ts +1 -1
- package/src/ui/system/ScreenConstantsSection.tsx +1 -1
- package/dist/ui/assets/browserHost-CgiYo1Ht.js +0 -1
- package/dist/ui/assets/session.schemas-DqTxSFE-.js +0 -352
package/README.md
CHANGED
|
@@ -1,47 +1,65 @@
|
|
|
1
|
-
|
|
1
|
+
<div align="center">
|
|
2
|
+
<h1>Helpra Design</h1>
|
|
3
|
+
<p><strong>AI-first local design studio & MCP server for visual interfaces</strong></p>
|
|
4
|
+
<p>
|
|
5
|
+
<a href="LICENSE"><img alt="Apache-2.0" src="https://img.shields.io/badge/license-Apache--2.0-59534e"></a>
|
|
6
|
+
<a href="https://www.npmjs.com/package/@helpra/design"><img alt="npm: @helpra/design" src="https://img.shields.io/badge/npm-%40helpra%2Fdesign-CB3837?logo=npm"></a>
|
|
7
|
+
<a href="https://design.helpra.app"><img alt="Live Demo: design.helpra.app" src="https://img.shields.io/badge/live_demo-design.helpra.app-a75536"></a>
|
|
8
|
+
<a href="#mcp-tools"><img alt="71 MCP tools" src="https://img.shields.io/badge/MCP-71_tools-326856"></a>
|
|
9
|
+
<a href="#quickstart"><img alt="macOS, Linux, and Windows" src="https://img.shields.io/badge/OS-macOS%20%2F%20Linux%20%2F%20Windows-475569"></a>
|
|
10
|
+
</p>
|
|
11
|
+
<p>
|
|
12
|
+
<a href="https://design.helpra.app"><strong>Live Interactive Sandbox</strong></a> ·
|
|
13
|
+
<a href="#quickstart"><strong>Quickstart</strong> (<code>npx @helpra/design</code>)</a> ·
|
|
14
|
+
<a href="#works-seamlessly-with-orca"><strong>Orca Integration</strong></a> ·
|
|
15
|
+
<a href="#mcp-tools"><strong>MCP Tools</strong></a>
|
|
16
|
+
</p>
|
|
17
|
+
</div>
|
|
18
|
+
|
|
19
|
+
Sketch an idea, review live HTML and React, and hand off the exact screen to your AI agent. Designers, developers, and agents work from the same Git-friendly project files, with one shared design system.
|
|
20
|
+
|
|
21
|
+

|
|
22
|
+
|
|
23
|
+
## Quickstart
|
|
24
|
+
|
|
25
|
+
With **Node.js 24+**, launch the studio on macOS, Linux, or Windows in about 30 seconds.
|
|
2
26
|
|
|
3
|
-
|
|
27
|
+
```sh
|
|
28
|
+
npx @helpra/design
|
|
29
|
+
```
|
|
4
30
|
|
|
5
|
-
|
|
31
|
+
From an interactive terminal, the studio opens in your browser at `http://127.0.0.1:4310` by default. Use the printed URL if the port is busy or the browser stays closed. Projects live under `~/.helpra/design`. To load the bundled Helpra Studio example, run `npx @helpra/design demo` and open the URL it prints.
|
|
6
32
|
|
|
7
|
-
|
|
33
|
+
## Works seamlessly with Orca
|
|
8
34
|
|
|
9
|
-
|
|
35
|
+
**Keep the canvas beside your agent's chat.** Open the studio in Orca's built-in browser from a workspace with an active bot or agent. Helpra Design finds the matching session automatically. The green dot in the Home header shows the active IDE, and clicking it reveals the selected target.
|
|
10
36
|
|
|
11
|
-
|
|
37
|
+
Pin a comment to an artboard, sketch on a blank artboard with Pencil (`C02`), or attach screenshots. With **Send to agent** checked, saving delivers a compact message straight to the open Orca chat or agent terminal in one click. The agent gets the working-copy, artboard, and thread IDs, available anchor coordinates, the `deepLink`, and local file paths for available screenshots and attachments. Delivery status appears in the discussion.
|
|
12
38
|
|
|
13
|
-
|
|
39
|
+
The stock Orca CLI handles local delivery and carries that context automatically. For a remote studio, run `orca-bridge` on the machine with Orca or configure a signed webhook for your own receiver. [Orca setup and remote delivery](docs/orca-integration.md)
|
|
14
40
|
|
|
15
|
-
|
|
16
|
-
npx @helpra/design
|
|
17
|
-
```
|
|
41
|
+
## What you can build
|
|
18
42
|
|
|
19
|
-
|
|
43
|
+
- **Infinite Canvas & Review Flow.** Add artboards on the spot and align them with the four-arrow **Move** tool and 2D Smart Guides. Remove a frame with `Delete` and bring it back with `Ctrl/Cmd+Z`. Review across **In progress**, **Review**, **Needs rework**, and **Approved**, with a smooth camera fly-to as you advance through the queue.
|
|
44
|
+
- **Sketch to AI (`C02`).** Add a blank artboard, pencil a wireframe directly on it, and write what should happen. Send the sketch and comment together so your agent can build from the drawing and the project's design system.
|
|
45
|
+
- **Open Design System.** Browse tokens across **2–64 themes**, try live component previews, and navigate multi-file Markdown documentation from its table of contents. Sync shared component directories through `componentDirs`.
|
|
20
46
|
|
|
21
|
-
|
|
47
|
+
| Open Design System | Sketch to AI |
|
|
48
|
+
| --- | --- |
|
|
49
|
+
| [](docs/images/open-design-system.png) | [](docs/images/sketch-to-ai.png) |
|
|
22
50
|
|
|
23
|
-
##
|
|
51
|
+
## MCP Tools
|
|
24
52
|
|
|
25
|
-
|
|
53
|
+
The local server exposes **71 tools** to create projects, manage canvases and artboards, work with components and design systems, capture screens, and validate changes. Start with `design_list_projects` and `design_get_guide`, then call `design_get_project_brief` for the complete saved design system, the component tree, and up to five reference PNGs over stdio. [MCP and CLI reference](docs/api.md#mcp-and-cli) · [Agent workflow](docs/agent-workflow.md)
|
|
26
54
|
|
|
27
|
-
|
|
28
|
-
npx -y @helpra/design mcp
|
|
29
|
-
```
|
|
55
|
+
### Connect your agent
|
|
30
56
|
|
|
31
|
-
|
|
57
|
+
The local stdio server discovers the studio workspace automatically. Open **MCP settings** from Home or use the configuration for your client below.
|
|
32
58
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
"mcpServers": {
|
|
36
|
-
"helpra-design": {
|
|
37
|
-
"command": "npx",
|
|
38
|
-
"args": ["-y", "@helpra/design", "mcp"]
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
```
|
|
59
|
+
<details>
|
|
60
|
+
<summary>Codex</summary>
|
|
43
61
|
|
|
44
|
-
|
|
62
|
+
Add to `~/.codex/config.toml`.
|
|
45
63
|
|
|
46
64
|
```toml
|
|
47
65
|
[mcp_servers.helpra-design]
|
|
@@ -49,46 +67,41 @@ command = "npx"
|
|
|
49
67
|
args = ["-y", "@helpra/design", "mcp"]
|
|
50
68
|
```
|
|
51
69
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
## Orca
|
|
55
|
-
|
|
56
|
-
Open Helpra Design in Orca's built-in browser from a workspace with an active agent. The green dot next to **MCP settings** shows the available IDE. Open it to inspect or select the target for the tab. **Send to agent** in a comment or pencil sketch is checked when a target is available. Saving sends the text, link, anchor, and available visual evidence to the selected agent. Delivery appears in the discussion. [Orca setup and Electron SDK](docs/orca-integration.md)
|
|
57
|
-
|
|
58
|
-
## Optional self-hosting
|
|
70
|
+
</details>
|
|
59
71
|
|
|
60
|
-
|
|
72
|
+
<details>
|
|
73
|
+
<summary>Claude Code</summary>
|
|
61
74
|
|
|
62
75
|
```sh
|
|
63
|
-
npx @helpra/design
|
|
76
|
+
claude mcp add helpra-design -- npx -y @helpra/design mcp
|
|
64
77
|
```
|
|
65
78
|
|
|
66
|
-
|
|
79
|
+
</details>
|
|
67
80
|
|
|
68
|
-
|
|
81
|
+
<details>
|
|
82
|
+
<summary>Cursor, Windsurf, and Antigravity</summary>
|
|
69
83
|
|
|
70
|
-
|
|
84
|
+
Open Cursor's `mcp.json`, Windsurf's MCP configuration, or Antigravity's `mcp_config.json`. In Antigravity IDE, go to **MCP Servers → Manage MCP Servers → View raw config**. Merge this entry into `mcpServers`.
|
|
71
85
|
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
|
|
86
|
+
```json
|
|
87
|
+
{
|
|
88
|
+
"mcpServers": {
|
|
89
|
+
"helpra-design": {
|
|
90
|
+
"command": "npx",
|
|
91
|
+
"args": ["-y", "@helpra/design", "mcp"]
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
75
95
|
```
|
|
76
96
|
|
|
77
|
-
|
|
97
|
+
</details>
|
|
78
98
|
|
|
79
|
-
Run
|
|
99
|
+
## Run it your way
|
|
80
100
|
|
|
81
|
-
|
|
101
|
+
- **Local-first.** Keep portable projects and their design systems on disk and version them in Git. The editor, CLI, and MCP work with the same project files.
|
|
102
|
+
- **Remote VPS.** Self-host with separate HTTPS origins for the studio and previews, plus authenticated HTTP MCP for your agents. [Self-hosting guide](docs/orca-integration.md#optional-self-hosting) · [Docker Compose](deploy/compose.oss.yaml)
|
|
103
|
+
- **Embed SDK.** Use `@helpra/design/embed` in an Electron host or iframe to share theme, locale, and active-agent context and route feedback through your host. [Embed SDK guide](docs/orca-integration.md#electron-host-sdk)
|
|
82
104
|
|
|
83
|
-
|
|
84
|
-
npm ci
|
|
85
|
-
npx playwright install chromium
|
|
86
|
-
npm run typecheck
|
|
87
|
-
npm run lint
|
|
88
|
-
npm run build
|
|
89
|
-
npm test
|
|
90
|
-
npm run test:e2e
|
|
91
|
-
npm run pack:smoke
|
|
92
|
-
```
|
|
105
|
+
To run the interactive sandbox from a source checkout, install dependencies with `npm ci`, run `npm run build:site`, and serve `dist/site/` with a static file server. Sandbox edits and discussions last for the current tab.
|
|
93
106
|
|
|
94
|
-
[Apache-2.0 license](LICENSE)
|
|
107
|
+
Released under the [Apache-2.0 license](LICENSE). [Русский](README.ru.md)
|