| Crates.io | cooklang-import |
| lib.rs | cooklang-import |
| version | 0.8.8 |
| created_at | 2024-12-25 11:50:46.781946+00 |
| updated_at | 2025-12-16 17:22:09.015457+00 |
| description | A tool for importing recipes into Cooklang format |
| homepage | https://github.com/cooklang/cooklang-import |
| repository | https://github.com/cooklang/cooklang-import |
| max_upload_size | |
| id | 1494935 |
| size | 514,111 |
A tool to import recipes into Cooklang format using AI-powered conversion.
See architecture.md for system design.
git clone https://github.com/cooklang/cooklang-import
cd cooklang-import
cargo install --path .
[dependencies]
cooklang-import = "0.8.6"
See docs/api-rust.md for library usage.
Set your API key:
export OPENAI_API_KEY="your-api-key-here"
The tool works immediately with OpenAI's GPT-4.1-mini model.
cooklang-import https://www.bbcgoodfood.com/recipes/next-level-tikka-masala
cooklang-import https://www.bbcgoodfood.com/recipes/next-level-tikka-masala --extract-only
cooklang-import --text "Take 2 eggs and 1 cup of flour. Mix and bake at 350°F for 30 minutes."
Requires GOOGLE_API_KEY for OCR.
cooklang-import --image /path/to/recipe-photo.jpg
cooklang-import --help # Full usage info
cooklang-import <url> --provider anthropic # Use specific provider
cooklang-import <url> --timeout 60 # Custom timeout (seconds)
cp config.toml.example config.toml
default_provider = "openai"
[providers.openai]
enabled = true
model = "gpt-4.1-mini"
[providers.anthropic]
enabled = true
model = "claude-sonnet-4.5"
[fallback]
enabled = true
order = ["openai", "anthropic"]
See docs/providers.md for all provider options.
OPENAI_API_KEY)config.toml file| 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 |
cargo test # Run tests
RUST_LOG=debug cooklang-import <url> # Debug logging