@christianirack/brainllm 0.3.1 → 0.5.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,4 +1,4 @@
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.5.0/docs/site/assets/logo.png" width="88" alt="BRAINLLM brain mark"></p>
2
2
 
3
3
  # BRAINLLM
4
4
 
@@ -13,10 +13,10 @@
13
13
  <img src="https://img.shields.io/badge/built%20with-Rust-dea584?logo=rust&logoColor=white" alt="Built with Rust">
14
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
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>
16
+ <a href="https://github.com/chrisifm/BRAINLLM/blob/v0.5.0/LICENSE"><img src="https://img.shields.io/github/license/chrisifm/BRAINLLM" alt="License"></a>
17
17
  </p>
18
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>
19
+ <p align="center"><a href="https://chrisifm.github.io/BRAINLLM/"><img src="https://raw.githubusercontent.com/chrisifm/BRAINLLM/v0.5.0/docs/site/assets/cover.png" alt="BRAINLLM — The web compiler for LLMs. Open the website: chrisifm.github.io/BRAINLLM"></a></p>
20
20
 
21
21
  <p align="center"><b>🌐 <a href="https://chrisifm.github.io/BRAINLLM/">chrisifm.github.io/BRAINLLM</a></b></p>
22
22
 
@@ -31,14 +31,14 @@ code generation, bundling and minification. The agent can operate it through the
31
31
  a confusing diagnostic. The agent can turn that finding into a tested proposal and, when configured, push it
32
32
  automatically to a review branch. Maintainers decide what merges.
