A web-based Ollama model management application developed with OpenSilver.
This project also includes a WPF desktop version migrated from the OpenSilver version, allowing developers to compare and learn from the development experience across both platforms.
- Screenshots
- Key Features
- Project Structure
- Tech Stack
- Server Architecture
- Getting Started
- Development Roadmap
- Contributing
- License
- Notes
Manage Ollama models easily with an intuitive interface and chat with them in real-time.
Main Interface | Chat Interface |
---|---|
![]() |
![]() |
- View installed model list
- Start/stop models
- Real-time chat
- Model status monitoring
src/
├── client-opensilver/ # OpenSilver web client
├── client-wpf/ # WPF desktop client
└── server-minimalapi/ # Shared backend server
- Web Client: OpenSilver (.NET Standard 2.0)
- Desktop Client: WPF (.NET 9.0)
- Backend: ASP.NET Core Minimal API (.NET 9.0)
- Real-time Communication: SignalR
- GET
/api/models
- Retrieve installed models list and status - POST
/api/models/{modelName}/start
- Start model - POST
/api/models/{modelName}/stop
- Stop model - POST
/api/chat
- Chat with model
The backend server manages models using the Ollama API:
http://localhost:11434/api/tags
- Installed models listhttp://localhost:11434/api/ps
- Check running modelshttp://localhost:11434/api/generate
- Model load/unload and chat
- Real-time model status updates via SignalR Hub
- Background service for detecting model status changes
- Ollama: Install from ollama.com
- Model Installation: Example: run
ollama pull llama3.2
- Visual Studio 2022
- .NET 9.0 SDK
- WASM Tools:
dotnet workload install wasm-tools
- OpenSilver SDK: Download
OpenSilver_SDK_v3.2.0.4.vsix
from www.opensilver.net and install
First, run the backend server:
cd src/server-minimalapi/LocalLLMServer
dotnet run --launch-profile https
The server will run at https://localhost:7262
.
cd src/client-opensilver/OllamaHub.Browser
dotnet run
Access via browser at http://localhost:55592
You can also run the WPF version using the same server:
cd src/client-wpf/OllamaHub
dotnet run
- Model list retrieval
- Model control (start/stop)
- Real-time chat
- Model downloads
- Model deletion
- Multi-session chat
- Performance monitoring
- Fork the repository
- Create a feature branch
- Commit your changes
- Create a Pull Request
MIT License
- This is an excellent example for verifying code compatibility between WPF and OpenSilver
- OpenSilver is based on .NET Standard 2.0 and provides a WPF-like development experience on the web