brandrail 0.9.0 → 0.10.1
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 +32 -0
- package/dist/brandrail.mjs +710 -96
- package/package.json +35 -15
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Thiago Baptistella (Brandrail)
|
|
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
CHANGED
|
@@ -21,6 +21,34 @@ npx brandrail check --changed --upload # only changed lines, results in the d
|
|
|
21
21
|
Brandrail only ever receives its hash, and the files it writes into the repo hold no key. AI tools start
|
|
22
22
|
`npx brandrail mcp`, which checks code on your machine: code is never uploaded. In CI, set `BRANDRAIL_KEY` instead.
|
|
23
23
|
|
|
24
|
+
## MCP server
|
|
25
|
+
|
|
26
|
+
`brandrail mcp` is an MCP server for Claude Code, Cursor, Copilot, Codex, Windsurf and any other MCP client.
|
|
27
|
+
It runs on your machine over stdio; code is checked locally and never uploaded. It works without an account,
|
|
28
|
+
using starter tokens; connect an account (or set `BRANDRAIL_KEY`) to use your own Brand Kit.
|
|
29
|
+
|
|
30
|
+
```json
|
|
31
|
+
{
|
|
32
|
+
"mcpServers": {
|
|
33
|
+
"brandrail": { "command": "npx", "args": ["-y", "brandrail", "mcp"] }
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
`npx brandrail connect` writes this config for you, plus the rule files each AI tool reads.
|
|
39
|
+
|
|
40
|
+
| Tool | What it does |
|
|
41
|
+
| --- | --- |
|
|
42
|
+
| `get_guidelines` | The project's design system rules: components to use in its framework, allowed tokens, what the checker enforces. Called once before writing UI. |
|
|
43
|
+
| `get_design_tokens` | Every colour, spacing, radius and type token with the CSS variable to use. |
|
|
44
|
+
| `find_component` | Finds the component for a need ("date picker", "primary action") with its import, rules and an example. |
|
|
45
|
+
| `get_component_docs` | Full docs for one component in the project's framework: import or tag, props, rules, example. |
|
|
46
|
+
| `get_template` | A whole page (list, detail, form, settings, dashboard, sign-in) built from your components, with the files to create and the page's rules. |
|
|
47
|
+
| `get_migration_map` | What replaces each piece of Material, MUI, Bootstrap, Ant, Chakra or PrimeNG. |
|
|
48
|
+
| `validate_snippet` | Runs the checker on generated code and returns a brand score and each fix. |
|
|
49
|
+
|
|
50
|
+
All tools are read-only. Docs: https://www.brandrail.com.au/docs/connect
|
|
51
|
+
|
|
24
52
|
## Commands
|
|
25
53
|
|
|
26
54
|
| Command | |
|
|
@@ -37,3 +65,7 @@ Brandrail only ever receives its hash, and the files it writes into the repo hol
|
|
|
37
65
|
| `whoami`, `logout` | Show or remove the saved sign-in |
|
|
38
66
|
|
|
39
67
|
Nothing is uploaded unless you pass `--upload`, and code snippets are never uploaded.
|
|
68
|
+
|
|
69
|
+
## Licence
|
|
70
|
+
|
|
71
|
+
MIT. The Brandrail web app and dashboard are a separate, paid service: https://www.brandrail.com.au/pricing
|