What are Cookbooks?
Cookbooks are complete, runnable examples that show:- How to integrate OISP Sensor with specific frameworks/tools
- Expected event output
- Common patterns and configurations
- Best practices
- ✅ Complete source code
- ✅ Docker Compose setup
- ✅ Step-by-step instructions
- ✅ Expected events with validation
- ✅ CI-tested and working
Repository
All cookbooks live in: github.com/oximyhq/oisp-cookbookQuick Start
Categories
Python Examples
| Cookbook | Description | Use Case |
|---|---|---|
| OpenAI Simple | Basic chat completion | Getting started |
| LiteLLM | Multi-provider abstraction | Provider flexibility |
| LangChain Agent | Agent with tool calls | Agent workflows |
| FastAPI Service | API service with AI | Production APIs |
Node.js Examples
| Cookbook | Description | Use Case |
|---|---|---|
| OpenAI Simple | TypeScript chat app | Node.js integration |
Self-Hosted
| Cookbook | Description | Use Case |
|---|---|---|
| n8n | n8n workflow automation | No-code AI workflows |
Multi-Process
| Cookbook | Description | Use Case |
|---|---|---|
| Python Celery | Distributed workers | Background job processing |
Kubernetes
| Cookbook | Description | Use Case |
|---|---|---|
| DaemonSet | Cluster-wide monitoring | K8s deployments |
Edge Cases
| Cookbook | Description | Use Case |
|---|---|---|
| NVM Node.js | Static OpenSSL handling | NVM environments |
| pyenv Python | Static OpenSSL handling | pyenv environments |
Anatomy of a Cookbook
Each cookbook follows this structure:Running a Cookbook
With Docker Compose (Recommended)
Without Docker
Validating Events
Each cookbook includes expected event validation:expected-events.json:
CI Testing
All cookbooks are tested in CI:- Nightly builds - Run all cookbooks every night
- On sensor release - Validate compatibility with new versions
- Pull requests - Test cookbook changes
Contributing
Want to add a cookbook?- Fork oisp-cookbook
- Create your cookbook following the structure
- Add
expected-events.json - Add
test.shfor CI - Submit a pull request
Common Patterns
Pattern 1: Development Monitoring
Pattern 2: Production API
See FastAPI Service for production patterns:- Health checks
- Structured logging
- Error handling
- Metrics export
Pattern 3: Agent Workflows
See LangChain Agent for:- Tool call tracing
- Multi-turn conversations
- Agentic patterns
Next Steps
- Python OpenAI Simple - Start here
- Browse all cookbooks - See all examples
- Platform guides - Installation and setup