How qaribhaider/ollama-to-lmstudio-symlinks works
This is a cross-platform CLI for sharing model files between Ollama and LM Studio through symlinks or hard links. The principal workflow discovers models in one application, normalizes model metadata, then registers links in the other; reverse mode also creates Ollama model registration. Separate commands inspect storage savings, remove broken links, and selectively delete managed links. Relationships among the CLI and core packages are supported by the excerpts and SOURCE INDEX; command-specific details not shown in source are based on the README.
Main entry points: main.go CLI commands · linking.go Forward linking · ollama.go Ollama manifests · lmstudio.go LM Studio GGUFs
Components 15
CLI and interaction
- CLI commands
cmd/ollama-symlinks/main.go - Interactive menus
cmd/ollama-symlinks/main.go - Terminal output
internal/ui/styles.go
Model discovery
- Ollama manifests
internal/ollama/ollama.go - LM Studio GGUFs
internal/lmstudio/lmstudio.go - GGUF metadata
internal/gguf/reader.go - Model records
internal/models/models.go
Link and registration
- Forward linking
internal/linking/linking.go - Reverse registration
internal/linking/linking.go - Link primitives
internal/linking/linking.go - Ollama validation
internal/ollama/executable.go - LM Studio validation
internal/lmstudio/executable.go
Link management
- Storage status
internal/linking/status.go - Cleanup and delete
internal/linking/linking.go
Other components
- Operator
Connections 21
- Operator → CLI commands: runs
README.md - CLI commands → Interactive menus: offers menus
cmd/ollama-symlinks/main.go - Interactive menus → Terminal output: prints output
cmd/ollama-symlinks/main.go - CLI commands → Ollama manifests: discovers models
cmd/ollama-symlinks/main.go - CLI commands → LM Studio GGUFs: discovers models
cmd/ollama-symlinks/main.go - LM Studio GGUFs → GGUF metadata: inspects headers
internal/lmstudio/lmstudio.go - Ollama manifests → Model records: creates records
internal/ollama/ollama.go - LM Studio GGUFs → Model records: creates records
internal/lmstudio/lmstudio.go - CLI commands → Forward linking: runs forward mode
README.md - CLI commands → Reverse registration: runs reverse mode
README.md - Forward linking → Link primitives: creates links
internal/linking/linking.go - Reverse registration → Link primitives: links blobs
internal/linking/linking.go - Forward linking → Ollama manifests: uses model data
internal/linking/linking.go - Reverse registration → Ollama manifests: resolves executable
internal/linking/linking.go - CLI commands → Ollama validation: validates installation
- CLI commands → LM Studio validation: validates installation
- CLI commands → Storage status: shows status
README.md - CLI commands → Cleanup and delete: runs maintenance
README.md - Cleanup and delete → Link primitives: removes links
internal/linking/linking.go - Forward linking → Terminal output: reports results
internal/linking/linking.go - Reverse registration → Terminal output: reports results
internal/linking/linking.go