@sebbo2002/to-paprika
v2.0.0
Published
Simple image/pdf to paprika app converter using LLMs
Readme
🫑 to-paprika
Simple script that feeds a photo or PDF of a recipe into an OpenAPI-compatible API and generates a
Paprika Recipes-compatible export. The CLI supports multiple files at
once. PDFs are automatically converted to images. By default, each page is processed as a separate recipe
(splitPages). Alternatively, all pages can be processed together as a single recipe. HEIC images are also
supported. There is also a small web server that provides a simple HTTP API that does the same thing.
⚡️ Quick Start
# Install the CLI globally
npm i -g @sebbo2002/to-paprika
# Run Setup Wizard
to-paprika setup
# Convert file to Paprika Recipe format
to-paprika convert ./path/to/your/file.jpg
# Run simple HTTP server
to-paprika serverThere's also a container image available on Docker Hub:
docker run --rm \
-v $(pwd):/data \
-e TO_PAPRIKA_CONFIG_PATH=/data/to-paprika-config.json \
sebbo2002/to-paprika \
cli convert /data/path/to/your/file.jpg📱 Apple Shortcut
You can use this Apple Shortcut to easily use the HTTP API from your iPhone or iPad. Ensure to change the URL and add your Auth Token.
🙆🏼♂️ Copyright and license
Copyright (c) Sebastian Pekarek under the MIT license.
