Reverse engineered prompt

Build me a tiny plain JavaScript library called EHTML that makes regular HTML pages feel dynamic without needing a build step or a big front end framework.

I want people to be able to drop in one script and then use custom HTML elements to do common things like fetch JSON from an API, submit forms without a full page refresh, render repeating lists from a template, and keep parts of the page updated live. It should feel simple and HTML first, not like a reactive app framework.

Please keep it browser friendly and easy to read, with clear examples that show real use cases like a simple blog style page and a basic chat style page. Add enough documentation so someone can understand how to use each custom element from the examples alone. If it makes sense, include a small project site or demo pages that explain the library in a friendly way.

Look up current docs or examples online if you need to match the intended EHTML behavior.

Want more depth? Deep Reverse