Cite: A tool to generate Hayagriva entries from DOI URLs

Hey everyone, I just joined the forum and wanted to show off a little project I’ve been working on and using for a few months now. It’s a CLI tool that you give a DOI URL to and it’ll use the CrossRef/ArXiv API to fetch the metadata and generate a Hayagriva entry for you!

For example, you can call it with

cite 10.5555/12345678

and it’ll return

  type: "article"
  title: "Toward a Unified Theory of High-Energy Metaphysics: Silly String Theory"
  author:
    - Carberry, Josiah
  date: "2008-02-29"
  serial-number:
    doi: "10.5555/12345678"
  parent:
    title: "Journal of Psychoceramics"
    volume: 1
    issue: 1

I’m sure it has bugs and edge cases that I just haven’t seen yet, but I’d be happy to hear feedback/ideas for it!

7 Likes