# solargraph を Homebrew, Nix でインストール

solargraph のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:solargraph
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install solargraph
```

  証拠: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#solargraph
```

  証拠: nixpkgs package indexes: solargraph from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

## パッケージ情報

- **パッケージキー:** brew:solargraph
- **パッケージマネージャ:** Homebrew
- **バージョン:** 0.60.2
- **ソース概要:** Ruby language server
- **ホームページ:** <https://solargraph.org>
- **リポジトリ:** <https://github.com/castwide/solargraph>
- **最終更新:** 2026-06-28T04:59:39Z
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- solargraph (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 0.60.2
## プロジェクトの歴史と使われ方

Solargraph is a Ruby language server distributed as a gem and packaged for developer environments that want Ruby autocomplete, diagnostics, inline documentation, and type-aware editor support.

### プロジェクトの歴史

The castwide/solargraph GitHub repository was created in March 2017, and RubyGems records version 0.1.0 on 2017-03-18. The gem was described early as IDE tools for code analysis and autocompletion, while the current README frames it as a Ruby language server.

Solargraph grew with the Language Server Protocol era. The README lists Visual Studio Code, Sublime Text, Vim and Neovim, Emacs, and Eclipse integrations, and the guide site describes editor integration as requiring a language client.

The project later expanded beyond autocomplete into diagnostics, inline documentation, type checking, YARD and RBS-aware code maps, Bundler-aware gem support, plugin support, and a separate documentation cache.

### 採用の歴史

RubyGems is Solargraph's primary distribution channel, with the official gem metadata pointing to solargraph.org and the GitHub source. Homebrew and Nix packages make the same CLI available to users who prefer system package managers over gem install.

Editor integration drove adoption: the official README calls the VS Code extension out directly and lists third-party integrations for several common editors, making solargraph a common bridge between Ruby projects and LSP-capable editors.

### 使われ方

Developers install the solargraph command, generate or maintain project configuration with bundle exec solargraph config, and run the server through editor integrations using stdio or TCP socket modes.

Project-local configuration lives in .solargraph.yml at the repository root, with optional global configuration at ~/.config/solargraph/config.yml. The README also documents a cache directory at ~/.cache/solargraph and Bundler-aware usage with bundle exec solargraph socket or stdio.

### パッケージ好きにとっての重要性

Solargraph matters to package nerds because it turns Ruby's dynamic runtime, gems, YARD docs, RBS signatures, Bundler context, and editor protocols into one packaged CLI service.

It also illustrates a packaging split familiar to language ecosystems: the upstream artifact is a Ruby gem, but system package managers package it so editors and shell environments can depend on a stable solargraph executable.

### タイムライン

- 2017-03: GitHub repository and RubyGems 0.1.0 release appear.
- 2017-2020s: Solargraph becomes a Ruby LSP server integrated by VS Code and other editors.
- 2019: Version 0.33.0 adds type-checking functionality, according to the README.
- 2026: RubyGems lists Solargraph 0.60.2 with Ruby 3.1+ requirements and current source metadata.

### Related projects

- Language Server Protocol: the editor integration protocol Solargraph targets.
- YARD and RBS: documentation and type-information sources Solargraph uses for code maps.
- Bundler: important for running Solargraph in the same dependency context as a Ruby project.
- vscode-solargraph, nvim-lspconfig, coc-solargraph, eglot, and lsp-mode: editor integration paths listed by the upstream README.

### ソース

- current_curation.config-file-location
- <https://api.github.com/repos/castwide/solargraph>
- <https://github.com/castwide/solargraph#readme>
- <https://rubygems.org/api/v1/gems/solargraph.json>
- <https://rubygems.org/api/v1/versions/solargraph.json>
- <https://solargraph.org/guides/getting-started>
- source_facts.package-manager


## セキュリティノート

solargraph に一致するローカルシークレット処理マニフェストは見つかりませんでした。将来の対応で安定したパッケージ URL を使えるよう、Nucleus パッケージメタデータはここに公開されています。



## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: .solargraph.yml
## 他のパッケージマネージャ記録

- Nix - solargraph: normalized package name match | nixpkgs package indexes: solargraph from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix


## Combined YAML source

View the package source record on GitHub. [combined/solargraph.yml](https://github.com/mxcl/pkgdb/blob/main/combined/solargraph.yml)


## ソース

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
