To install dependencies:
bun install
To run:
bun run src/index.ts
This is a proof of concept of what htmx is possible of.
htmx is a javascript library that allows you to use HTML attributes to make AJAX requests. It is a very lightweight library that allows you to make your web applications more dynamic without having to write a lot of javascript.
For example, if you want to make a button that makes an AJAX request to a server, you can do this:
<button hx-get="/api/endpoint">Click me!</button>
This will make a GET request to /api/endpoint
and replace the contents of the button with the response from the server.