Skip to content

opper-ai/opper-cookbook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Opper Cookbook

Examples and guides for building with Opper. PRs are welcome!

Examples (SDK v3)

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.

Legacy examples

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.

Resources

About

Code samples for opper.ai

Resources

License

Stars

5 stars

Watchers

4 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors