How fossasia/magic-epaper-app works
Magic ePaper is a Flutter app for designing images and cards and transferring them to NFC ePaper badges. The main workflow is to choose a display, create content with an editor or template, process it for ePaper, and transfer it over NFC. Other documented branches include saved designs, NDEF operations, raw tag commands, and Arduino export. The Dart implementation was not sampled, so feature links below reflect README-documented behavior; the Rust dithering and generated bridge are supported by source excerpts.
Main entry points: epd NFC image transfer · display_selection_screen.dart Display selection · image_editor.dart Image editor · card_templates Card templates
Components 19
Design creation
- Flutter app
lib/main.dart - Display selection
lib/view/display_selection_screen.dart - Image editor
lib/view/image_editor.dart - Canvas editor
lib/native_canvas/native_canvas_editor.dart - Card templates
lib/card_templates - Bulk generation
lib/card_templates/bulk - Weather snapshot
lib/card_templates/weather_service.dart - Image Library
lib/image_library/image_library.dart
Badge transfer
- NFC image transfer
lib/utils/epd - Display protocols
lib/utils/epd - Arduino export
lib/utils/magic_epaper_firmware.dart
Tag tools
- NDEF read/write
lib/ndef_screen/ndef_screen.dart - Command console
lib/command_console/command_console_screen.dart
Processing core
- Image processing
lib/utils/image_processing/image_processing.dart - Rust bridge
lib/src/rust/api/simple.dart - Rust dithering
rust/src/api/simple.rs
Other components
- App user
- NFC ePaper badge
- NDEF tag
Connections 21
- App user → Flutter app: uses
README.md - Flutter app → Display selection: opens
README.md - Display selection → Image editor: creates image
README.md - Display selection → Canvas editor: creates design
README.md - Display selection → Card templates: creates card
README.md - Card templates → Bulk generation: generates batches
README.md - Card templates → Weather snapshot: offers snapshot
README.md - Image editor → Image processing: processes image
README.md - Image processing → Rust bridge: calls dithering
- Rust bridge → Rust dithering: invokes
- Image editor → NFC image transfer: transfers design
README.md - Canvas editor → NFC image transfer: transfers design
README.md - Card templates → NFC image transfer: transfers design
README.md - NFC image transfer → Display protocols: uses protocols
- Display protocols → NFC ePaper badge: writes image
README.md - Image editor → Image Library: saves design
README.md - Image Library → NFC image transfer: retransfers design
README.md - App user → NDEF read/write: reads or writes
README.md - NDEF read/write → NDEF tag: exchanges records
README.md - App user → Command console: sends commands
README.md - App user → Arduino export: exports
README.md