internet-court/internet-court-skill / vendored/sendaifun/switchboard
switchboard
VerifiedComplete Switchboard Oracle Protocol SDK for Solana - the permissionless oracle solution for price feeds, on-demand data, VRF randomness, and real-time streaming via Surge. Covers TypeScript SDK, Rust integration, Oracle Quotes, and all Switchboard tools.
| File | Kind | Size |
|---|---|---|
| LICENSE | other | 11.1 KB |
| SKILL.md | skill md | 11.5 KB |
| docs/troubleshooting.md | markdown | 8.9 KB |
| examples/feeds/oracle-quote.ts | script | 6.1 KB |
| examples/feeds/pull-feed.ts | script | 5.9 KB |
| examples/feeds/read-feed.ts | script | 6.7 KB |
| examples/randomness/vrf-example.ts | script | 9.1 KB |
| examples/setup/example.ts | script | 5.9 KB |
| examples/surge/streaming.ts | script | 7.4 KB |
| resources/github-repos.md | markdown | 3.5 KB |
| resources/program-ids.md | markdown | 3.9 KB |
| resources/rust-reference.md | markdown | 8.9 KB |
| resources/sdk-reference.md | markdown | 7.7 KB |
| templates/setup.ts | script | 11.8 KB |
resources/github-repos.md
View on GitHub# Switchboard GitHub Repositories
Official repositories for Switchboard Oracle Protocol.
## Core Repositories
### Main Repository
| Repository | Description | Language |
|------------|-------------|----------|
| [switchboard-sdk](https://github.com/switchboard-xyz/switchboard-sdk) | Public mirror of Switchboard SDKs | TypeScript, Rust |
Contains:
- `@switchboard-xyz/cli` - Command-line interface
- `@switchboard-xyz/common` - Shared types and utilities
- `@switchboard-xyz/oracle` - Oracle wrapper
---
## SDKs
### TypeScript SDK
| Repository | Description | Package |
|------------|-------------|---------|
| [on-demand](https://github.com/switchboard-xyz/on-demand) | Solana On-Demand SDK | `@switchboard-xyz/on-demand` |
**Installation:**
```bash
npm install @switchboard-xyz/on-demand @switchboard-xyz/common
```
### Rust SDK
| Repository | Description | Crate |
|------------|-------------|-------|
| [solana-sdk](https://github.com/switchboard-xyz/solana-sdk) | Rust client for Solana | `switchboard-on-demand` |
**Installation:**
```toml
[dependencies]
switchboard-on-demand = "0.8.0"
```
---
## Examples
### Primary Examples Repository
| Repository | Description |
|------------|-------------|
| [sb-on-demand-examples](https://github.com/switchboard-xyz/sb-on-demand-examples) | Complete integration examples |
**Structure:**
```
sb-on-demand-examples/solana/
├── feeds/
│ ├── basic/ # Anchor framework examples
│ └── advanced/ # Pinocchio framework (optimized)
├── randomness/
│ ├── coin-flip/ # VRF coin flip game
│ └── pancake-stacker/# VRF stacking game
├── prediction-market/ # Kalshi integration
├── x402/ # Paywalled data
└── surge/ # WebSocket streaming
```
---
## Documentation
| Repository | Description | URL |
|------------|-------------|-----|
| [gitbook-on-demand](https://github.com/switchboard-xyz/gitbook-on-demand) | Documentation source | docs.switchboard.xyz |
---
## Infrastructure
| Repository | Description |
|------------|-------------|
| [infra-external](https://github.com/switchboard-xyz/infra-external) | Infrastructure configuration |
| [trustee](https://github.com/switchboard-xyz/trustee) | Attestation and secrets |
---
## Getting Started
### Clone Examples
```bash
# Clone examples repository
git clone https://github.com/switchboard-xyz/sb-on-demand-examples.git
cd sb-on-demand-examples
# Navigate to Solana examples
cd solana
# Install dependencies
bun install
# or
npm install
# Run basic feed example
cd feeds/basic
npm run start
```
### Clone SDK
```bash
# TypeScript SDK
git clone https://github.com/switchboard-xyz/on-demand.git
cd on-demand
npm install
# Rust SDK
git clone https://github.com/switchboard-xyz/solana-sdk.git
cd solana-sdk
cargo build
```
---
## Documentation Resources
| Resource | URL |
|----------|-----|
| Official Docs | https://docs.switchboard.xyz |
| Rustdoc | https://docs.rs/switchboard-on-demand |
| Feed Builder | https://ondemand.switchboard.xyz |
---
## Community
| Platform | Link |
|----------|------|
| Discord | https://discord.gg/TJAv6ZYvPC |
| Twitter | https://twitter.com/switchboardxyz |
---
## Quick Links
### For Solana Developers
1. **Start Here**: [sb-on-demand-examples/solana](https://github.com/switchboard-xyz/sb-on-demand-examples/tree/main/solana)
2. **TypeScript SDK**: [@switchboard-xyz/on-demand](https://github.com/switchboard-xyz/on-demand)
3. **Rust SDK**: [switchboard-on-demand](https://github.com/switchboard-xyz/solana-sdk)
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementation | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirements | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |