main
md 22 lines 687 Bytes
Rendered Raw
1 # sigit-si-api
2
3 A typed Rust client for the [sigit.si](https://sigit.si) JSON API. Used by the
4 `si` CLI (`crates/cli` in this workspace) and usable standalone by any Rust
5 project — the desktop app included.
6
7 ```rust
8 use sigit_si_api::{Client, Environment};
9
10 let client = Client::new(Environment::Production)?.with_token(token);
11 let me = client.user().await?;
12 let repos = client.repos().await?;
13 ```
14
15 See the crate-level docs (`cargo doc --open -p sigit-si-api`) for the full
16 surface: accounts, repositories, webhooks, Cloud Sessions, billing, and
17 issues/pull requests/code search (served over an internal MCP JSON-RPC
18 bridge).
19
20 ## Disclaimer
21
22 All em dashes are written by Seto Elkahfi.