# Modark
[](https://opensource.org/licenses/MPL-2.0)
This is a simple library crate for interfacing with Mod Archive to grab module metadata that's forked from [Trackermeta, based on 0.5.x](https://github.com/vivyir/trackermeta). It was mainly made for a Discord bot (whose source code is not public currently)
You'll have to [request an API key from the Mod Archive forums](https://modarchive.org/forums/index.php?topic=1950.0) before you attempt to use this crate, the functions also expect the key to be a string slice reference (can be through any method, like using an environment variable.)
Please be sure to donate to [the Mod Archive's hosting fund](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=28NK9DJQRRNGJ) if you use this for any significant amount of time!
## Examples
Check out the [examples](examples) directory on the github repo for all examples using the library!
## Features
### Simplicity
One of the features is how simple using the library is, there is one struct,
`ModInfo`, and two functions on top of that, `get()` and `resolve_filename()`,
they get a module by their id or search for a string, respectively.
(please check documentation for more info)
### ~~Infinity retry~~
~~This feature basically enables you to make the library retry infinitely
(http requests) regardless of errors until Modarchive gives in~~
(removed)