{"id":44802614,"url":"https://github.com/lelabdev/scribe","last_synced_at":"2026-02-16T13:35:56.205Z","repository":{"id":333394144,"uuid":"1137106221","full_name":"lelabdev/scribe","owner":"lelabdev","description":"SvelteKit OCR app for document processing with Mindee and Mistral AI","archived":false,"fork":false,"pushed_at":"2026-01-19T00:59:47.000Z","size":151,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-19T10:48:49.441Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lelabdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-01-18T23:10:13.000Z","updated_at":"2026-01-19T00:59:51.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/lelabdev/scribe","commit_stats":null,"previous_names":["lelabdev/scribe"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/lelabdev/scribe","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lelabdev%2Fscribe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lelabdev%2Fscribe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lelabdev%2Fscribe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lelabdev%2Fscribe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lelabdev","download_url":"https://codeload.github.com/lelabdev/scribe/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lelabdev%2Fscribe/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29509202,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T09:05:14.864Z","status":"ssl_error","status_checked_at":"2026-02-16T08:55:59.364Z","response_time":115,"last_error":"SSL_read: 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":[],"created_at":"2026-02-16T13:35:54.015Z","updated_at":"2026-02-16T13:35:56.195Z","avatar_url":"https://github.com/lelabdev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Scribe - OCR Document Processing App\n\nA SvelteKit 5 application for intelligent document processing using hybrid OCR: Mindee (official documents) and Mistral AI (creative content).\n\n## Features\n\n- **Hybrid OCR System**: Automatic routing between Mindee (invoices, official docs) and Mistral AI (recipes, notes)\n- **Mobile-First**: Optimized for document scanning with camera capture\n- **Validation Interface**: Two-column layout for reviewing and editing extracted data\n- **Local Database**: SQLite with Drizzle ORM for fast local development\n- **Modern UI**: Built with Skeleton UI and Tailwind CSS\n- **Type-Safe**: Full TypeScript with strict mode\n\n## Tech Stack\n\n- **Framework**: SvelteKit 5 with runes\n- **UI Library**: Skeleton UI + Tailwind CSS\n- **Database**: SQLite with Drizzle ORM\n- **OCR Providers**:\n  - Mindee API (official documents, invoices)\n  - Mistral AI (creative content, recipes, notes)\n- **Testing**: Vitest (unit) + Playwright (E2E)\n- **Deployment**: Cloudflare Workers\n\n## Getting Started\n\n### Prerequisites\n\n- Node.js 18+ or Bun\n- Mindee API Key\n- Mistral API Key\n\n### Installation\n\n```bash\n# Clone the repository\ngit clone https://github.com/your-username/scribe.lelab.git\ncd scribe.lelab\n\n# Install dependencies\nbun install\n\n# Create .env file\ncp .env.example .env\n# Edit .env with your API keys\n```\n\n### Environment Variables\n\n```env\nMINDEE_API_KEY=your_mindee_api_key\nMISTRAL_API_KEY=your_mistral_api_key\nDATABASE_URL=.data/db.sqlite  # Optional, defaults to local file\n```\n\n### Development\n\n```bash\n# Start development server\nbun dev\n\n# Generate database migrations\nbun run db:generate\n\n# Run migrations\nbun run db:migrate\n\n# Type check\nbun run check\n\n# Format code\nbun run format\n```\n\n## Project Structure\n\n```\nsrc/\n├── routes/              # SvelteKit pages\n│   ├── +page.svelte       # Upload interface with mobile-first design\n│   ├── +page.server.ts    # Server actions (upload, OCR, save)\n│   ├── validate/         # Validation page\n│   │   ├── +page.svelte      # Two-column review interface\n│   │   └── +page.server.ts   # Save document action\n├── lib/\n│   ├── db/\n│   │   ├── schema.ts       # Database schema (SQLite)\n│   │   └── index.ts       # Drizzle client\n│   ├── supabase-storage.ts # Local file storage\n│   ├── ocr-utils.ts      # OCR utility functions (normalize, parse, extract)\n│   └── ocr-utils.spec.ts # Unit tests for OCR utilities\ne2e/                   # E2E tests with Playwright\n├── migrations/            # Database migrations\n└── ai/                  # AI context and documentation\n```\n\n## How It Works\n\n1. **Upload**: User captures or selects a document image\n2. **OCR Processing**:\n   - Official documents → Mindee API\n   - Creative content → Mistral AI\n3. **Validation**: Two-column interface to review extracted data\n4. **Storage**: Validated data saved to SQLite database\n\n## Contributing\n\nThis is an open-source project! Contributions are welcome.\n\n1. Fork the repository\n2. Create a feature branch (`git checkout -b feat/my-feature`)\n3. Commit your changes (`git commit -m 'feat: add my feature'`)\n4. Push to the branch (`git push origin feat/my-feature`)\n5. Open a Pull Request\n\n## License\n\nMIT License - see LICENSE file for details\n\n## Built With\n\n- [SvelteKit](https://kit.svelte.dev/) - Web framework\n- [Skeleton UI](https://skeleton.dev/) - Design system\n- [Drizzle ORM](https://orm.drizzle.team/) - Database toolkit\n- [Mindee](https://mindee.com/) - OCR API for documents\n- [Mistral AI](https://mistral.ai/) - AI for creative content\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flelabdev%2Fscribe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flelabdev%2Fscribe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flelabdev%2Fscribe/lists"}