Analysis updated 2026-07-17 · repo last pushed 2026-03-13
Build a command-line chatbot in D powered by a local LLM.
Create an agent that calls local functions to answer questions before responding.
Generate embeddings from text for similarity search in a D application.
Add local AI features to desktop software without sending data to the cloud.
| kassane/ollama-d | agentzh/usdt-sample | kassane/dlang-mos-hello-world | |
|---|---|---|---|
| Stars | 5 | 5 | 2 |
| Language | D | D | D |
| Last pushed | 2026-03-13 | 2024-01-30 | 2024-05-30 |
| Maintenance | Maintained | Dormant | Dormant |
| Setup difficulty | moderate | hard | easy |
| Complexity | 3/5 | 4/5 | 3/5 |
| Audience | developer | ops devops | researcher |
Figures from each repo's GitHub metadata at analysis time.
Requires a locally running Ollama server with a downloaded model.
Ollama-d lets developers who write code in the D programming language easily connect their applications to local AI models. Ollama is a popular tool that lets you run large language models, like Meta's Llama, directly on your own computer rather than relying on a cloud service. This project provides a bridge so D programs can talk to Ollama, enabling features like text generation, multi-turn chat, and image analysis without leaving the D ecosystem. At a high level, the library sends standard web requests to a locally running Ollama server and handles the responses. You create a client connection, pick a model you have downloaded, and send it a prompt or a conversation history. The library takes care of formatting the request and parsing the reply. It supports advanced capabilities like forcing the AI to reply in structured JSON, generating embeddings (turning text into numbers for similarity searches), and an "agentic" loop where the AI can call local functions you define to gather information before giving a final answer. This is useful for a developer building desktop software, internal tools, or any application in D that wants AI features without sending data to external servers. For example, a developer could use it to build an interactive command-line chatbot, a code generator that writes snippets to a file, or an automated agent that uses local tools to answer math questions or fetch data. It also includes endpoints compatible with OpenAI's API format, making it easier to swap out a cloud service for a local model. A notable aspect of the project is that it has zero external dependencies, relying only on the standard D library for web requests and JSON handling. This makes it lightweight to add to existing projects. The included sample programs demonstrate practical use cases, and it comes with a built-in test suite so developers can verify everything works correctly.
A dependency-free D language library that connects your D programs to a local Ollama server for chat, text generation, and image analysis with AI models.
Mainly D. The stack also includes D.
Maintained — commit in last 6 months (last push 2026-03-13).
Setup difficulty is rated moderate, with roughly 30min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.