☰ Menu
Home›Command-line Tools›hayagriva
CLI Open source 8 installs/mo

hayagriva for Mac

hayagriva

Rusty bibliography management.

hayagriva — overview

Rusty bibliography management.

Hayagriva is a tool that can help you or your apps deal with literature and other media. Its features include: Data structures for literature collections Reading and writing said collections from YAML files Formatting literature into reference list entries and in-text citations as defined by popular style guides Interoperability with BibTeX Querying your literature items by type and available metadata

Hayagriva can be used both as a library and as a Command Line Interface (CLI). Skip to the section "Usage" for more information about usage in your application or to the section "Installation" to learn about how to install and use Hayagriva on your terminal.

Supported styles

Hayagriva supports all styles provided in the official Citation Style Language repository, currently over 2,600.

Usage

To format entries, you need to wrap them in a CitationRequest. Each of these can reference multiple entries in their respective CitationItems. Use these with a BibliographyDriver to obtain formatted citations and bibliographies.

You can either supply your own CSL files or choose from about 100 bundled citation styles using the archive feature.

If the default features are enabled, Hayagriva supports BibTeX and BibLaTeX bibliographies. You can use io::from_biblatex_str to parse such bibliographies.

Should you need more manual control, the library's native Entry struct also offers an implementation of the From-Trait. You will need to depend on the biblatex crate to obtain its Entry. Therefore, you could also use your BibLaTeX content like this:

If you do not need BibLaTeX compatibility, you can use Hayagriva without the default features by writing this in your Cargo.toml:

Selectors

Hayagriva uses a custom selector language that enables you to filter bibliographies by type of media. For more information about selectors, refer to the selectors.md file. While you can parse user-defined selectors using the function Selector::parse, you may instead want to use the selector macro to avoid the run time cost of parsing a selector when working with constant selectors.

There are two ways to check if a selector matches an entry. You should use [Selector::matches] if you just want to know if an item matches a selector and [Selector::apply] to continue to work with the data from parents of a matching entry. Keep in mind that the latter function will return Some even if no sub-entry was bound / if the hash map is empty.

Installation

Run this in your terminal:

Cargo will install the Hayagriva Command Line Interface for you. Now, you just need a Hayagriva YAML literature file or a Bib(La)TeX file to get started. The Hayagriva YAML file is intuitive to write and can represent a wealth of media types, learn how to write one in its dedicated documentation.

Suppose you have this file saved as literature.yaml in your current working directory:

Details

参考文献管理工具

How to install hayagriva

  1. Open Terminal (press ⌘ + Space and type “Terminal”).
  2. If Homebrew is not installed yet, run the command below first.
  3. Run this command:

Latest 10 releases

Last updated 2026-06-14; current version v0.10.1, with the latest 10 releases listed.

VersionReleasedTypeSizemacOSWindowsLinux
v0.10.12026-06-14Stable————
v0.10.02026-06-05Stable————
v0.9.12025-09-26Stable————
v0.9.02025-09-25Stable————
v0.8.12025-02-05Stable————
v0.8.02024-10-15Stable————
v0.7.02024-10-03Stable————
v0.6.02024-10-02Stable————
v0.5.32024-05-16Stable————
v0.5.22024-03-07Stable————

Data from GitHub Releases; stable releases first, each group sorted newest first.

Prebuilt bottle platforms

Official Homebrew bottles cover:

  • Apple silicon · latest macOS
  • Apple silicon · macOS 26 Tahoe
  • Apple silicon · macOS 15 Sequoia
  • Apple silicon · macOS 14 Sonoma
  • Intel · macOS 14 Sonoma
  • Linux · ARM64
  • Linux · x86_64

Compared with similar apps

Only public metadata is compared, with no subjective recommendation; see the compare pages for field-by-field comparisons.

Compared with similar apps
AppVersionLicenseArchitecture30-day installs
hayagrivav0.10.1Apache-2.0 OR MITCLI8
bibclean3.07GPL-2.0-or-laterCLI17
papis0.16.1GPL-3.0-or-laterCLI33
bibutils7.2GPL-2.0-onlyCLI1

Similar apps: Command-line Tools

Leave a comment

评论表单加载中…