| Crates.io | blockpalettes-client |
| lib.rs | blockpalettes-client |
| version | 0.1.1 |
| created_at | 2025-10-17 23:38:23.857484+00 |
| updated_at | 2025-10-17 23:45:28.067322+00 |
| description | Unofficial Rust client for BlockPalettes with built-in HTTP and scraping support |
| homepage | |
| repository | https://github.com/walker84837/blockpalettes-client |
| max_upload_size | |
| id | 1888588 |
| size | 99,067 |
Unofficial Rust client for BlockPalettes with built-in HTTP and scraping support.
blockpalettes-client Existshttps://blockpalettes.com is great for exploring Minecraft block color palettes, but its search interface is limited:
This library solves these issues by:
Use cargo add:
cargo add blockpalettes-client
Here's a very basic example of how to use blockpalettes-client to search for blocks:
use blockpalettes_client::BlockPalettesClient;
use reqwest::Client;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let http_client = Client::new();
let client = BlockPalettesClient::new(http_client);
match client.search_blocks("stone").await {
Ok(blocks) => println!("Found blocks: {:?}", blocks),
Err(e) => eprintln!("Error searching blocks: {}", e),
}
Ok(())
}
Note: This is a minimal example. Please refer to the docs.rs documentation for the full API and more detailed usage.
Because there isn't proper documentation for the API:
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
This project is licensed under dual-licensed under the MIT License and the Apache 2.0 license, either at your choice. See the LICENSE-MIT and LICENSE-APACHE file for details.