| Crates.io | laibrary |
| lib.rs | laibrary |
| version | 0.1.1 |
| created_at | 2025-01-21 16:41:38.836082+00 |
| updated_at | 2025-01-21 17:58:24.157556+00 |
| description | Provides AI coding assistants with public APIs and documentation from dependencies. |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1525086 |
| size | 147,258 |
laibrary extracts public API documentation from a library and outputs it in an LLM-friendly format. The endgame is to provide AI coding agents with all the context they need to use a particular dependency, but for now you can just use it manually on the CLI.
This project was inspired by Aider's repository map.
To extract the documentation from a library, pass the name of the language and the path to the library. For example:
laibrary rust /path/to/library
use laibrary::generate_documentation;
use std::path::Path;
let path = Path::new("/path/to/crate");
match generate_documentation("rust", &path) {
Ok(output) => println!("{}", output),
Err(e) => eprintln!("Error: {}", e),
}