Expand description

mantra-miner is a library to make your software “recite” mantras while it runs.

A spoof on crypto mining, this library spawns a thread and writes the specified mantras to a buffer. The user can select the mantras as well as an optional preparation and conclusion sections that mirror the format of traditional Buddhist ritual practices.

The library was born for use with Trane as a way to allow its users to contribute back to the maintainer in a symbolic and non-monetary way. In Trane, the mantra of Tara Sarasvati - the manifestation of the Buddhist deity Tara associated with wisdom, music, learning, and the arts - is recited as the users run the software to acquire and practice complex skills.

Similar examples of using mantras in mediums other than the voice exist throughout Asia. Prayer wheels contain written mantras that are said to generate the same merit as reciting the amount of mantras inside every time the wheel completes a full rotation. With the use of microfilm, a prayer wheel can contain millions or more mantras. Another example consists of carving mantras in rock, which is common in the Himalayas and Tibet.

For more information, check the project’s README.

Structs

A mantra to be “recited” by the miner. Since a computer can’t actually recite a mantra, the term refers to the process of writing the mantra syllable by syllable to an output buffer.
A mantra miner that spawns a thread and “recites” mantras by writing them to an output buffer.
The options used to configure the mantra miner.