How rachet-dev/rachebook works
Purpose and runtime
rachebook is a native iOS 13+ handwritten-note application. It manages text notes and invokes Yandex Vision to OCR handwriting captured from the camera or photo library. The app is built and launched through rachebook.xcodeproj; UIKit application startup is in rachebook/AppDelegate.swift.
Application bootstrap and UI shell
The UIKit lifecycle starts in rachebook/AppDelegate.swift, with launch-screen and application metadata under rachebook/Base.lproj/LaunchScreen.storyboard and rachebook/Info.plist. The primary UI is controller-based rather than a web or service runtime.
Note domain model
Models/Note.swift defines the note entity used across listing, editing, search, sorting, and OCR-created records. Models/NoteStore.swift is the central note-state/persistence boundary: UI controllers should consume and mutate notes through it rather than own storage independently.
Notes browsing workflow
Views/NotesListViewController.swift is the main note-management surface. It presents stored notes and drives user-facing operations including content/tag search, date-based sorting, creating notes, selecting a note for editing, and deletion. It coordinates list state with Models/NoteStore.swift.
Editing and capture workflow
Views/NoteEditorViewController.swift owns the individual-note editing flow. It is the likely integration point for creating or updating Models/Note.swift instances and for initiating image acquisition from device camera or gallery before OCR. Completed edits flow back through Models/NoteStore.swift.
OCR integration boundary
Models/YandexVisionService.swift encapsulates communication with the external Yandex Vision API. The service requires a Yandex Cloud API key and folderId, currently configured in that source file per the README. Its input boundary is an acquired image; its output is recognized text used to automatically create a note through the editor/store flow. Network access and cloud credentials are therefore isolated from the view controllers.
Assets and infrastructure
Visual resources are packaged in rachebook/Assets.xcassets, including the app icon. Xcode project/workspace metadata lives in rachebook.xcodeproj. Material external dependencies are iOS UIKit/device media access and Yandex Cloud Vision; no backend service or web runtime is represented in the repository.
Main entry points: NoteEditorViewController.swift Note Editor · AppDelegate.swift App Delegate · NotesListViewController.swift Notes List · YandexVisionService.swift Yandex Vision Service
Components 12
iOS App
- Xcode Project
rachebook.xcodeproj - App Delegate
rachebook/AppDelegate.swift - Launch Screen
rachebook/Base.lproj/LaunchScreen.storyboard - App Metadata
rachebook/Info.plist - Visual Assets · Includes the app icon.
rachebook/Assets.xcassets - Notes List · Browse, search, sort, create, select, and delete notes.
Views/NotesListViewController.swift - Note Editor · Edits notes and initiates image capture or selection.
Views/NoteEditorViewController.swift
Notes Domain
- Note
Models/Note.swift - Note Store · Central boundary for note reads and mutations.
Models/NoteStore.swift - Yandex Vision Service · Isolates cloud credentials and OCR networking.
Models/YandexVisionService.swift
External Services
- Camera & Photo Library
- Yandex Cloud Vision
Connections 13
- Xcode Project → App Delegate: builds
- App Delegate → Launch Screen: launches with
- App Delegate → App Metadata: reads metadata
- App Delegate → Notes List: starts UI
- Visual Assets → Notes List: supplies visuals
- Notes List → Note Store: lists and mutates
- Notes List → Note Editor: creates or opens
- Note Editor → Note Store: saves edits
- Note Store → Note: stores
- Note Editor → Camera & Photo Library: acquires image
- Note Editor → Yandex Vision Service: sends image for OCR
- Yandex Vision Service → Yandex Cloud Vision: OCR request
- Yandex Vision Service → Note Editor: recognized text