kapable-sdk (0.1.0)
Published 2026-05-20 10:34:28 +00:00 by kapable
Installation
[registries.forgejo]
index = "sparse+ " # Sparse index
# index = " " # Git
[net]
git-fetch-with-cli = truecargo add kapable-sdk@0.1.0 --registry forgejoAbout this package
Typed Rust SDK for the Kapable v2 platform API
kapable-sdk
Typed Rust SDK for the Kapable v2 platform API.
Install
[dependencies]
kapable-sdk = { registry = "kapable", version = "0.1" }
Quick start
use kapable_sdk::KapableClient;
#[tokio::main]
async fn main() -> Result<(), kapable_sdk::KapableError> {
let client = KapableClient::new("https://api.kapable.dev")
.api_key("my-api-key")
.build();
let stories = client.board().list_stories(Default::default()).await?;
println!("Found {} stories (total {})", stories.data.len(), stories.total);
Ok(())
}
Modules
| Module | Methods | Description |
|---|---|---|
auth |
38 | Login, signup, orgs, members, API keys, apps, deployments |
board |
22 | Stories, sprints, plans, products, comments, closures |
comms |
30 | Agents, mailboxes, rooms, messages, email |
data |
12 | Tables CRUD, rows CRUD, search, bulk operations |
knowledge |
30 | Claims, predicates, perspectives, entities, tensions |
store |
8 | Buckets, objects, presigned URLs |
Auth
Two authentication methods:
// API key (x-api-key header)
let client = KapableClient::new("https://api.kapable.dev")
.api_key("sk_live_...")
.build();
// Bearer token (JWT)
let client = KapableClient::new("https://api.kapable.dev")
.token("eyJ...")
.build();
License
MIT
Dependencies
| ID | Version |
|---|---|
| chrono | ^0.4 |
| reqwest | ^0.12 |
| serde | ^1 |
| serde_json | ^1 |
| thiserror | ^2 |
| tokio | ^1 |
| url | ^2 |
| uuid | ^1 |
| tokio | ^1 |
| wiremock | ^0.6 |