{"id":26513863,"url":"https://github.com/doerfli/reeper","last_synced_at":"2026-03-06T21:06:04.416Z","repository":{"id":39009463,"uuid":"280646628","full_name":"doerfli/reeper","owner":"doerfli","description":"Recipe management web application - parse recipes from image using AI based OCR","archived":false,"fork":false,"pushed_at":"2026-02-16T19:15:13.000Z","size":2703,"stargazers_count":2,"open_issues_count":6,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-17T01:49:56.429Z","etag":null,"topics":["actiontext","aws-s3","docker","hacktoberfest","mistral-ai","ocr","openai","recipe-app","ruby-on-rails","self-hosted"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/doerfli.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-07-18T11:55:46.000Z","updated_at":"2026-02-16T19:12:23.000Z","dependencies_parsed_at":"2023-02-17T03:46:00.529Z","dependency_job_id":"045deaa3-5082-4981-b88b-d5880c9407b9","html_url":"https://github.com/doerfli/reeper","commit_stats":null,"previous_names":[],"tags_count":92,"template":false,"template_full_name":null,"purl":"pkg:github/doerfli/reeper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doerfli%2Freeper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doerfli%2Freeper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doerfli%2Freeper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doerfli%2Freeper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/doerfli","download_url":"https://codeload.github.com/doerfli/reeper/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doerfli%2Freeper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29802866,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-24T21:02:39.706Z","status":"ssl_error","status_checked_at":"2026-02-24T21:02:21.834Z","response_time":75,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["actiontext","aws-s3","docker","hacktoberfest","mistral-ai","ocr","openai","recipe-app","ruby-on-rails","self-hosted"],"created_at":"2025-03-21T04:46:07.122Z","updated_at":"2026-02-24T22:02:23.868Z","avatar_url":"https://github.com/doerfli.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Reeper\n\nThis repository contains a self-hosted recipe web application implemented in Ruby On Rails. \n\nRuntime docker images are available.\n\n## Requirements\n\n- Ruby 3.4+\n- PostgreSQL\n- ImageMagick\n- Redis (required for Sidekiq background jobs)\n  - Recommended: Redis 6+\n  - Start locally: `docker run --rm -p 6379:6379 redis:6`\n\n## Features\n\n- Recipe management with images and OCR text recognition\n- **AI-powered recipe extraction with two methods:**\n  - **Mistral + OpenAI**: Image → Mistral OCR (markdown) → OpenAI parsing (structured recipe)\n  - **OpenAI Direct**: Image → OpenAI (structured recipe)\n- AI-powered OCR text cleanup using GPT-4 Mini\n- Multiple recipes detection from single image\n- Tagging and search functionality\n- Auth0 authentication\n- AWS S3 file storage\n- Responsive UI with Tailwind CSS \n\n## Preparation for development\n\n### DB Setup\n\n```\nrake db:create\nrake db:migrate\n```\n\nRestore dump\n\n```\npg_restore -d reeper_development -h db -Upostgres file.dump\n```\n\n### AWS credentials\n\nCreate `.env.local` file with AWS credentials\n\n```bash\n# .env.local\nAWS_ACCESS_KEY_ID=AAAAAAA\nAWS_SECRET_ACCESS_KEY=BBBBB\n```\n\n### OpenAI API Key (for AI recipe extraction and OCR cleanup)\n\nFor the AI-powered recipe extraction and OCR cleanup features, configure your OpenAI API key:\n\n**Development:**\n```bash\n# Option 1: Environment variable (recommended)\nexport OPENAI_API_KEY=your_openai_api_key_here\n\n# Option 2: Rails credentials\nEDITOR=\"code --wait\" rails credentials:edit\n# Add: openai_api_key: your_openai_api_key_here\n```\n\n**Production/Dokku:**\n```bash\ndokku config:set your-app-name OPENAI_API_KEY=your_actual_openai_api_key_here\n\n# Optional: Override cleanup prompts per language\ndokku config:set your-app-name OPENAI_CLEANUP_PROMPT_EN=\"Your custom English prompt...\"\ndokku config:set your-app-name OPENAI_CLEANUP_PROMPT_DE=\"Your custom German prompt...\"\n```\n\n**Optional Configuration:**\n- `OPENAI_CLEANUP_PROMPT_EN`: Override the default English cleanup prompt\n- `OPENAI_CLEANUP_PROMPT_DE`: Override the default German cleanup prompt\n- `OPENAI_PROMPT_OCR_ID`: Override the default OpenAI prompt ID for direct OCR (default: `pmpt_694514e453388194a1e4c121407ef02204bec5d20e21b070`)\n- `OPENAI_PROMPT_OCR_VERSION`: Override the default OpenAI prompt version for direct OCR (default: `2`)\n- `OPENAI_MARKDOWN_PROMPT_ID`: Override the default OpenAI prompt ID for markdown parsing (default: `pmpt_696554b87ef88190bbc1156b6c5fe84f0050d5451e60ae6c`)\n- `OPENAI_MARKDOWN_PROMPT_VERSION`: Override the default OpenAI prompt version for markdown parsing (default: `2`)\n\n### Mistral AI API Key (for two-phase OCR)\n\nFor the Mistral + OpenAI two-phase recipe extraction, configure your Mistral AI API key:\n\n**Development:**\n```bash\nexport MISTRAL_API_KEY=your_mistral_api_key_here\n```\n\n**Production/Dokku:**\n```bash\ndokku config:set your-app-name MISTRAL_API_KEY=your_actual_mistral_api_key_here\n```\n\n**Note:** The Mistral API key is only required if you plan to use the \"Mistral + OpenAI\" recognition method. The \"OpenAI Direct\" method only requires the OpenAI API key. \n\n\n## Start development server\n\nStart dev-server, css build, js build\n\n```\nbin/dev\nyarn build:css --watch\nyarn build --watch\n```\n\n## Start production via docker\n\nUse provided `docker-compose.prod.yml` file for startup of postgres db and container for the rails app. Don't forget to set the following environment variables:\n\n**Required:**\n- `AWS_ACCESS_KEY_ID`: AWS access key\n- `AWS_SECRET_ACCESS_KEY`: AWS secret key\n- `OPENAI_API_KEY`: OpenAI API key for AI recipe extraction\n- Database passwords\n\n**Optional:**\n- `MISTRAL_API_KEY`: Mistral AI API key (only needed for \"Mistral + OpenAI\" method)\n- `S3_BUCKET_NAME`: Override S3 bucket name (default: _reeper_)\n- `S3_BUCKET_REGION`: Override S3 region (default: _eu-central-1_)\n- `OPENAI_PROMPT_OCR_ID`: Custom OpenAI prompt ID for direct OCR\n- `OPENAI_PROMPT_OCR_VERSION`: Custom OpenAI prompt version\n- `OPENAI_MARKDOWN_PROMPT_ID`: Custom OpenAI prompt ID for markdown parsing\n- `OPENAI_MARKDOWN_PROMPT_VERSION`: Custom OpenAI prompt version \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoerfli%2Freeper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdoerfli%2Freeper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoerfli%2Freeper/lists"}