Examples and guides for building with Opper. PRs are welcome!
| Example | Language | Description |
|---|---|---|
| media-studio | TypeScript | Click-first media generation studio — image gen across many providers via /v3/images, reference uploads + stored/shareable results via /v3/files, a structured-output "intent bar", optional Login with Opper, web UI |
| research-assistant | Python | Web search, knowledge base, structured output, streaming, image generation, tracing |
| content-analyzer | TypeScript | Parallel analysis, embeddings, knowledge base, streaming, text-to-speech, tracing |
| chatbot-openresponses | TypeScript | OpenResponses endpoint via raw fetch(), agentic tool loop, image generation, TTS, web UI |
| brainstorm-time | TypeScript | Realtime voice brainstorming — browser-direct WebSocket via ephemeral tickets, mic input, image generation, web search, live idea board |
| live-translate | TypeScript | Realtime speech-to-speech translation — browser-direct WebSocket via ephemeral tickets, model + target language locked on the ticket, live captions (Gemini 3.5 Live Translate) |
| opper-tour | TypeScript | Realtime voice tour guide that drives a server-side Playwright Chromium and streams screenshots back to the browser — pre-baked Opper site map, URL allowlist, per-session BrowserContext |
| server-tools-compare | TypeScript | Side-by-side web search: same question fanned out to Anthropic, OpenAI, and Google server-side tools through Opper compat — answer, cost, latency per provider |
| login-with-opper-web | JavaScript | OAuth login flow, token exchange, inference — Express web app with branded button |
| login-with-opper-cli | JavaScript | Device Authorization Flow for CLI apps — code-based login, polling, inference |
The SDK examples showcase the full Opper SDK v3 API surface: opper.call(), opper.stream(), opper.trace(), knowledge base operations, and more. The chatbot example demonstrates using the OpenResponses endpoint directly via fetch(); the brainstorm example demonstrates the Realtime API with bidirectional voice streaming via browser-direct WebSocket and ephemeral tickets.
Older examples targeting SDK v0.x–v1.x are available under examples/legacy/. These are no longer actively maintained but may still be useful as reference.