@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 CHANGED
@@ -1,47 +1,65 @@
1
- # Helpra Design
1
+ <div align="center">
2
+ <h1>Helpra Design</h1>
3
+ <p><strong>AI-first local design studio &amp; 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
+ ![Helpra Design's infinite canvas with live desktop and mobile artboards](docs/images/infinite-canvas.png)
22
+
23
+ ## Quickstart
24
+
25
+ With **Node.js 24+**, launch the studio on macOS, Linux, or Windows in about 30 seconds.
2
26
 
3
- **The new standard for designing with AI agents**
27
+ ```sh
28
+ npx @helpra/design
29
+ ```
4
30
 
5
- Helpra Design is an open-source, local-first design workspace for humans and AI agents. Draw on a shared canvas, review real HTML and React, and keep project files, components, and design tokens in Git.
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
- **Everything can be driven via MCP — not only via MCP.** The editor, CLI, and MCP expose the same service operations. Work directly on the canvas or give your agent precise context through MCP.
33
+ ## Works seamlessly with Orca
8
34
 
9
- [Русский](README.ru.md) · [Orca integration](docs/orca-integration.md)
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
- ## Quick start
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
- With Node.js 24 or newer on Windows, macOS, or Linux:
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
- ```sh
16
- npx @helpra/design
17
- ```
41
+ ## What you can build
18
42
 
19
- Open the address printed by the CLI. The local editor opens without a sign-in prompt. Open or create a project on Home, or start with `npx @helpra/design demo`. The workspace lives under `~/.helpra/design`. Set `HELPRA_DESIGN_HOME` to use a different directory.
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
- The editor uses an installed Chromium-based browser when one is available. For screenshots and validation on a machine without a browser, install Chromium with `npx playwright install chromium`.
47
+ | Open Design System | Sketch to AI |
48
+ | --- | --- |
49
+ | [![Design system overview with token categories and a Markdown table of contents](docs/images/open-design-system.png)](docs/images/open-design-system.png) | [![A pencil wireframe with a comment describing what the AI agent should build](docs/images/sketch-to-ai.png)](docs/images/sketch-to-ai.png) |
22
50
 
23
- ## Work with an agent
51
+ ## MCP Tools
24
52
 
25
- Open **MCP settings** on Home for configuration snippets for Claude, Codex, Cursor, and JSON. The local MCP server is a stdio command:
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
- ```text
28
- npx -y @helpra/design mcp
29
- ```
55
+ ### Connect your agent
30
56
 
31
- For Claude Code, register the command with `claude mcp add helpra-design -- npx -y @helpra/design mcp`. For Claude Desktop and Cursor, add this entry to the `mcpServers` section of their MCP configuration:
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
- ```json
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
- For Codex, add the server to your MCP configuration:
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
- Agents can create projects and artboards, work with design-system documentation, manage multiple themes, build shared components, read precise comment anchors, and capture evidence. Mark a finished artboard `approved` only when a human explicitly requests approval. [Agent workflow](docs/agent-workflow.md)
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
- Run the editor on your own server for access from multiple machines. Configure separate HTTPS origins for the control app and previews. Generate distinct owner and agent credentials and keep them in your deployment environment. The browser exchanges the owner key for a secure session cookie. Agents use Bearer authentication at `/mcp`. [Remote setup and delivery](docs/orca-integration.md#optional-self-hosting)
72
+ <details>
73
+ <summary>Claude Code</summary>
61
74
 
62
75
  ```sh
63
- npx @helpra/design --mode remote
76
+ claude mcp add helpra-design -- npx -y @helpra/design mcp
64
77
  ```
65
78
 
66
- From a source checkout, use the [Docker Compose example](deploy/compose.oss.yaml) with Caddy and a persistent workspace.
79
+ </details>
67
80
 
68
- ## Public demo
81
+ <details>
82
+ <summary>Cursor, Windsurf, and Antigravity</summary>
69
83
 
70
- Build the standalone sandbox and serve its static files locally.
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
- ```sh
73
- NODE_OPTIONS=--max-old-space-size=4096 npm run build:site
74
- python3 -m http.server 4177 --bind 127.0.0.1 --directory dist/site
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
- Open `http://127.0.0.1:4177`. The editor holds canvas changes, reviews and discussions in the current tab. Serve `dist/site/` over HTTPS and allow same-origin framing for its artboards.
97
+ </details>
78
98
 
79
- Run the static Playwright suite with `NODE_OPTIONS=--max-old-space-size=4096 npm run test:site`. The suite starts its own static server on port 4177.
99
+ ## Run it your way
80
100
 
81
- ## Development
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
- ```sh
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)