Skip to content

Add llms.txt to docs#411

Merged
necolas merged 2 commits into
mainfrom
docs/edits
Oct 8, 2025
Merged

Add llms.txt to docs#411
necolas merged 2 commits into
mainfrom
docs/edits

Conversation

@necolas

@necolas necolas commented Oct 8, 2025

Copy link
Copy Markdown
Contributor

Add an initial LLM context to help bootstrap LLM-based development. We've had success with this approach internally

@meta-cla meta-cla Bot added the cla signed label Oct 8, 2025
@github-actions

github-actions Bot commented Oct 8, 2025

Copy link
Copy Markdown

workflow: benchmarks/size

Comparison of minified (terser) and compressed (brotli) size results, measured in bytes. Smaller is better.

Results Base Patch Ratio
react-strict-dom/dist/web/index.js
· compressed 3,251 3,251 1.00
· minified 10,375 10,375 1.00
react-strict-dom/dist/web/runtime.js
· compressed 1,645 1,645 1.00
· minified 4,131 4,131 1.00
react-strict-dom/dist/native/index.js
· compressed 16,232 16,232 1.00
· minified 62,962 62,962 1.00

@github-actions

github-actions Bot commented Oct 8, 2025

Copy link
Copy Markdown

workflow: benchmarks/perf (native)

Comparison of performance test results, measured in operations per second. Larger is better.

Results Base Patch Ratio
css.create
· small 1,198,308 1,203,777 1.00 +
· small with units 542,176 527,408 0.97 -
· small with variables 714,476 686,380 0.96 -
· several small 386,382 377,739 0.98 -
· large 220,861 214,491 0.97 -
· large with polyfills 163,630 160,882 0.98 -
· complex 114,489 112,988 0.99 -
· unsupported 229,235 227,110 0.99 -
css.createTheme
· simple theme 227,445 227,877 1.00 +
· polyfill theme 217,604 219,144 1.01 +
css.props
· small 264,573 262,742 0.99 -
· small with units 215,942 215,827 1.00 -
· small with variables 128,669 128,547 1.00 -
· small with variables of units 91,918 93,263 1.01 +
· large 116,145 115,490 0.99 -
· large with polyfills 47,064 46,955 1.00 -
· complex 26,365 26,013 0.99 -
· unsupported 163,746 163,501 1.00 -
· simple merge 178,794 178,907 1.00 +
· wide merge 19,625 19,404 0.99 -
· deep merge 19,168 19,098 1.00 -
· themed merge 37,518 37,511 1.00 -

@necolas necolas merged commit 8df85d7 into main Oct 8, 2025
8 checks passed
@joaqo

joaqo commented Jan 17, 2026

Copy link
Copy Markdown
Contributor

@necolas Would you consider having this file also be sent alongside the rsd npm node module? I added the link to llms.txt you show in your docs to my claude code skills, and it works great, but it occurred to me this approach has 2 disadvantages:

  • Possible version missmatch, the llms doc in https://facebook.github.io/react-strict-dom/llms.txt I assume will point to the latest version of rsd, but the one I have locally installed, and that claude should code for, may be older. Having it be tied to my installed node package would ensure they always match.
  • It would be a bit faster, being a local file and all.

The implementation user side would be simple, I could just tell my claude code skill to learn how to use rsd by looking at node_modules/react-strict-dom/blah/blah/llms.txt.

@necolas

necolas commented Jan 17, 2026

Copy link
Copy Markdown
Contributor Author

Yes for sure, I think we should add a skill to the npm package. I've been advocating for React to ship skills in the npm package too - help with migrations and use modern patterns instead of whatever is the default tendency of LLMs

@joaqo

joaqo commented Jan 18, 2026

Copy link
Copy Markdown
Contributor

Thats great! I'm absolutely in love with rsd btw, moving our stack to it atm, thanks for finally solving rn + web 👏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants