Using Agentation in non-React (vanilla) projects via CDN #166
jameslcowan
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've been using Agentation with a vanilla PHP/HTML/CSS project (no React, no build tools) and got it working well. Thought I'd share the approach in case it's useful to others or worth documenting.
The trick is loading React + Agentation from esm.sh with an alias to avoid dual React instances:
With
reactComponents: false, it reports vanilla selectors, computed styles, and tag names instead of React component trees. The MCP integration works too, so annotations flow straight to coding agents without copy/paste.I included this as a dev-only
<script type="module">in my layout template. Works with the toolbar, hover highlights, annotation popups, settings panel, and the full MCP round-trip.Would you be open to a small PR adding a "Vanilla / Non-React" section to the README and maybe an
examples/vanilla/folder? No source changes, just docs.Beta Was this translation helpful? Give feedback.
All reactions