33
33
 
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/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.5.0/SPEC.md)** · **[See the benchmarks](#show-me-the-numbers)** · **[Contribute](#build-the-tool-your-agent-needs)**
35
35
 
36
36
  ## A frontend language with the model in mind
37
37
 
38
38
  An agent writing your app needs a contract it can follow and feedback it can act on. BRAINLLM makes that loop
39
39
  explicit: read the spec, generate a component, check it, apply the fix, test the result.
40
40
 
41
- ![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.5.0/docs/site/assets/agent-loop.png)
42
42
 
43
43
  - **Less to guess.** `brain spec` defines the supported language. One component format, a prescribed project
44
44
  structure and generators keep the model working inside a known contract.
@@ -66,7 +66,7 @@ agent has to reconstruct while preserving code that a developer can read and rev
66
66
  | Verification and delivery | Tests, `brain doctor` and the production build make validation part of the workflow |
67
67
  | Tested compiler improvements | Isolated proposals, validation gates and optional review-branch pushes let the agent contribute fixes |
68
68
 
69
- 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.5.0/SPEC.md), the served `brain spec` and [EVOLUTION.md](https://github.com/chrisifm/BRAINLLM/blob/v0.5.0/docs/EVOLUTION.md) for exact contracts and limits.
70
70
 
71
71
  ## Where it fits in the frontend stack
72
72
 
@@ -125,8 +125,8 @@ stack. Builds run serially on a shared machine. Variance matters: inspect the ra
125
125
  The output strategies differ (including SSR, client rendering and an Astro React island); this comparison measures
126
126
  production build duration for this fixture, not universal app performance or feature equivalence.
127
127
 
128
- Read the [expanded method, versions, payloads and results](https://github.com/chrisifm/BRAINLLM/blob/main/bench/build/expanded.md). The original three-stack
129
- [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.5.0/bench/build/expanded.md). The original three-stack
129
+ [historical results](https://github.com/chrisifm/BRAINLLM/blob/v0.5.0/bench/build/results/summary.md) remain available unchanged. Use `bench/build/expanded.mjs`
130
130
  with the documented frozen binary and scratch-directory setup to reproduce this seven-stack run.
131
131
 
132
132
  **Ask your agent to challenge the result:**
@@ -149,11 +149,11 @@ numbers support it. Do not upload results or publish anything automatically.
149
149
  Clean up only the temporary resources this run created.
150
150
  ```
151
151
 
152
- 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.5.0/bench/build/results/compiler-cache-lookup.json) measured **43.3× faster key
153
153
  lookup** after removing an unnecessary parse: 10,000 lookups of a 1,050-byte input. That number measures this
154
154
  internal operation only. It is not a full-build speedup or a webpack comparison.
155
155
 
156
- 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.5.0/bench/REPORT.md) also tracks agent-generated apps, browser behavior, payload size and
157
157
  failure recovery. Historical LLM results describe their frozen model/spec/compiler runs; they do not guarantee
158
158
  that a new prompt or compiler revision will pass. This project is open to developers and researchers who want to
159
159
  investigate how language design and compiler feedback affect agent behavior. Bring a hypothesis and a reproducer.
@@ -177,7 +177,7 @@ what each result actually establishes.
177
177
 
178
178
  Browser tooling and the preview supervisor currently require macOS or Linux. Screenshot baselines need stable browser,
179
179
  font and app-data inputs. Runtime mount-time/heap budgets remain planned; the compiler rejects those settings rather
180
- 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.5.0/SPEC.md) and [tool internals](https://github.com/chrisifm/BRAINLLM/blob/v0.5.0/docs/INTERNALS.md).
181
181
 
182
182
  ## Give your agent its first task
183
183
 
@@ -261,11 +261,21 @@ With a source installation, use the installed `brain` commands directly. That wo
261
261
  Cargo installs `brain` into its bin directory; make sure that directory is on your `PATH`. Stop the dev server with
262
262
  Ctrl+C. From the app directory, run `brain doctor` to validate it and `brain build` to create production output.
263
263
  For an MCP client in an npm-created app, use command `npx` with arguments `["brain", "mcp"]` and the app as its
264
- 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.5.0/docs/BACKEND.md).
265
275
 
266
276
  </details>
267
277
 
268
- 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.5.0/docs/MIGRATION.md). Its read-only planner recognizes
269
279
  React, Angular, Vue, Svelte, Next and Nuxt projects. Port one tested route or component at a time, preserve its
270
280
  behavior and keep a rollback path. It is an incremental workflow, not an automatic transpiler.
271
281
 
@@ -283,7 +293,7 @@ behavior and keep a rollback path. It is an incremental workflow, not an automat
283
293
  ```
284
294
 
285
295
  The compiler handles signal reads and writes. Derived values update when their inputs change. Styles can live in
286
- 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.5.0/SPEC.md) defines the supported syntax.
287
297
 
288
298
  ## Readable intent. Lean browser output.
289
299
 
@@ -291,7 +301,7 @@ An internal function named `back_to_home` can become a short identifier in produ
291
301
  on scope and the other names in the module. Keep meaningful names where the agent reasons about the code; let the
292
302
  compiler shorten eligible bindings in what the browser receives.
293
303
 
294
- 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.5.0/crates/brain-min/src/mangle.rs):
295
305
 
296
306
  ```js
297
307
  // Before
@@ -326,29 +336,29 @@ BRAINLLM includes protections at several stages of the app loop:
326
336
  tests and diagnostics; failed stages remain visible to the agent.
327
337
 
328
338
  These are implemented mechanisms, not a promise to catch every bug or repair every failure. The agent still needs
329
- to test the user's workflow. See [runtime behavior in the spec](https://github.com/chrisifm/BRAINLLM/blob/main/SPEC.md#errors-at-runtime),
330
- [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.5.0/SPEC.md#errors-at-runtime),
340
+ [component boundaries](https://github.com/chrisifm/BRAINLLM/blob/v0.5.0/runtime/brain-guard.js) and [compiler diagnostics](https://github.com/chrisifm/BRAINLLM/blob/v0.5.0/crates/brain-check/).
331
341
 
332
342
  ## Build the tool your agent needs
333
343
 
334
344
  **Build with it. Let your LLM make it better.**
335
345
 
336
- ![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.5.0/docs/site/assets/improvement-loop.png)
337
347
 
338
348
  A failed compilation can become a regression test. A repeated slow step can become a benchmark. A fix made while
339
349
  building your app can become a contribution that helps the next developer and their agent.
340
350
 
341
351
  Found a compiler gap while building an app? Turn the smallest reproducible case into a regression test and a
342
- 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.5.0/docs/EVOLUTION.md) for isolated proposals, validated compiler
343
353
  binaries and reversible activation. Configured automatic pushes go to review branches; merges require the
344
354
  principal author's review. This is an explicit development workflow, not a compiler that silently rewrites itself
345
- 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.5.0/docs/AGENT-IDEAS.md) for an opt-in prompt and concrete ideas
346
356
  to investigate.
347
357
 
348
358
  Human developers and LLM contributors are welcome. Useful first contributions include reproducible compiler bugs,
349
359
  behavior-preserving migration examples, clearer diagnostics and performance improvements with before/after data.
350
360
 
351
- 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.5.0/CONTRIBUTING.md) and the relevant [internals](https://github.com/chrisifm/BRAINLLM/blob/v0.5.0/docs/INTERNALS.md).
352
362
  2. Make a focused change with a regression test and synthetic sample data.
353
363
  3. Run `bash scripts/verify.sh`. It builds the CLI and checks Rust, runtime, tooling, diagnostic fixtures, privacy
354
364
  and repository language. Verification also requires ripgrep.
@@ -359,7 +369,7 @@ Never include app secrets, private source or customer data in a contribution.
359
369
 
360
370
  ## Know what you are adopting
361
371
 
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
372
+ BRAINLLM is **0.5.0** (see [CHANGELOG.md](https://github.com/chrisifm/BRAINLLM/blob/v0.5.0/CHANGELOG.md)). Start with a small app or an isolated route and test the behavior you need. Features marked
363
373
  as planned in the source specification are not a supported promise; `brain spec` serves the implemented contract.
364
374
  Third-party React, Angular and Vue components do not become BRAINLLM components automatically. Benchmark wins in
365
375
  build time do not imply that every runtime workload is faster.
@@ -368,15 +378,15 @@ build time do not imply that every runtime workload is faster.
368
378
 
369
379
  | You want to… | Start here |
370
380
  |---|---|
371
- | Give an agent the project context | [llms.txt](https://github.com/chrisifm/BRAINLLM/blob/main/llms.txt) |
372
- | Write an app | [SPEC.md](https://github.com/chrisifm/BRAINLLM/blob/main/SPEC.md) and `brain spec` |
373
- | Migrate an existing frontend | [Migration guide](https://github.com/chrisifm/BRAINLLM/blob/main/docs/MIGRATION.md) |
374
- | 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) |
375
- | Understand the implementation | [Internals](https://github.com/chrisifm/BRAINLLM/blob/main/docs/INTERNALS.md) and [crates](https://github.com/chrisifm/BRAINLLM/blob/main/crates/) |
376
- | Inspect examples and reproduce measurements | [Examples](https://github.com/chrisifm/BRAINLLM/blob/main/examples/) and [benchmarks](https://github.com/chrisifm/BRAINLLM/blob/main/bench/) |
377
- | 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.5.0/llms.txt) |
382
+ | Write an app | [SPEC.md](https://github.com/chrisifm/BRAINLLM/blob/v0.5.0/SPEC.md) and `brain spec` |
383
+ | Migrate an existing frontend | [Migration guide](https://github.com/chrisifm/BRAINLLM/blob/v0.5.0/docs/MIGRATION.md) |
384
+ | Improve the compiler while using it | [Evolution workflow](https://github.com/chrisifm/BRAINLLM/blob/v0.5.0/docs/EVOLUTION.md) and [agent ideas](https://github.com/chrisifm/BRAINLLM/blob/v0.5.0/docs/AGENT-IDEAS.md) |
385
+ | Understand the implementation | [Internals](https://github.com/chrisifm/BRAINLLM/blob/v0.5.0/docs/INTERNALS.md) and [crates](https://github.com/chrisifm/BRAINLLM/blob/v0.5.0/crates/) |
386
+ | Inspect examples and reproduce measurements | [Examples](https://github.com/chrisifm/BRAINLLM/blob/v0.5.0/examples/) and [benchmarks](https://github.com/chrisifm/BRAINLLM/blob/v0.5.0/bench/) |
387
+ | Contribute a change | [Contributor guide](https://github.com/chrisifm/BRAINLLM/blob/v0.5.0/CONTRIBUTING.md) |
378
388
 
379
- 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.5.0/LICENSE).
380
390
 
381
391
  Created and maintained by **Christian Irack Flores Maldonado**, principal author.
382
392
  [ingenieria.dev](https://ingenieria.dev) · [irack.mx](https://irack.mx) · [christian@irack.mx](mailto:christian@irack.mx)
@@ -388,5 +398,5 @@ Every merged contribution helps the next developer and their agent. Thank you to
388
398
 
389
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)
390
400
 
391
- 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.5.0/docs/CONTRIBUTORS.md).
392
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
@@ -30,6 +30,41 @@
30
30
  "default": "/",
31
31
  "description": "Path the app is hosted under: starts and ends with \"/\", e.g. \"/app/\". brain run, brain build and brain start serve every URL under it."
32
32
  },
33
+ "backend": {
34
+ "type": "object",
35
+ "additionalProperties": false,
36
+ "description": "Explicit native backend HTTP origins and opt-in live resource rooms; no credential values.",
37
+ "properties": {
38
+ "origins": {
39
+ "type": "array",
40
+ "minItems": 1,
41
+ "maxItems": 8,
42
+ "uniqueItems": true,
43
+ "items": { "type": "string", "format": "uri", "pattern": "^https?://[^/@?#\\s]+$" },
44
+ "description": "Canonical public HTTP(S) origins without path or trailing slash. Defaults to the origin of PUBLIC_SITE_URL. --origin replaces this list."
45
+ },
46
+ "sockets": {
47
+ "description": "Absent/false disables native live resources. Every socket origin must also occur in the resolved HTTP origins; no implicit CORS expansion.",
48
+ "oneOf": [
49
+ { "const": false },
50
+ {
51
+ "type": "object",
52
+ "additionalProperties": false,
53
+ "required": ["allowedOrigins"],
54
+ "properties": {
55
+ "allowedOrigins": {
56
+ "type": "array",
57
+ "minItems": 1,
58
+ "maxItems": 8,
59
+ "uniqueItems": true,
60
+ "items": { "type": "string", "format": "uri", "pattern": "^https?://[^/@?#\\s]+$" }
61
+ }
62
+ }
63
+ }
64
+ ]
65
+ }
66
+ }
67
+ },
33
68
  "cache": {
34
69
  "type": "object",
35
70
  "properties": {
@@ -197,12 +232,20 @@
197
232
  }
198
233
  },
199
234
  "targets": {
200
- "enum": [
201
- "baseline-widely",
202
- "baseline-newly"
235
+ "oneOf": [
236
+ {
237
+ "enum": [
238
+ "baseline-widely",
239
+ "baseline-newly"
240
+ ]
241
+ },
242
+ {
243
+ "type": "string",
244
+ "pattern": "^baseline-(201[5-9]|20[2-9][0-9])$"
245
+ }
203
246
  ],
204
247
  "default": "baseline-widely",
205
- "description": "Browser support target of the B12xx compatibility rules: Baseline widely available (default) or newly available."
248
+ "description": "Browser support target for B21xx warnings. Explicit years must not be newer than the pinned web-features dataset."
206
249
  }
207
250
  }
208
251
  }
package/package.json CHANGED
@@ -1,35 +1,66 @@
1
1
  {
2
2
  "name": "@christianirack/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.",
3
+ "version": "0.5.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.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"
18
+ "@christianirack/brainllm-darwin-arm64": "0.5.0",
19
+ "@christianirack/brainllm-darwin-x64": "0.5.0",
20
+ "@christianirack/brainllm-linux-x64": "0.5.0",
21
+ "@christianirack/brainllm-linux-arm64": "0.5.0",
22
+ "@christianirack/brainllm-linux-x64-musl": "0.5.0",
23
+ "@christianirack/brainllm-win32-x64": "0.5.0",
24
+ "@christianirack/brainllm-win32-arm64": "0.5.0"
24
25
  },
25
26
  "keywords": [
26
- "framework",
27
27
  "llm",
28
28
  "ai",
29
+ "ai-agents",
30
+ "coding-agent",
31
+ "agentic",
32
+ "claude-code",
33
+ "cursor",
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",
29
53
  "compiler",
30
54
  "rust",
31
55
  "fast",
32
- "mcp",
56
+ "performance",
57
+ "react-alternative",
58
+ "vite-alternative",
59
+ "signals",
60
+ "reactive",
61
+ "components",
62
+ "ssr",
63
+ "spa",
33
64
  "web"
34
65
  ],
35
66
  "license": "MIT",