SDKs
Official SDKs for interacting with the Zing Protocol API. These client libraries handle authentication, transaction signing, and all API interactions behind the scenes.
Official SDKs
Node.js
Node.js
npm install @zing/sdk
import { ZingClient } from '@zing/sdk'
const client = new ZingClient({
provider: 'google', // zkLogin provider
})
await client.connect()
const articles = await client.articles.list()
Python
Python
pip install zing-sdk
from zing_sdk import ZingClient
client = ZingClient(provider='google')
client.connect()
articles = client.articles.list()
Go
Go
go get github.com/zing-protocol/zing-go
import "github.com/zing-protocol/zing-go"
client := zing.NewClient(zing.Config{Provider: "google"})
err := client.Connect()
Rust
Cargo.toml
zing-sdk = "0.1.0"
Authentication
All SDKs handle zkLogin authentication automatically:
// The SDK manages:
// 1. Ephemeral keypair generation
// 2. Nonce creation
// 3. Google OAuth flow
// 4. zkProof generation
// 5. Session persistence
await client.connect() // Handles everything
SDK Features
| Feature | Description |
|---|---|
| zkLogin | Google OAuth authentication |
| Wallet | USDC balance management |
| Articles | Content CRUD operations |
| Memberships | Subscribe/manage tiers |
| Donations | Send/receive donations |
| Knowledge Graph | Query extracted triples |
| Pay-Per-Query | AI agent micro-transactions |
Community SDKs
| Language | Package | Status |
|---|---|---|
| Ruby | zing-ruby | Community |
| PHP | zing-php | Community |
| Java | zing-java | Community |
Community SDKs are not officially supported but are welcomed contributions.
TypeScript Support
All official SDKs include TypeScript types:
import type {
Article,
Membership,
Donation,
WalletBalance,
KnowledgeTriple,
} from '@zing/sdk'
Getting Help
- Authentication - Learn about zkLogin
- Quickstart - Get started
- Platform Architecture - Technical stack