angristan / ollama-chat-go-htmx-ws

Just a little PoC of a chat app running an LLM locally on Ollama. Just an excuse to have fun with websockets, htmx and Go.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ollama Chat

Just a little PoC of a chat app running an LLM locally on Ollama. Just an excuse to have fun with websockets, htmx and Go.

Using:

  • The Ollama Chat API
  • htmx for the frontend interactions
  • Go's text/template for the HTML templating
  • Websocket for the realtime communication
    • The htmx WebSockets extension is used to handle the connection, send and receive messages
    • Melody for websocket handling on the backend
  • TailwindCSS for the styling
  • DiceBear for the funny avatars

About

Just a little PoC of a chat app running an LLM locally on Ollama. Just an excuse to have fun with websockets, htmx and Go.


Languages

Language:Go 62.4%Language:HTML 37.6%