@christianirack/brainllm 0.1.0 → 0.3.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/README.md +19 -5
- package/brain.schema.json +56 -1
- package/package.json +11 -9
package/README.md
CHANGED
|
@@ -2,14 +2,27 @@
|
|
|
2
2
|
|
|
3
3
|
# BRAINLLM
|
|
4
4
|
|
|
5
|
-
### The web compiler for LLMs.
|
|
5
|
+
### 🦀 The web compiler for LLMs, built in Rust. Blazing fast.
|
|
6
6
|
|
|
7
7
|
**Your LLM owns the frontend. Give it a language built for the job.**
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
> **Written in Rust, from parser to minifier.** One native binary, no toolchain to install. Warm production builds
|
|
10
|
+
> in **~34 ms**, about **4.5× faster than React + Vite** on [our open benchmark](#show-me-the-numbers).
|
|
10
11
|
|
|
11
|
-
|
|
12
|
-
|
|
12
|
+
<p align="center">
|
|
13
|
+
<img src="https://img.shields.io/badge/built%20with-Rust-dea584?logo=rust&logoColor=white" alt="Built with Rust">
|
|
14
|
+
<a href="https://chrisifm.github.io/BRAINLLM/"><img src="https://img.shields.io/badge/website-chrisifm.github.io%2FBRAINLLM-0071e3" alt="Website"></a>
|
|
15
|
+
<a href="https://www.npmjs.com/package/@christianirack/brainllm"><img src="https://img.shields.io/npm/v/@christianirack/brainllm?color=cb3837" alt="npm version"></a>
|
|
16
|
+
<a href="https://github.com/chrisifm/BRAINLLM/blob/main/LICENSE"><img src="https://img.shields.io/github/license/chrisifm/BRAINLLM" alt="License"></a>
|
|
17
|
+
</p>
|
|
18
|
+
|
|
19
|
+
<p align="center"><a href="https://chrisifm.github.io/BRAINLLM/"><img src="https://raw.githubusercontent.com/chrisifm/BRAINLLM/main/docs/site/assets/cover.png" alt="BRAINLLM — The web compiler for LLMs. Open the website: chrisifm.github.io/BRAINLLM"></a></p>
|
|
20
|
+
|
|
21
|
+
<p align="center"><b>🌐 <a href="https://chrisifm.github.io/BRAINLLM/">chrisifm.github.io/BRAINLLM</a></b></p>
|
|
22
|
+
|
|
23
|
+
BRAINLLM gives coding agents a compact language, a single specification and a native compiler written in Rust that
|
|
24
|
+
tells them how to fix mistakes. The model builds the frontend. You set the direction, inspect the result and decide
|
|
25
|
+
what ships.
|
|
13
26
|
|
|
14
27
|
`.brain` components compile to direct-DOM JavaScript and scoped CSS. The Rust toolchain handles parsing, checking,
|
|
15
28
|
code generation, bundling and minification. The agent can operate it through the CLI or MCP.
|
|
@@ -44,6 +57,7 @@ agent has to reconstruct while preserving code that a developer can read and rev
|
|
|
44
57
|
| Capability | What it does for the app-building loop |
|
|
45
58
|
|---|---|
|
|
46
59
|
| A served language contract | `brain spec` gives the model the implemented syntax and conventions |
|
|
60
|
+
| Task playbooks | `brain guide <topic>` (also MCP `brain_guide`): steps, checks, common mistakes and an example per task (views, data, forms, server, SEO, accessibility, WebMCP, tests, i18n, performance) |
|
|
47
61
|
| Components and reactive state | `.brain` files combine markup, BrainScript and scoped styles; `sig`, `drv` and `fx` express updates |
|
|
48
62
|
| Forms and data | Form validation, HTTP resources and server contracts give common app behavior a documented path |
|
|
49
63
|
| Routes and layouts | Views, layouts, loaders and guards put navigation and access checks into the project structure |
|
|
@@ -345,7 +359,7 @@ Never include app secrets, private source or customer data in a contribution.
|
|
|
345
359
|
|
|
346
360
|
## Know what you are adopting
|
|
347
361
|
|
|
348
|
-
BRAINLLM is **0.1.
|
|
362
|
+
BRAINLLM is **0.3.1** (see [CHANGELOG.md](https://github.com/chrisifm/BRAINLLM/blob/main/CHANGELOG.md)). Start with a small app or an isolated route and test the behavior you need. Features marked
|
|
349
363
|
as planned in the source specification are not a supported promise; `brain spec` serves the implemented contract.
|
|
350
364
|
Third-party React, Angular and Vue components do not become BRAINLLM components automatically. Benchmark wins in
|
|
351
365
|
build time do not imply that every runtime workload is faster.
|
package/brain.schema.json
CHANGED
|
@@ -87,7 +87,62 @@
|
|
|
87
87
|
},
|
|
88
88
|
"markdown": {
|
|
89
89
|
"type": "boolean",
|
|
90
|
-
"default": true
|
|
90
|
+
"default": true,
|
|
91
|
+
"description": "Publish a Markdown copy of every indexable page (/pricing.md), link it, and serve it on the page URL when Accept prefers text/markdown (Vary: Accept); false turns all three off"
|
|
92
|
+
},
|
|
93
|
+
"feed": {
|
|
94
|
+
"type": "boolean",
|
|
95
|
+
"default": true,
|
|
96
|
+
"description": "Write rss.xml (site feed, like WordPress /feed) and <section>/rss.xml for each section without a content collection, linked from every page; false turns them off"
|
|
97
|
+
},
|
|
98
|
+
"sections": {
|
|
99
|
+
"type": "boolean",
|
|
100
|
+
"default": true,
|
|
101
|
+
"description": "Write sections.json, the manifest of every section (title, description, home page, feed and pages with URL, Markdown copy and lastmod), linked from every page; false turns it off"
|
|
102
|
+
},
|
|
103
|
+
"ai": {
|
|
104
|
+
"enum": [
|
|
105
|
+
"allow",
|
|
106
|
+
"search-only",
|
|
107
|
+
"block"
|
|
108
|
+
],
|
|
109
|
+
"default": "allow",
|
|
110
|
+
"description": "AI crawler policy in robots.txt: allow (training, answers, search), search-only (no training) or block (no AI crawler)"
|
|
111
|
+
},
|
|
112
|
+
"og": {
|
|
113
|
+
"enum": [
|
|
114
|
+
"missing",
|
|
115
|
+
"always",
|
|
116
|
+
"off"
|
|
117
|
+
],
|
|
118
|
+
"default": "missing",
|
|
119
|
+
"description": "Generated Open Graph images: only for pages without og:image, for every page, or never"
|
|
120
|
+
},
|
|
121
|
+
"search": {
|
|
122
|
+
"type": "string",
|
|
123
|
+
"pattern": "\\{query\\}",
|
|
124
|
+
"description": "Site search URL with {query}, added as a SearchAction to the home page WebSite JSON-LD"
|
|
125
|
+
},
|
|
126
|
+
"news": {
|
|
127
|
+
"type": "object",
|
|
128
|
+
"required": [
|
|
129
|
+
"name",
|
|
130
|
+
"collections"
|
|
131
|
+
],
|
|
132
|
+
"properties": {
|
|
133
|
+
"name": {
|
|
134
|
+
"type": "string",
|
|
135
|
+
"description": "Publication name Google News shows"
|
|
136
|
+
},
|
|
137
|
+
"collections": {
|
|
138
|
+
"type": "array",
|
|
139
|
+
"minItems": 1,
|
|
140
|
+
"items": {
|
|
141
|
+
"type": "string"
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
"description": "Google News sitemap from these content collections"
|
|
91
146
|
}
|
|
92
147
|
}
|
|
93
148
|
},
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@christianirack/brainllm",
|
|
3
|
-
"version": "0.1
|
|
4
|
-
"description": "BRAINLLM:
|
|
3
|
+
"version": "0.3.1",
|
|
4
|
+
"description": "BRAINLLM: the web compiler for LLMs, built in Rust. One blazing-fast native binary: the `brain` CLI, dev server, build (~34 ms) and MCP server.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"brain": "bin/brain.js"
|
|
7
7
|
},
|
|
@@ -14,19 +14,21 @@
|
|
|
14
14
|
"node": ">=22"
|
|
15
15
|
},
|
|
16
16
|
"optionalDependencies": {
|
|
17
|
-
"@christianirack/brainllm-darwin-arm64": "0.1
|
|
18
|
-
"@christianirack/brainllm-darwin-x64": "0.1
|
|
19
|
-
"@christianirack/brainllm-linux-x64": "0.1
|
|
20
|
-
"@christianirack/brainllm-linux-arm64": "0.1
|
|
21
|
-
"@christianirack/brainllm-linux-x64-musl": "0.1
|
|
22
|
-
"@christianirack/brainllm-win32-x64": "0.1
|
|
23
|
-
"@christianirack/brainllm-win32-arm64": "0.1
|
|
17
|
+
"@christianirack/brainllm-darwin-arm64": "0.3.1",
|
|
18
|
+
"@christianirack/brainllm-darwin-x64": "0.3.1",
|
|
19
|
+
"@christianirack/brainllm-linux-x64": "0.3.1",
|
|
20
|
+
"@christianirack/brainllm-linux-arm64": "0.3.1",
|
|
21
|
+
"@christianirack/brainllm-linux-x64-musl": "0.3.1",
|
|
22
|
+
"@christianirack/brainllm-win32-x64": "0.3.1",
|
|
23
|
+
"@christianirack/brainllm-win32-arm64": "0.3.1"
|
|
24
24
|
},
|
|
25
25
|
"keywords": [
|
|
26
26
|
"framework",
|
|
27
27
|
"llm",
|
|
28
28
|
"ai",
|
|
29
29
|
"compiler",
|
|
30
|
+
"rust",
|
|
31
|
+
"fast",
|
|
30
32
|
"mcp",
|
|
31
33
|
"web"
|
|
32
34
|
],
|