@christianirack/brainllm 0.1.0 → 0.4.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/README.md CHANGED
@@ -1,15 +1,28 @@
1
- <p align="center"><img src="https://raw.githubusercontent.com/chrisifm/BRAINLLM/main/docs/site/assets/logo.png" width="88" alt="BRAINLLM brain mark"></p>
1
+ <p align="center"><img src="https://raw.githubusercontent.com/chrisifm/BRAINLLM/v0.4.0/docs/site/assets/logo.png" width="88" alt="BRAINLLM brain mark"></p>
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
- ![BRAINLLM — The web compiler for LLMs](https://github.com/chrisifm/BRAINLLM/raw/main/docs/site/assets/cover.png)
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
- BRAINLLM gives coding agents a compact language, a single specification and a compiler that tells them how to fix
12
- mistakes. The model builds the frontend. You set the direction, inspect the result and decide what ships.
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/v0.4.0/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/v0.4.0/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.
@@ -18,14 +31,14 @@ code generation, bundling and minification. The agent can operate it through the
18
31
  a confusing diagnostic. The agent can turn that finding into a tested proposal and, when configured, push it
19
32
  automatically to a review branch. Maintainers decide what merges.
20
33
 
21
- **[Visit the site](https://chrisifm.github.io/BRAINLLM/)** · **[Build your first app](#give-your-agent-its-first-task)** · **[Read the spec](https://github.com/chrisifm/BRAINLLM/blob/main/SPEC.md)** · **[See the benchmarks](#show-me-the-numbers)** · **[Contribute](#build-the-tool-your-agent-needs)**
34
+ **[Visit the site](https://chrisifm.github.io/BRAINLLM/)** · **[Build your first app](#give-your-agent-its-first-task)** · **[Read the spec](https://github.com/chrisifm/BRAINLLM/blob/v0.4.0/SPEC.md)** · **[See the benchmarks](#show-me-the-numbers)** · **[Contribute](#build-the-tool-your-agent-needs)**
22
35
 
23
36
  ## A frontend language with the model in mind
24
37
 
25
38
  An agent writing your app needs a contract it can follow and feedback it can act on. BRAINLLM makes that loop
26
39
  explicit: read the spec, generate a component, check it, apply the fix, test the result.
27
40
 
28
- ![An agent reads the BRAINLLM contract, writes a component and uses compiler feedback to validate the app](https://github.com/chrisifm/BRAINLLM/raw/main/docs/site/assets/agent-loop.png)
41
+ ![An agent reads the BRAINLLM contract, writes a component and uses compiler feedback to validate the app](https://github.com/chrisifm/BRAINLLM/raw/v0.4.0/docs/site/assets/agent-loop.png)
29
42
 
30
43
  - **Less to guess.** `brain spec` defines the supported language. One component format, a prescribed project
31
44
  structure and generators keep the model working inside a known contract.
@@ -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 |
@@ -52,7 +66,7 @@ agent has to reconstruct while preserving code that a developer can read and rev
52
66
  | Verification and delivery | Tests, `brain doctor` and the production build make validation part of the workflow |
53
67
  | Tested compiler improvements | Isolated proposals, validation gates and optional review-branch pushes let the agent contribute fixes |
54
68
 
55
- Use [SPEC.md](https://github.com/chrisifm/BRAINLLM/blob/main/SPEC.md), the served `brain spec` and [EVOLUTION.md](https://github.com/chrisifm/BRAINLLM/blob/main/docs/EVOLUTION.md) for exact contracts and limits.
69
+ Use [SPEC.md](https://github.com/chrisifm/BRAINLLM/blob/v0.4.0/SPEC.md), the served `brain spec` and [EVOLUTION.md](https://github.com/chrisifm/BRAINLLM/blob/v0.4.0/docs/EVOLUTION.md) for exact contracts and limits.
56
70
 
57
71
  ## Where it fits in the frontend stack
58
72
 
@@ -111,8 +125,8 @@ stack. Builds run serially on a shared machine. Variance matters: inspect the ra
111
125
  The output strategies differ (including SSR, client rendering and an Astro React island); this comparison measures
112
126
  production build duration for this fixture, not universal app performance or feature equivalence.
113
127
 
114
- Read the [expanded method, versions, payloads and results](https://github.com/chrisifm/BRAINLLM/blob/main/bench/build/expanded.md). The original three-stack
115
- [historical results](https://github.com/chrisifm/BRAINLLM/blob/main/bench/build/results/summary.md) remain available unchanged. Use `bench/build/expanded.mjs`
128
+ Read the [expanded method, versions, payloads and results](https://github.com/chrisifm/BRAINLLM/blob/v0.4.0/bench/build/expanded.md). The original three-stack
129
+ [historical results](https://github.com/chrisifm/BRAINLLM/blob/v0.4.0/bench/build/results/summary.md) remain available unchanged. Use `bench/build/expanded.mjs`
116
130
  with the documented frozen binary and scratch-directory setup to reproduce this seven-stack run.
117
131
 
118
132
  **Ask your agent to challenge the result:**
@@ -135,11 +149,11 @@ numbers support it. Do not upload results or publish anything automatically.
135
149
  Clean up only the temporary resources this run created.
136
150
  ```
137
151
 
138
- A separate [cache-key microbenchmark](https://github.com/chrisifm/BRAINLLM/blob/main/bench/build/results/compiler-cache-lookup.json) measured **43.3× faster key
152
+ A separate [cache-key microbenchmark](https://github.com/chrisifm/BRAINLLM/blob/v0.4.0/bench/build/results/compiler-cache-lookup.json) measured **43.3× faster key
139
153
  lookup** after removing an unnecessary parse: 10,000 lookups of a 1,050-byte input. That number measures this
140
154
  internal operation only. It is not a full-build speedup or a webpack comparison.
141
155
 
142
- The [benchmark report](https://github.com/chrisifm/BRAINLLM/blob/main/bench/REPORT.md) also tracks agent-generated apps, browser behavior, payload size and
156
+ The [benchmark report](https://github.com/chrisifm/BRAINLLM/blob/v0.4.0/bench/REPORT.md) also tracks agent-generated apps, browser behavior, payload size and
143
157
  failure recovery. Historical LLM results describe their frozen model/spec/compiler runs; they do not guarantee
144
158
  that a new prompt or compiler revision will pass. This project is open to developers and researchers who want to
145
159
  investigate how language design and compiler feedback affect agent behavior. Bring a hypothesis and a reproducer.
@@ -163,7 +177,7 @@ what each result actually establishes.
163
177
 
164
178
  Browser tooling and the preview supervisor currently require macOS or Linux. Screenshot baselines need stable browser,
165
179
  font and app-data inputs. Runtime mount-time/heap budgets remain planned; the compiler rejects those settings rather
166
- than pretending to measure them. See the [implemented contract](https://github.com/chrisifm/BRAINLLM/blob/main/SPEC.md) and [tool internals](https://github.com/chrisifm/BRAINLLM/blob/main/docs/INTERNALS.md).
180
+ than pretending to measure them. See the [implemented contract](https://github.com/chrisifm/BRAINLLM/blob/v0.4.0/SPEC.md) and [tool internals](https://github.com/chrisifm/BRAINLLM/blob/v0.4.0/docs/INTERNALS.md).
167
181
 
168
182
  ## Give your agent its first task
169
183
 
@@ -247,11 +261,21 @@ With a source installation, use the installed `brain` commands directly. That wo
247
261
  Cargo installs `brain` into its bin directory; make sure that directory is on your `PATH`. Stop the dev server with
248
262
  Ctrl+C. From the app directory, run `brain doctor` to validate it and `brain build` to create production output.
249
263
  For an MCP client in an npm-created app, use command `npx` with arguments `["brain", "mcp"]` and the app as its
250
- working directory. With a source installation, use the installed `brain` executable and argument `mcp`. Follow that client's configuration instructions; merely copying a prompt does not grant tool access.
264
+ working directory. New apps include `.mcp.json` for Claude Code and `.cursor/mcp.json` for Cursor, plus
265
+ `CLAUDE.md` importing `AGENTS.md`. Install the pinned dependency, restart the client and verify `brain_spec` appears.
266
+ Client trust/approval settings still apply; configuration alone does not prove a live connection.
267
+
268
+ For an existing app, run `brain agent setup` to merge local registrations, or
269
+ `claude mcp add --scope project brain -- npx --no-install brain mcp` for Claude Code alone.
270
+ `brain agent setup --hooks` also installs optional Claude Code edit-time check feedback, preserving existing hooks.
271
+ The hook checks the app after `.brain`, `.jsbrain` and `.cssbrain` edits; it does not run tests or download packages.
272
+ Use `brain mcp --profile minimal` for six core tools, or `--profile backend` for resource/job contracts and generators.
273
+ With a source installation, change the registration to command `brain` and arguments `["mcp"]`.
274
+ Other clients use their own MCP settings. See [the backend/agent contract](https://github.com/chrisifm/BRAINLLM/blob/v0.4.0/docs/BACKEND.md).
251
275
 
252
276
  </details>
253
277
 
254
- For an existing frontend, start with the [migration workflow](https://github.com/chrisifm/BRAINLLM/blob/main/docs/MIGRATION.md). Its read-only planner recognizes
278
+ For an existing frontend, start with the [migration workflow](https://github.com/chrisifm/BRAINLLM/blob/v0.4.0/docs/MIGRATION.md). Its read-only planner recognizes
255
279
  React, Angular, Vue, Svelte, Next and Nuxt projects. Port one tested route or component at a time, preserve its
256
280
  behavior and keep a rollback path. It is an incremental workflow, not an automatic transpiler.
257
281
 
@@ -269,7 +293,7 @@ behavior and keep a rollback path. It is an incremental workflow, not an automat
269
293
  ```
270
294
 
271
295
  The compiler handles signal reads and writes. Derived values update when their inputs change. Styles can live in
272
- the same file and are scoped to the component. The [served spec](https://github.com/chrisifm/BRAINLLM/blob/main/SPEC.md) defines the supported syntax.
296
+ the same file and are scoped to the component. The [served spec](https://github.com/chrisifm/BRAINLLM/blob/v0.4.0/SPEC.md) defines the supported syntax.
273
297
 
274
298
  ## Readable intent. Lean browser output.
275
299
 
@@ -277,7 +301,7 @@ An internal function named `back_to_home` can become a short identifier in produ
277
301
  on scope and the other names in the module. Keep meaningful names where the agent reasons about the code; let the
278
302
  compiler shorten eligible bindings in what the browser receives.
279
303
 
280
- This example comes from the [minifier's scope regression tests](https://github.com/chrisifm/BRAINLLM/blob/main/crates/brain-min/src/mangle.rs):
304
+ This example comes from the [minifier's scope regression tests](https://github.com/chrisifm/BRAINLLM/blob/v0.4.0/crates/brain-min/src/mangle.rs):
281
305
 
282
306
  ```js
283
307
  // Before
@@ -312,29 +336,29 @@ BRAINLLM includes protections at several stages of the app loop:
312
336
  tests and diagnostics; failed stages remain visible to the agent.
313
337
 
314
338
  These are implemented mechanisms, not a promise to catch every bug or repair every failure. The agent still needs
315
- to test the user's workflow. See [runtime behavior in the spec](https://github.com/chrisifm/BRAINLLM/blob/main/SPEC.md#errors-at-runtime),
316
- [component boundaries](https://github.com/chrisifm/BRAINLLM/blob/main/runtime/brain-guard.js) and [compiler diagnostics](https://github.com/chrisifm/BRAINLLM/blob/main/crates/brain-check/).
339
+ to test the user's workflow. See [runtime behavior in the spec](https://github.com/chrisifm/BRAINLLM/blob/v0.4.0/SPEC.md#errors-at-runtime),
340
+ [component boundaries](https://github.com/chrisifm/BRAINLLM/blob/v0.4.0/runtime/brain-guard.js) and [compiler diagnostics](https://github.com/chrisifm/BRAINLLM/blob/v0.4.0/crates/brain-check/).
317
341
 
318
342
  ## Build the tool your agent needs
319
343
 
320
344
  **Build with it. Let your LLM make it better.**
321
345
 
322
- ![An LLM turns an observed problem into an isolated fix, runs validation and submits a contribution for human review](https://github.com/chrisifm/BRAINLLM/raw/main/docs/site/assets/improvement-loop.png)
346
+ ![An LLM turns an observed problem into an isolated fix, runs validation and submits a contribution for human review](https://github.com/chrisifm/BRAINLLM/raw/v0.4.0/docs/site/assets/improvement-loop.png)
323
347
 
324
348
  A failed compilation can become a regression test. A repeated slow step can become a benchmark. A fix made while
325
349
  building your app can become a contribution that helps the next developer and their agent.
326
350
 
327
351
  Found a compiler gap while building an app? Turn the smallest reproducible case into a regression test and a
328
- contribution. BRAINLLM includes an [evolution workflow](https://github.com/chrisifm/BRAINLLM/blob/main/docs/EVOLUTION.md) for isolated proposals, validated compiler
352
+ contribution. BRAINLLM includes an [evolution workflow](https://github.com/chrisifm/BRAINLLM/blob/v0.4.0/docs/EVOLUTION.md) for isolated proposals, validated compiler
329
353
  binaries and reversible activation. Configured automatic pushes go to review branches; merges require the
330
354
  principal author's review. This is an explicit development workflow, not a compiler that silently rewrites itself
331
- on every build. Read the [agent improvement playbook](https://github.com/chrisifm/BRAINLLM/blob/main/docs/AGENT-IDEAS.md) for an opt-in prompt and concrete ideas
355
+ on every build. Read the [agent improvement playbook](https://github.com/chrisifm/BRAINLLM/blob/v0.4.0/docs/AGENT-IDEAS.md) for an opt-in prompt and concrete ideas
332
356
  to investigate.
333
357
 
334
358
  Human developers and LLM contributors are welcome. Useful first contributions include reproducible compiler bugs,
335
359
  behavior-preserving migration examples, clearer diagnostics and performance improvements with before/after data.
336
360
 
337
- 1. Read [CONTRIBUTING.md](https://github.com/chrisifm/BRAINLLM/blob/main/CONTRIBUTING.md) and the relevant [internals](https://github.com/chrisifm/BRAINLLM/blob/main/docs/INTERNALS.md).
361
+ 1. Read [CONTRIBUTING.md](https://github.com/chrisifm/BRAINLLM/blob/v0.4.0/CONTRIBUTING.md) and the relevant [internals](https://github.com/chrisifm/BRAINLLM/blob/v0.4.0/docs/INTERNALS.md).
338
362
  2. Make a focused change with a regression test and synthetic sample data.
339
363
  3. Run `bash scripts/verify.sh`. It builds the CLI and checks Rust, runtime, tooling, diagnostic fixtures, privacy
340
364
  and repository language. Verification also requires ripgrep.
@@ -345,7 +369,7 @@ Never include app secrets, private source or customer data in a contribution.
345
369
 
346
370
  ## Know what you are adopting
347
371
 
348
- BRAINLLM is **0.1.0**. Start with a small app or an isolated route and test the behavior you need. Features marked
372
+ BRAINLLM is **0.4.0** (see [CHANGELOG.md](https://github.com/chrisifm/BRAINLLM/blob/v0.4.0/CHANGELOG.md)). Start with a small app or an isolated route and test the behavior you need. Features marked
349
373
  as planned in the source specification are not a supported promise; `brain spec` serves the implemented contract.
350
374
  Third-party React, Angular and Vue components do not become BRAINLLM components automatically. Benchmark wins in
351
375
  build time do not imply that every runtime workload is faster.
@@ -354,15 +378,15 @@ build time do not imply that every runtime workload is faster.
354
378
 
355
379
  | You want to… | Start here |
356
380
  |---|---|
357
- | Give an agent the project context | [llms.txt](https://github.com/chrisifm/BRAINLLM/blob/main/llms.txt) |
358
- | Write an app | [SPEC.md](https://github.com/chrisifm/BRAINLLM/blob/main/SPEC.md) and `brain spec` |
359
- | Migrate an existing frontend | [Migration guide](https://github.com/chrisifm/BRAINLLM/blob/main/docs/MIGRATION.md) |
360
- | Improve the compiler while using it | [Evolution workflow](https://github.com/chrisifm/BRAINLLM/blob/main/docs/EVOLUTION.md) and [agent ideas](https://github.com/chrisifm/BRAINLLM/blob/main/docs/AGENT-IDEAS.md) |
361
- | Understand the implementation | [Internals](https://github.com/chrisifm/BRAINLLM/blob/main/docs/INTERNALS.md) and [crates](https://github.com/chrisifm/BRAINLLM/blob/main/crates/) |
362
- | Inspect examples and reproduce measurements | [Examples](https://github.com/chrisifm/BRAINLLM/blob/main/examples/) and [benchmarks](https://github.com/chrisifm/BRAINLLM/blob/main/bench/) |
363
- | Contribute a change | [Contributor guide](https://github.com/chrisifm/BRAINLLM/blob/main/CONTRIBUTING.md) |
381
+ | Give an agent the project context | [llms.txt](https://github.com/chrisifm/BRAINLLM/blob/v0.4.0/llms.txt) |
382
+ | Write an app | [SPEC.md](https://github.com/chrisifm/BRAINLLM/blob/v0.4.0/SPEC.md) and `brain spec` |
383
+ | Migrate an existing frontend | [Migration guide](https://github.com/chrisifm/BRAINLLM/blob/v0.4.0/docs/MIGRATION.md) |
384
+ | Improve the compiler while using it | [Evolution workflow](https://github.com/chrisifm/BRAINLLM/blob/v0.4.0/docs/EVOLUTION.md) and [agent ideas](https://github.com/chrisifm/BRAINLLM/blob/v0.4.0/docs/AGENT-IDEAS.md) |
385
+ | Understand the implementation | [Internals](https://github.com/chrisifm/BRAINLLM/blob/v0.4.0/docs/INTERNALS.md) and [crates](https://github.com/chrisifm/BRAINLLM/blob/v0.4.0/crates/) |
386
+ | Inspect examples and reproduce measurements | [Examples](https://github.com/chrisifm/BRAINLLM/blob/v0.4.0/examples/) and [benchmarks](https://github.com/chrisifm/BRAINLLM/blob/v0.4.0/bench/) |
387
+ | Contribute a change | [Contributor guide](https://github.com/chrisifm/BRAINLLM/blob/v0.4.0/CONTRIBUTING.md) |
364
388
 
365
- Released under the [MIT license](https://github.com/chrisifm/BRAINLLM/blob/main/LICENSE).
389
+ Released under the [MIT license](https://github.com/chrisifm/BRAINLLM/blob/v0.4.0/LICENSE).
366
390
 
367
391
  Created and maintained by **Christian Irack Flores Maldonado**, principal author.
368
392
  [ingenieria.dev](https://ingenieria.dev) · [irack.mx](https://irack.mx) · [christian@irack.mx](mailto:christian@irack.mx)
@@ -374,5 +398,5 @@ Every merged contribution helps the next developer and their agent. Thank you to
374
398
 
375
399
  [<img src="https://avatars.githubusercontent.com/u/1562002?v=4" width="48" height="48" alt="chrisifm">](https://github.com/chrisifm) [chrisifm](https://github.com/chrisifm)
376
400
 
377
- Attribution is refreshed through a reviewed pull request. [How it works](https://github.com/chrisifm/BRAINLLM/blob/main/docs/CONTRIBUTORS.md).
401
+ Attribution is refreshed through a reviewed pull request. [How it works](https://github.com/chrisifm/BRAINLLM/blob/v0.4.0/docs/CONTRIBUTORS.md).
378
402
  <!-- contributors:end -->
@@ -0,0 +1,211 @@
1
+ web-features 3.44.0
2
+ Source: https://github.com/web-platform-dx/web-features
3
+ Official npm archive: https://registry.npmjs.org/web-features/-/web-features-3.44.0.tgz
4
+ Published: 2026-10-22T16:30:26.001Z
5
+ Data SHA-256: 72577e8df9c8abe8a8af86a03bc161ac06be21488d76857f157c7f83f017f706
6
+ The license below is reproduced from package/LICENSE.txt in the integrity-verified official npm archive.
7
+ Only the trailing blank line is omitted.
8
+
9
+ Apache License
10
+ Version 2.0, January 2004
11
+ http://www.apache.org/licenses/
12
+
13
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
14
+
15
+ 1. Definitions.
16
+
17
+ "License" shall mean the terms and conditions for use, reproduction,
18
+ and distribution as defined by Sections 1 through 9 of this document.
19
+
20
+ "Licensor" shall mean the copyright owner or entity authorized by
21
+ the copyright owner that is granting the License.
22
+
23
+ "Legal Entity" shall mean the union of the acting entity and all
24
+ other entities that control, are controlled by, or are under common
25
+ control with that entity. For the purposes of this definition,
26
+ "control" means (i) the power, direct or indirect, to cause the
27
+ direction or management of such entity, whether by contract or
28
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
29
+ outstanding shares, or (iii) beneficial ownership of such entity.
30
+
31
+ "You" (or "Your") shall mean an individual or Legal Entity
32
+ exercising permissions granted by this License.
33
+
34
+ "Source" form shall mean the preferred form for making modifications,
35
+ including but not limited to software source code, documentation
36
+ source, and configuration files.
37
+
38
+ "Object" form shall mean any form resulting from mechanical
39
+ transformation or translation of a Source form, including but
40
+ not limited to compiled object code, generated documentation,
41
+ and conversions to other media types.
42
+
43
+ "Work" shall mean the work of authorship, whether in Source or
44
+ Object form, made available under the License, as indicated by a
45
+ copyright notice that is included in or attached to the work
46
+ (an example is provided in the Appendix below).
47
+
48
+ "Derivative Works" shall mean any work, whether in Source or Object
49
+ form, that is based on (or derived from) the Work and for which the
50
+ editorial revisions, annotations, elaborations, or other modifications
51
+ represent, as a whole, an original work of authorship. For the purposes
52
+ of this License, Derivative Works shall not include works that remain
53
+ separable from, or merely link (or bind by name) to the interfaces of,
54
+ the Work and Derivative Works thereof.
55
+
56
+ "Contribution" shall mean any work of authorship, including
57
+ the original version of the Work and any modifications or additions
58
+ to that Work or Derivative Works thereof, that is intentionally
59
+ submitted to Licensor for inclusion in the Work by the copyright owner
60
+ or by an individual or Legal Entity authorized to submit on behalf of
61
+ the copyright owner. For the purposes of this definition, "submitted"
62
+ means any form of electronic, verbal, or written communication sent
63
+ to the Licensor or its representatives, including but not limited to
64
+ communication on electronic mailing lists, source code control systems,
65
+ and issue tracking systems that are managed by, or on behalf of, the
66
+ Licensor for the purpose of discussing and improving the Work, but
67
+ excluding communication that is conspicuously marked or otherwise
68
+ designated in writing by the copyright owner as "Not a Contribution."
69
+
70
+ "Contributor" shall mean Licensor and any individual or Legal Entity
71
+ on behalf of whom a Contribution has been received by Licensor and
72
+ subsequently incorporated within the Work.
73
+
74
+ 2. Grant of Copyright License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ copyright license to reproduce, prepare Derivative Works of,
78
+ publicly display, publicly perform, sublicense, and distribute the
79
+ Work and such Derivative Works in Source or Object form.
80
+
81
+ 3. Grant of Patent License. Subject to the terms and conditions of
82
+ this License, each Contributor hereby grants to You a perpetual,
83
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
84
+ (except as stated in this section) patent license to make, have made,
85
+ use, offer to sell, sell, import, and otherwise transfer the Work,
86
+ where such license applies only to those patent claims licensable
87
+ by such Contributor that are necessarily infringed by their
88
+ Contribution(s) alone or by combination of their Contribution(s)
89
+ with the Work to which such Contribution(s) was submitted. If You
90
+ institute patent litigation against any entity (including a
91
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
92
+ or a Contribution incorporated within the Work constitutes direct
93
+ or contributory patent infringement, then any patent licenses
94
+ granted to You under this License for that Work shall terminate
95
+ as of the date such litigation is filed.
96
+
97
+ 4. Redistribution. You may reproduce and distribute copies of the
98
+ Work or Derivative Works thereof in any medium, with or without
99
+ modifications, and in Source or Object form, provided that You
100
+ meet the following conditions:
101
+
102
+ (a) You must give any other recipients of the Work or
103
+ Derivative Works a copy of this License; and
104
+
105
+ (b) You must cause any modified files to carry prominent notices
106
+ stating that You changed the files; and
107
+
108
+ (c) You must retain, in the Source form of any Derivative Works
109
+ that You distribute, all copyright, patent, trademark, and
110
+ attribution notices from the Source form of the Work,
111
+ excluding those notices that do not pertain to any part of
112
+ the Derivative Works; and
113
+
114
+ (d) If the Work includes a "NOTICE" text file as part of its
115
+ distribution, then any Derivative Works that You distribute must
116
+ include a readable copy of the attribution notices contained
117
+ within such NOTICE file, excluding those notices that do not
118
+ pertain to any part of the Derivative Works, in at least one
119
+ of the following places: within a NOTICE text file distributed
120
+ as part of the Derivative Works; within the Source form or
121
+ documentation, if provided along with the Derivative Works; or,
122
+ within a display generated by the Derivative Works, if and
123
+ wherever such third-party notices normally appear. The contents
124
+ of the NOTICE file are for informational purposes only and
125
+ do not modify the License. You may add Your own attribution
126
+ notices within Derivative Works that You distribute, alongside
127
+ or as an addendum to the NOTICE text from the Work, provided
128
+ that such additional attribution notices cannot be construed
129
+ as modifying the License.
130
+
131
+ You may add Your own copyright statement to Your modifications and
132
+ may provide additional or different license terms and conditions
133
+ for use, reproduction, or distribution of Your modifications, or
134
+ for any such Derivative Works as a whole, provided Your use,
135
+ reproduction, and distribution of the Work otherwise complies with
136
+ the conditions stated in this License.
137
+
138
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
139
+ any Contribution intentionally submitted for inclusion in the Work
140
+ by You to the Licensor shall be under the terms and conditions of
141
+ this License, without any additional terms or conditions.
142
+ Notwithstanding the above, nothing herein shall supersede or modify
143
+ the terms of any separate license agreement you may have executed
144
+ with Licensor regarding such Contributions.
145
+
146
+ 6. Trademarks. This License does not grant permission to use the trade
147
+ names, trademarks, service marks, or product names of the Licensor,
148
+ except as required for reasonable and customary use in describing the
149
+ origin of the Work and reproducing the content of the NOTICE file.
150
+
151
+ 7. Disclaimer of Warranty. Unless required by applicable law or
152
+ agreed to in writing, Licensor provides the Work (and each
153
+ Contributor provides its Contributions) on an "AS IS" BASIS,
154
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
155
+ implied, including, without limitation, any warranties or conditions
156
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
157
+ PARTICULAR PURPOSE. You are solely responsible for determining the
158
+ appropriateness of using or redistributing the Work and assume any
159
+ risks associated with Your exercise of permissions under this License.
160
+
161
+ 8. Limitation of Liability. In no event and under no legal theory,
162
+ whether in tort (including negligence), contract, or otherwise,
163
+ unless required by applicable law (such as deliberate and grossly
164
+ negligent acts) or agreed to in writing, shall any Contributor be
165
+ liable to You for damages, including any direct, indirect, special,
166
+ incidental, or consequential damages of any character arising as a
167
+ result of this License or out of the use or inability to use the
168
+ Work (including but not limited to damages for loss of goodwill,
169
+ work stoppage, computer failure or malfunction, or any and all
170
+ other commercial damages or losses), even if such Contributor
171
+ has been advised of the possibility of such damages.
172
+
173
+ 9. Accepting Warranty or Additional Liability. While redistributing
174
+ the Work or Derivative Works thereof, You may choose to offer,
175
+ and charge a fee for, acceptance of support, warranty, indemnity,
176
+ or other liability obligations and/or rights consistent with this
177
+ License. However, in accepting such obligations, You may act only
178
+ on Your own behalf and on Your sole responsibility, not on behalf
179
+ of any other Contributor, and only if You agree to indemnify,
180
+ defend, and hold each Contributor harmless for any liability
181
+ incurred by, or claims asserted against, such Contributor by reason
182
+ of your accepting any such warranty or additional liability.
183
+
184
+ END OF TERMS AND CONDITIONS
185
+
186
+ APPENDIX: How to apply the Apache License to your work.
187
+
188
+ To apply the Apache License to your work, attach the following
189
+ boilerplate notice, with the fields enclosed by brackets "[]"
190
+ replaced with your own identifying information. (Don't include
191
+ the brackets!) The text should be enclosed in the appropriate
192
+ comment syntax for the file format. We also recommend that a
193
+ file or class name and description of purpose be included on the
194
+ same "printed page" as the copyright notice for easier
195
+ identification within third-party archives.
196
+
197
+ Copyright [yyyy] [name of copyright owner]
198
+
199
+ Licensed under the Apache License, Version 2.0 (the "License");
200
+ you may not use this file except in compliance with the License.
201
+ You may obtain a copy of the License at
202
+
203
+ http://www.apache.org/licenses/LICENSE-2.0
204
+
205
+ Unless required by applicable law or agreed to in writing, software
206
+ distributed under the License is distributed on an "AS IS" BASIS,
207
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
208
+ See the License for the specific language governing permissions and
209
+ limitations under the License.
210
+
211
+ Native compiler dependency licenses accompany each platform package in THIRD_PARTY_NOTICES.txt, CARGO_NOTICES.txt, CARGO_DEPENDENCIES.json RUST_STD_COPYRIGHT.html and RUST_TOOLCHAIN_COPYRIGHT.html. Launcher/initializer/runtime-only packages do not embed a Rust compiler binary.
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
  },
@@ -142,12 +197,20 @@
142
197
  }
143
198
  },
144
199
  "targets": {
145
- "enum": [
146
- "baseline-widely",
147
- "baseline-newly"
200
+ "oneOf": [
201
+ {
202
+ "enum": [
203
+ "baseline-widely",
204
+ "baseline-newly"
205
+ ]
206
+ },
207
+ {
208
+ "type": "string",
209
+ "pattern": "^baseline-(201[5-9]|20[2-9][0-9])$"
210
+ }
148
211
  ],
149
212
  "default": "baseline-widely",
150
- "description": "Browser support target of the B12xx compatibility rules: Baseline widely available (default) or newly available."
213
+ "description": "Browser support target for B21xx warnings. Explicit years must not be newer than the pinned web-features dataset."
151
214
  }
152
215
  }
153
216
  }
package/package.json CHANGED
@@ -1,33 +1,66 @@
1
1
  {
2
2
  "name": "@christianirack/brainllm",
3
- "version": "0.1.0",
4
- "description": "BRAINLLM: a web framework designed for LLMs to write. The `brain` CLI, dev server, build and MCP server.",
3
+ "version": "0.4.0",
4
+ "description": "BRAINLLM: the Rust-powered full-stack web compiler for LLMs and AI agents. Native brain CLI, dev server, optimized builds, PostgreSQL backend and MCP server.",
5
5
  "bin": {
6
6
  "brain": "bin/brain.js"
7
7
  },
8
8
  "files": [
9
9
  "bin",
10
10
  "brain.schema.json",
11
- "README.md"
11
+ "README.md",
12
+ "THIRD_PARTY_NOTICES.txt"
12
13
  ],
13
14
  "engines": {
14
15
  "node": ">=22"
15
16
  },
16
17
  "optionalDependencies": {
17
- "@christianirack/brainllm-darwin-arm64": "0.1.0",
18
- "@christianirack/brainllm-darwin-x64": "0.1.0",
19
- "@christianirack/brainllm-linux-x64": "0.1.0",
20
- "@christianirack/brainllm-linux-arm64": "0.1.0",
21
- "@christianirack/brainllm-linux-x64-musl": "0.1.0",
22
- "@christianirack/brainllm-win32-x64": "0.1.0",
23
- "@christianirack/brainllm-win32-arm64": "0.1.0"
18
+ "@christianirack/brainllm-darwin-arm64": "0.4.0",
19
+ "@christianirack/brainllm-darwin-x64": "0.4.0",
20
+ "@christianirack/brainllm-linux-x64": "0.4.0",
21
+ "@christianirack/brainllm-linux-arm64": "0.4.0",
22
+ "@christianirack/brainllm-linux-x64-musl": "0.4.0",
23
+ "@christianirack/brainllm-win32-x64": "0.4.0",
24
+ "@christianirack/brainllm-win32-arm64": "0.4.0"
24
25
  },
25
26
  "keywords": [
26
- "framework",
27
27
  "llm",
28
28
  "ai",
29
- "compiler",
29
+ "ai-agents",
30
+ "coding-agent",
31
+ "agentic",
32
+ "claude-code",
33
+ "cursor",
30
34
  "mcp",
35
+ "model-context-protocol",
36
+ "frontend",
37
+ "front-end",
38
+ "backend",
39
+ "back-end",
40
+ "fullstack",
41
+ "full-stack",
42
+ "cli",
43
+ "command-line",
44
+ "developer-tools",
45
+ "design-system",
46
+ "css",
47
+ "testing",
48
+ "e2e",
49
+ "postgresql",
50
+ "jwt",
51
+ "web-framework",
52
+ "framework",
53
+ "compiler",
54
+ "rust",
55
+ "fast",
56
+ "performance",
57
+ "react-alternative",
58
+ "vite-alternative",
59
+ "signals",
60
+ "reactive",
61
+ "components",
62
+ "ssr",
63
+ "spa",
31
64
  "web"
32
65
  ],
33
66
  "license": "MIT",