cooklang-import
A tool to import recipes into Cooklang format using AI-powered conversion. Hosted version runs via https://cook.md
Features
- Multi-provider AI support: OpenAI, Anthropic Claude, Azure OpenAI, Google Gemini, and Ollama
- Automatic fallback: Seamlessly switch between providers on failure
- Smart extraction: JSON-LD, MicroData, HTML class extractors, and LLM fallback
- Multiple input types: URLs, plain text, and images (via OCR)
- Local AI support: Run completely offline with Ollama
See architecture.md for system design.
Installation
CLI
Rust Library
[]
= "0.8.6"
See docs/api-rust.md for library usage.
Mobile SDKs
- iOS (Swift) - Swift Package Manager or manual installation
- Android (Kotlin) - GitHub Packages (Maven) or manual installation
Quick Start
Set your API key:
The tool works immediately with OpenAI's GPT-4.1-mini model.
Usage
URL to Cooklang
URL to Recipe (Extract Only)
Text to Cooklang
Image to Cooklang
Requires GOOGLE_API_KEY for OCR.
Options
Configuration
Basic (config.toml)
= "openai"
[]
= true
= "gpt-4.1-mini"
[]
= true
= "claude-sonnet-4.5"
[]
= true
= ["openai", "anthropic"]
See docs/providers.md for all provider options.
Configuration Priority
- Environment variables (e.g.,
OPENAI_API_KEY) config.tomlfile- Default values
Documentation
| Document | Description |
|---|---|
| architecture.md | System design and project structure |
| docs/providers.md | AI provider configuration |
| docs/api-rust.md | Rust library API |
| docs/sdk-ios.md | iOS/Swift SDK |
| docs/sdk-android.md | Android/Kotlin SDK |
| docs/troubleshooting.md | Common issues and solutions |
Development
RUST_LOG=debug