ollama/ollama
Dependencies
Direct Go module dependencies, grouped by purpose. Source of truth is go.mod. Indirect dependencies are omitted.
HTTP and CLI
| Module | Used for |
|---|---|
github.com/gin-gonic/gin |
The daemon's HTTP server. |
github.com/gin-contrib/cors |
CORS middleware. |
github.com/gin-contrib/sse |
Server-sent events for OpenAI compat. |
github.com/spf13/cobra |
CLI command tree. |
github.com/spf13/pflag |
(transitively) cobra's flag library. |
TUI / interactive
| Module | Used for |
|---|---|
github.com/charmbracelet/bubbletea |
Selectors, sign-in, confirm flows in cmd/tui/. |
github.com/charmbracelet/lipgloss |
Styling. |
github.com/charmbracelet/x/ansi, cellbuf, term |
bubbletea internals. |
github.com/containerd/console |
Terminal control for ollama run. |
github.com/mattn/go-runewidth |
Unicode-aware width calculations. |
github.com/mattn/go-isatty |
TTY detection. |
github.com/olekukonko/tablewriter |
ollama list / ollama ps tables. |
github.com/pkg/browser |
Open the sign-in URL. |
golang.org/x/term |
Raw-mode terminal. |
Concurrency / utilities
| Module | Used for |
|---|---|
golang.org/x/sync |
errgroup, semaphore. |
github.com/google/go-cmp |
Test diffs. |
github.com/google/uuid |
UUIDs. |
github.com/stretchr/testify |
Test assertions. |
github.com/wk8/go-ordered-map/v2 |
Deterministic JSON order. |
github.com/emirpasic/gods/v2 |
Generic data structures. |
github.com/agnivade/levenshtein |
Suggest model names on misspelling. |
github.com/dlclark/regexp2 |
Tokenizer regex with .NET semantics. |
Crypto / SSH
| Module | Used for |
|---|---|
golang.org/x/crypto (ssh) |
SSH key generation and request signing in auth/. |
crypto/ed25519 (stdlib) |
Key type used. |
Tensor / model
| Module | Used for |
|---|---|
github.com/x448/float16 |
float16 arithmetic in ml/. |
github.com/d4l3k/go-bfloat16 |
bfloat16 conversion. |
gonum.org/v1/gonum |
General-purpose math. |
github.com/pdevine/tensor |
Tensor manipulation in conversions. |
github.com/chewxy/hm, chewxy/math32 |
(transitively) tensor helpers. |
github.com/nlpodyssey/gopickle |
Pickle parser for torch checkpoints in convert/. |
github.com/google/flatbuffers |
(transitively) flatbuffer support. |
github.com/klauspost/compress |
Decompression for downloads. |
github.com/golang/protobuf, google.golang.org/protobuf |
sentencepiece protobuf. |
Tree-sitter
| Module | Used for |
|---|---|
github.com/tree-sitter/go-tree-sitter |
Code-aware parsing. |
github.com/tree-sitter/tree-sitter-cpp |
C++ grammar (used by some parsers). |
Image / PDF / Markdown
| Module | Used for |
|---|---|
golang.org/x/image (webp) |
WebP support for vision models in server/routes.go. |
github.com/ledongthuc/pdf |
PDF input handling. |
github.com/gabriel-vasile/mimetype |
Detect input MIME type. |
SQLite
| Module | Used for |
|---|---|
github.com/mattn/go-sqlite3 |
Local SQLite database (used by experimental flows). |
TypeScript codegen
| Module | Used for |
|---|---|
github.com/tkrajina/typescriptify-golang-structs |
Generate TypeScript bindings for api/types.go. |
Standard-library workhorses
These aren't Go modules but are worth listing because they show up across the codebase: log/slog (logs), net/http (every HTTP-touching package), encoding/json, os/exec (runner subprocess), crypto/sha256 (digests), text/template (chat templates).
Built by Factory AutoWiki from public repository content. It is a generated preview for codebase exploration, not source-maintained documentation.