{"id":31646463,"url":"https://github.com/genai-rs/langfuse-client-base","last_synced_at":"2026-03-05T09:10:55.811Z","repository":{"id":312239091,"uuid":"1046797365","full_name":"genai-rs/langfuse-client-base","owner":"genai-rs","description":"Auto-generated Rust client for Langfuse API from OpenAPI specification","archived":false,"fork":false,"pushed_at":"2026-02-24T06:39:15.000Z","size":909,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-24T13:25:36.827Z","etag":null,"topics":["api-client","langfuse","llm","observability","openapi","rust"],"latest_commit_sha":null,"homepage":"https://docs.rs/langfuse-client-base","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/genai-rs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-08-29T08:37:20.000Z","updated_at":"2026-02-24T06:37:44.000Z","dependencies_parsed_at":"2025-12-15T09:07:57.673Z","dependency_job_id":null,"html_url":"https://github.com/genai-rs/langfuse-client-base","commit_stats":null,"previous_names":["genai-rs/langfuse-client-base"],"tags_count":20,"template":false,"template_full_name":null,"purl":"pkg:github/genai-rs/langfuse-client-base","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/genai-rs%2Flangfuse-client-base","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/genai-rs%2Flangfuse-client-base/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/genai-rs%2Flangfuse-client-base/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/genai-rs%2Flangfuse-client-base/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/genai-rs","download_url":"https://codeload.github.com/genai-rs/langfuse-client-base/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/genai-rs%2Flangfuse-client-base/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30117552,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T08:19:04.902Z","status":"ssl_error","status_checked_at":"2026-03-05T08:17:37.148Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api-client","langfuse","llm","observability","openapi","rust"],"created_at":"2025-10-07T05:50:45.989Z","updated_at":"2026-03-05T09:10:55.804Z","avatar_url":"https://github.com/genai-rs.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# langfuse-client-base\n\n[![Crates.io](https://img.shields.io/crates/v/langfuse-client-base.svg)](https://crates.io/crates/langfuse-client-base)\n[![Documentation](https://docs.rs/langfuse-client-base/badge.svg)](https://docs.rs/langfuse-client-base)\n[![CI](https://github.com/genai-rs/langfuse-client-base/workflows/CI/badge.svg)](https://github.com/genai-rs/langfuse-client-base/actions)\n[![MSRV](https://img.shields.io/badge/MSRV-1.88.0-blue)](https://releases.rs/docs/1.88.0/)\n[![License](https://img.shields.io/crates/l/langfuse-client-base)](./LICENSE-MIT)\n\nAuto-generated Rust client for the [Langfuse](https://langfuse.com) API, based on the official OpenAPI specification.\n\n\u003e [!WARNING]\n\u003e **Important:** most users should use [langfuse-ergonomic](https://github.com/genai-rs/langfuse-ergonomic) instead.\n\u003e \n\u003e This is a low-level, auto-generated client intended as a building block for higher-level abstractions.\n\u003e The ergonomic wrapper provides:\n\u003e - Simplified APIs with builder patterns\n\u003e - Automatic batching and retries\n\u003e - Environment-based configuration\n\u003e - Improved error handling\n\u003e - Built-in OpenTelemetry integration\n\u003e\n\u003e **Only use this crate directly if you need:**\n\u003e - Raw access to all OpenAPI endpoints\n\u003e - Custom retry/batching logic\n\u003e - Minimal dependencies\n\n## Features\n\n- Complete API coverage from OpenAPI specification\n- Async/await support with Tokio\n- Choice of TLS backend (rustls or native-tls)\n- Strong typing with serde\n\n## Installation\n\n```toml\n[dependencies]\nlangfuse-client-base = \"*\" # See https://crates.io/crates/langfuse-client-base for latest version\n```\n\n## Usage\n\nThis crate provides low-level API bindings. Most users should use the ergonomic wrapper instead.\n\n### Basic Configuration\n\n```rust\nuse langfuse_client_base::apis::configuration::Configuration;\nuse langfuse_client_base::apis::ingestion_api;\n\nlet config = Configuration {\n    base_path: \"https://cloud.langfuse.com\".to_string(),\n    basic_auth: Some((\"your-public-key\".to_string(), Some(\"your-secret-key\".to_string()))),\n    ..Default::default()\n};\n\n// Use the API...\n```\n\n### Using Environment Variables\n\n```rust,no_run\nuse std::env;\nuse langfuse_client_base::apis::configuration::Configuration;\n\nlet config = Configuration {\n    base_path: env::var(\"LANGFUSE_HOST\").unwrap_or_else(|_| \"https://cloud.langfuse.com\".to_string()),\n    basic_auth: Some((\n        env::var(\"LANGFUSE_PUBLIC_KEY\").expect(\"LANGFUSE_PUBLIC_KEY not set\"),\n        Some(env::var(\"LANGFUSE_SECRET_KEY\").expect(\"LANGFUSE_SECRET_KEY not set\"))\n    )),\n    ..Default::default()\n};\n```\n\n### Self-Hosted Instances\n\nFor self-hosted Langfuse instances:\n\n```rust\nuse langfuse_client_base::apis::configuration::Configuration;\n\nlet config = Configuration {\n    base_path: \"https://your-domain.com/langfuse\".to_string(),  // Custom base path\n    basic_auth: Some((\"your-public-key\".to_string(), Some(\"your-secret-key\".to_string()))),\n    ..Default::default()\n};\n```\n\n## Platform Notes\n\n### TLS Backend\n\nBy default, this crate uses `rustls` for TLS, which provides:\n- A pure Rust implementation\n- Smaller binary size\n- Better cross-platform compatibility\n\nFor native TLS (OpenSSL on Linux, Schannel on Windows, Security Framework on macOS):\n\n```toml\n[dependencies]\nlangfuse-client-base = { version = \"*\", default-features = false, features = [\"native-tls\"] }\n```\n\n### Alpine Linux / musl\n\nWhen building for Alpine Linux or other musl-based systems with `native-tls`:\n\n```dockerfile\nRUN apk add --no-cache openssl-dev musl-dev\n```\n\n### Static Linking\n\nFor fully static binaries with rustls:\n\n```bash\nRUSTFLAGS=\"-C target-feature=+crt-static\" cargo build --release --target x86_64-unknown-linux-musl\n```\n\n## Generation\n\nThis client is generated from the OpenAPI specification using Docker for reproducible builds.\n\n```bash\n# Generate client (always uses Docker)\n./scripts/generate-openapi-client.sh\n\n# Update to latest OpenAPI spec and regenerate\nUPDATE_SPEC=true ./scripts/generate-openapi-client.sh\n```\n\n## License\n\nLicensed under either of:\n- Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE))\n- MIT license ([LICENSE-MIT](LICENSE-MIT))\n\n## Contributing\n\nThis is auto-generated code. To make changes, please update the generation process or contribute to the [main repository](https://github.com/genai-rs/langfuse-ergonomic).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgenai-rs%2Flangfuse-client-base","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgenai-rs%2Flangfuse-client-base","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgenai-rs%2Flangfuse-client-base/lists"}