Skip to content

HTML UI for Ollama. Minimal & responsive UI: mobile & desktop. Cross-browser support. Simple installation: host on your own server, run in your browser.

License

Notifications You must be signed in to change notification settings

christianhellsten/ollama-html-ui

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

45a2cd2 · Dec 22, 2023

History

30 Commits
Dec 22, 2023
Dec 22, 2023
Dec 22, 2023
Dec 11, 2023
Dec 22, 2023
Dec 22, 2023
Dec 22, 2023
Dec 10, 2023
Dec 10, 2023
Dec 22, 2023
Dec 22, 2023
Dec 22, 2023
Dec 22, 2023

Repository files navigation

ollama-html-ui

cover

Contributions Welcome

A HTML UI for Ollama.

Goals

  • Zero dependencies: vanilla HTML, CSS, and Javascript
  • Simple installation: download and open in browser

Features

  • https://ollama.ai support
  • New chat
  • Edit chat
  • Delete chat
  • Download chat
  • Copy chat
  • Search chats
  • Clear chats
  • View settings
  • Update settings
  • Chat history (local storage)

Screenshots

Main screen Settings screen Search

Installing

First, install and start Olama.

$ ollama run mistral

Next, clone this repository:

$ git clone [email protected]:christianhellsten/ollama-html-ui.git

Running

$ cd ollama-html-ui
# Use built-in and unsafe HTTP server
$ npm run server
$ open http://locahost:1234

Deployment

$ parcel build index.html

Development

$ yarn global add parcel-bundler
# Alternatively, use npm:
# npm install -g parcel-bundler
$ parcel index.html
$ open http://locahost:1234

Testing

Tests are written using Playwright and node:test.

The the tests can be run from the command line using this command:

$ ollama run mistral
$ node test

Todo

  • Clear chat
  • Ollama Chat API
  • Select model in sidebar (global)
  • Select model in chat (local)
  • Delete message and response
  • Copy message / response
  • CSP
  • Speech recognition
  • Uploads
  • IndexedDB

Done

  • Search chats
  • Delete Chat
  • Select model
  • Save settings
  • View settings
  • Clear chats
  • Edit chat
  • New chat
  • Abort response
  • Send message
  • UI tests: https://nodejs.org/api/test.html

About

HTML UI for Ollama. Minimal & responsive UI: mobile & desktop. Cross-browser support. Simple installation: host on your own server, run in your browser.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published