# YARD

> A Ruby documentation tool

Source: https://talira.ai/catalog/yard-669be20p
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool, Library
- Categories: [developer tools / documentation / reference generators](https://talira.ai/categories/developer-tools/documentation/reference-generators), [languages / ruby](https://talira.ai/categories/languages/ruby)
- Licence: MIT[^2]
- Pricing: Free and open source[^2]
- Free tier: yes[^2]
- Backed by: [Loren Segal](https://talira.ai/orgs/loren-segal.md)

YARD generates API documentation for Ruby code from its comments and tags (@param, @return and the rest), and can export it in several formats. Its documentation server shows what YARD sees as you write, and can serve docs for your installed gems. Templates are easy to change, metadata can be stored beside the docs, and extensions teach it your framework's DSLs (RSpec, Sinatra and others) or add checks such as documentation coverage.

## Links

- Website: https://yardoc.org/
- GitHub: https://github.com/lsegal/yard

## Ways to install

### Package managers

- [APT](https://talira.ai/catalog/apt-d7essv0z.md): <https://packages.debian.org/stable/yard>[^1]

## Problems it solves

- generate API docs for my Ruby gem from code comments
- see how my Ruby documentation will look while I write it
- check how much of my Ruby code is documented

## Features

- tag-based Ruby API docs from comments
- live documentation server (yard server --reload)
- customisable templates and stored metadata
- extensions for framework DSLs
- serves docs for installed gems
- documentation coverage stats

## Trust

Overall: 0.58 out of 1.
Signals: maintenance 0.80, adoption 0.66, momentum 0.30, community 0.91, backing 0.30, extensibility 0.00.

- last commit 3 days ago
- 30 commits in the last 90 days
- latest release v0.9.46 3 days ago
- 2.0k GitHub stars
- 185 contributors
- accepts sponsorship (Github)
- backed by Loren Segal

## Alternatives

- [RDoc](https://talira.ai/catalog/rdoc-prd1xsh8.md): Ruby's documentation generator, with the rdoc and ri command-line tools
- [JSDoc](https://talira.ai/catalog/jsdoc-sb33nq9y.md): API documentation generator for JavaScript from comments in the code
- [Doxygen](https://talira.ai/catalog/doxygen-jhchwqz6.md): Code documentation. Automated. Free, open source, cross-platform.
- [DocFX](https://talira.ai/catalog/docfx-ghfyjykt.md): Static site generator for .NET API documentation
- [Dokka](https://talira.ai/catalog/dokka-708y2m0q.md): API documentation engine for Kotlin

## Sources

[^1]: https://deb.debian.org/debian/dists/stable/main/source/Sources.xz (checked 27 Nov 2026)
[^2]: https://github.com/lsegal/yard/blob/main/LICENSE (checked 27 Nov 2026)
