Рет қаралды 3,559
HTMX is a new javascript framework that uses HTML instead of JSON for data transmission. The HTML is rendered on the client and just inserted into the DOM. HTMX-AI is an Extension for HTMX that allows you to create AI generated webdesigns by just providing a prompt on the HTML Element.
You can see the demo website here: htmx-ai.buffer...
The Source Code of the HTMX-AI extension can be found on github: github.com/buf...
Most modern Frontend Web Applications use Frameworks like React, Vue or Svelte to render the Elements inside a DOM. They use structured JSON Data from a Server and render User Interfaces based on that data. HTMX uses a different approach by fetching already rendered HTML Code from the Server. HTMX only updates the DOM with the HTML sent by the Backend Server. The HMX-AI Extension now acts as a backend server and sends HTML over the wire but instead of using a templating engine, the server will use AI to generate the HTML Code. The AI is based on ChatGPT by OpenAI and uses prompt engineering with custom system and user prompts to get exactly the output that we need. The project is open source and all you need to do is add your own OpenAI key to the project to get started. Thankfully Microsoft provides free credits for startups so you can try out the demo.
Under the hood HTMX-AI uses the Framework Tailwind CSS to create beautiful webdesigns based on the provided prompt. It is easy to iterate the different versions of the webdesign by just letting AI regenerate the section based on the provided prompt.
Music from #Uppbeat (free for Creators!):
uppbeat.io/t/a...
License code: XH6QVE0NQXQVZVYJ