screenpipe_sdk_rs/
lib.rs

1//! # Screenpipe SDK for Rust
2//! 
3//! A client library for making HTTP calls to the Screenpipe localhost API.
4//! 
5//! ## Quick Start
6//! 
7//! ```
8//! use screenpipe_sdk_rs::{ScreenpipeClient, models::SearchRequest};
9//! 
10//! #[tokio::main]
11//! async fn main() -> Result<(), Box<dyn std::error::Error>> {
12//!     let client = ScreenpipeClient::new("http://localhost:3030")?;
13//!     
14//!     // Check health
15//!     let health = client.health().await?;
16//!     println!("Server status: {}", health.status);
17//!     
18//!     // Search content
19//!     let search_params = SearchRequest {
20//!         q: Some("hello world".to_string()),
21//!         limit: Some(10),
22//!         ..Default::default()
23//!     };
24//!     let results = client.search(search_params).await?;
25//!     println!("Found {} results", results.data.len());
26//!     
27//!     Ok(())
28//! }
29//! ```
30
31pub mod client;
32pub mod models;
33pub mod error;
34pub mod endpoints;
35
36pub use client::ScreenpipeClient;
37pub use error::{ScreenpipeError, Result};
38pub use models::*;
39
40// Re-export commonly used types
41pub use chrono::{DateTime, Utc};
42pub use serde_json::Value;