moondream

Crates.iomoondream
lib.rsmoondream
version0.1.1
created_at2025-06-15 12:30:37.542852+00
updated_at2025-06-15 12:34:05.828456+00
descriptionClient for interacting with the Moondream API
homepagehttps://github.com/jbernavaprah/moondream-ai-rs
repositoryhttps://github.com/jbernavaprah/moondream-ai-rs
max_upload_size
id1713227
size100,136
Jure - Bernava Prah (jBernavaPrah)

documentation

README

Moondream

An async Rust client for the Moondream API.

This library wraps the HTTP endpoints exposed by the service, providing a simple interface for point detection, object detection, captioning and visual question answering.

Usage

Add the crate to your Cargo.toml:

moondream = "0.1"

Instantiate the client

For a local deployment:

use moondream::MoonDream;

let md = MoonDream::local("http://localhost:8000");

For the hosted service:

let md = MoonDream::remote("YOUR_TOKEN");

Examples

The examples directory contains runnable samples. Execute one with:

cargo run -p moondream --example points

Features

  • /point - detect objects and return centre points
  • /detect - bounding box detection
  • /caption - generate captions for images
  • /query - visual question answering

Testing

cargo test -p moondream
Commit count: 6

cargo fmt