posprint
Cross-platform designer for POS (point-of-sale) receipt documents. Edit templates in a markdown-like syntax, preview output live, substitute runtime parameters, and print directly to USB or Bluetooth thermal printers via raw ESC/POS bytes.
Target platforms: Windows and Linux (x64).
Status
Pre-implementation — design phase. See docs/ for specifications.
Design documents
| Document | Description |
|---|---|
| FEASIBILITY.md | Feasibility assessment, complexity estimate, risks |
| LANGUAGE-CHOICE.md | Language and framework recommendation |
| ARCHITECTURE.md | System architecture and module breakdown |
| DSL-SPEC.md | Document markup language (.pos body syntax) |
| FILE-FORMAT.md | .pos file envelope (metadata + body) |
| PRINTING.md | Printer discovery, transport, ESC/POS pipeline |
Planned features
- Markdown-like template editor with live preview
- Page width: auto-scale to window or fixed width (mm)
- Save and load
.posfiles - Parameter tokens (
${DocumentNumber}) with print-time popup and value reuse - Barcodes, QR codes, and images (including parameterized content)
- Print to USB / Bluetooth POS printers via raw byte streams
Quick feasibility summary
Verdict: feasible for a small team or solo developer, with the printing layer as the main engineering risk.
| Area | Complexity | Notes |
|---|---|---|
| Editor + preview UI | Medium | Well-trodden path |
| DSL parser + renderer | Medium | Custom grammar, bounded scope |
| Parameters | Low | Straightforward substitution |
| Barcodes / QR / images | Low–Medium | Mature libraries exist |
| USB / BT printer I/O | High | OS differences, device quirks |
| Overall (MVP) | Medium–High | ~6–10 weeks for one experienced dev |
Stack: Rust + egui (single language, minimal dependencies). USB-serial printing only in v1. See LANGUAGE-CHOICE.md and docs/HELP.md.