
One application codebase. Electron desktop for Windows, macOS and Linux. Web app for browser and tablet. Moii One as the backend platform.
BIFO is 35 years old. It is Windows-only, licensed per seat, maintained by one person, and has no automated tests. The algorithms inside it are still excellent. We propose to keep them and replace everything around them.
ME10 runtime and one maintainer are single points of failure. VBScript is deprecated by Microsoft. Nothing can run outside a Windows PC.
Clean rewrite on a new codebase. We port machine definitions, format rules and test data. All code is new and owned by Forster Rohner.
20 months, one codebase, two targets: Electron desktop and web/PWA. One senior engineer with AI. Backend on Moii One for login, autosave, versions and backup.
BIFO is a 2D CAD and punching system for lace and embroidery. It turns design artwork into stitch programs and machine control files.
Geometry, operations, modification, measurement, splines, text and figures.
Punch groups, machine functions, stitch sequences, fills and stitch calculation.
Pentamat, station and ATC needle patterns, repeats and pattern reports.
TIFF, RGB and JPEG scans, ImageMagick pipeline, raster-to-vector conversion.
USF to SLC, MST, TFA, SHC, HYD, HEX and OF; laser cutting paths.
Figure libraries, machine definitions, multilingual UI, customer and article data.
The code carries the fingerprints of every era it survived. That is a strength of knowledge and a weakness of platform.
First implementation. Revision 4.12.90. Copyright line still in `init.m`.
ISP/V6 expansion. Machine function definitions and SLC export.
Generated startup layer and current runtime packaging.
12 commits, 1 author. Last change: Visual Studio 2026 compatibility.
The domain knowledge is real and valuable. It is also concentrated in code that only a few people can read, and in one person who can change it.
Every algorithm, every machine definition, every format and every operator habit that still earns money.
Counted directly from the repository at commit db66476. 3,164 tracked files, 361 MB working tree.
| Asset | Files | Lines | Size | Nature |
|---|---|---|---|---|
| BIFO ME10 macros | 154 | 118,019 | 4.7 MB | In-house application |
| C++ me10_ai | 400 | 141,898 | 4.5 MB | Engine, commands, stitch |
| C++ v6_lib | 31 | 37,553 | 1.3 MB | Geometry, calculation, I/O |
| C converters | 18 | 5,135 | 0.2 MB | USF/SLC/OF routines |
| VBScript glue | 23 | 10,697 | 0.35 MB | Launch, upload, image pipeline |
| Executables | 69 | — | 139 MB | Converters, tools, runtime |
| DLLs | 22 | — | 26 MB | Engine and support |
| Third-party ME10 macros | ~1,400 | ~880,000 | 13 MB | Vendored, not ours |
| In-house code | ~660 | ~314,400 | ~11 MB | Scope of the migration |
Every layer is Windows-specific. Every step is unversioned shell or script code.
Ranked by business impact, not by technical novelty.
| # | Finding | Evidence | Severity |
|---|---|---|---|
| F1 | Single maintainer for the entire system | 12 commits, 1 author | Critical |
| F2 | ME10 is a licensed legacy runtime | ME10F.exe, PTC licensing | Critical |
| F3 | VBScript deprecated by Microsoft | 23 files, 10.7k lines | High |
| F4 | No automated tests, no CI/CD | hand-built solutions only | High |
| F5 | Windows-only; no remote or mobile | bat, registry, Win32 | High |
| F6 | Designs live on local/network files only | manual DMFR upload | High |
| F7 | Debug mode on in production batch file | set ISP_DEBUG=1 | Medium |
| F8 | Plain HTTP to internal DMFR server | http://win103/dmfr/ | Medium |
| F9 | Machine and site config not versioned | .gitignore excludes config | Medium |
| F10–F12 | 69 EXEs, MultiByte build, vendored binaries | repo inventory | Medium |
Machine-format changes, production hotfixes and customer requests stop.
No internal ability to change BIFO. External rescue contract at emergency rates.
Forced migration with no preparation time. 6–12 month delay.
1.8× to 2.5× the planned cost. No test corpus. No parallel run.
We do not preserve the old runtime. We preserve what it knows, then prove the new code matches it.
The same React UI and the same core run in both shells. There is no second implementation to keep in sync.
Windows 10/11, macOS Intel + Apple Silicon, Linux. Full editing, local and network files, pen tablets, X-keys keypads, printers and plotters, direct machine upload, signed auto-update, full offline.
Chrome, Edge, Safari, Firefox, iPadOS and Android. Same editor, no installation. Ideal for machine-floor tablets, sales, management review and remote designers. Offline capable.
Local-first clients, a shared portable core, and a platform that handles only what a desktop app cannot do well.
All code is new. Porting is limited to definitions, rules and isolated math that we can prove against the legacy output.
Everything a designer needs, on every desktop OS, with hardware access that a browser cannot provide.
Windows 10/11 x64 and arm64, macOS Intel and Apple Silicon, Linux AppImage/deb/rpm.
Native dialogs, UNC paths, network shares, file watching, large-file streaming.
Wintab pressure and tilt through a native addon. Existing Wacom workflow preserved.
Raw HID access. Existing .mw3 layouts and legends continue to work.
Native print pipeline and plotter drivers, with the same output controls.
Direct share, FTP/SFTP, serial where required. No server round trip.
Full editing with a local journal. Sync resumes automatically when the network returns.
Signed, staged auto-update with rollback. MSI for managed deployment.
Sandboxed renderer, context isolation, CSP, signed builds, notarisation.
Not a viewer. The same core and the same UI, delivered without installation.
Desktop and web share the editor. They differ only where hardware is involved.
| Capability | Electron | Web / PWA | Note |
|---|---|---|---|
| Open, edit, save design | Yes | Yes | Same core |
| Punch, stitch, needle patterns | Yes | Yes | Same core |
| Raster import and vectorise | Yes | Yes | Server option for large scans |
| Export all machine formats | Yes | Yes | Web uses conversion service |
| Autosave and version history | Yes | Yes | Same API |
| Offline editing | Yes | Yes | Local journal |
| Pen tablet pressure | Wintab | Pointer | Web lacks ExpressKey config |
| X-keys keypad | Yes | No | Local agent option |
| Plotter and print drivers | Yes | Limited | Desktop for production plotting |
| Direct machine upload | Yes | No | Server job or agent |
| No installation | No | Yes | Key value for sales |
| iPad and Android | No | Yes | Touch UI profile |
The requirement for a web app eliminates most desktop frameworks before performance is even considered.
| Criterion | Electron | Tauri | Qt | .NET MAUI | Browser only |
|---|---|---|---|---|---|
| Shares UI with web app | Same code | Yes | No | No | n/a |
| Native module support (Rust/WASM) | Yes | Rust | Yes | Partial | WASM only |
| Consistent rendering | Chromium everywhere | OS WebView differs | Native | Native | Browser-dependent |
| USB / HID / X-keys | Yes | Yes | Yes | Partial | Limited |
| Printing and plotting | Mature | Limited | Mature | Limited | No |
| Signed auto-update | Mature | Yes | Manual | Yes | n/a |
| Installer size | ~120 MB | ~10 MB | ~40 MB | ~30 MB | 0 |
| Hiring pool | Very large | Growing | Large | Medium | Very large |
One UI codebase for desktop and web. Identical Chromium rendering. Direct native access. Mature signing and update chain. Large talent pool.
Larger installer and higher memory than Tauri. Acceptable for a CAD workstation. The same UI can move to Tauri later without a rewrite.
The desktop app keeps working offline. The platform adds identity, safety, history and control.
OIDC, SSO with Microsoft Entra ID, MFA, role-based access. One login for desktop and web.
Local journal plus delta sync every 15 seconds or 20 operations. Never blocks on the network.
Immutable versions, restore, metadata compare, conflicted copies instead of overwrites.
Encrypted, versioned, replicated storage for designs and exports.
Daily snapshots, 35-day retention, monthly archive, cross-region copy, quarterly restore drill.
Queue, retry and batch export for web clients and bulk migration.
Seat count, entitlements, feature flags, offline lease. Replaces per-seat ME10 licensing.
Immutable event log, export to SIEM, full traceability for customer audits.
Crash reports, performance and usage. EU-hosted and opt-in.
Every edit is durable before it reaches the screen. The network is a background service, not a dependency.
Forster Rohner is a Swiss company serving international brands. Data handling is part of the product.
| Control | Value |
|---|---|
| Object versioning | Every save, 90 days |
| Daily backup | 35 days |
| Monthly archive | 24 months |
| Cross-region copy | Yes |
| RPO | 15 minutes |
| RTO | 4 hours |
| Restore drill | Quarterly, documented |
| Encryption | TLS 1.3 · AES-256 |
Hosting in Switzerland or the EU. GDPR and Swiss FADP aligned. Data processing agreement and DPIA before go-live.
Every save, export, download and permission change is logged. Luxury-brand customers increasingly require this evidence.
Least privilege, role-based access, instant revocation when a user leaves.
The legacy system stays live for the whole programme. Users move when their workflow is proven, not on a fixed date.
Specification, corpus, WASM proof, v1 scope.
Domain extraction, new core, document model, format parsers, CI.
Electron shell, draw, punch, stitch, autosave, first formats.
Remaining operations, formats, Electron devices, PWA.
Pilot, training, data migration, legacy read-only.
Legacy ME10 and the new app both work on the same files during transition.
Every menu is Ported, Improved, Deferred or Retired. Nothing is dropped silently.
If a pilot site is not ready, it stays on ME10. No forced cut-over date.
We capture what the legacy system produces, then prove the new system produces the same result — before any machine sees it.
| Tier | Content | Size | Purpose |
|---|---|---|---|
| T1 — Unit | Hand-built geometry cases | 500+ | Fast, precise algorithm tests |
| T2 — Format | One file per machine family and format | ~40 | Parser and writer correctness |
| T3 — Production | Real designs from the archive | 200–500 | Real-world coverage |
| T4 — Stress | 1M+ stitch designs and edge cases | 20+ | Performance and stability |
One senior engineer, AI-assisted. Phases overlap. Each milestone is a stop gate, so the programme can pause at any point.
| ID | Month | Milestone | Exit criterion |
|---|---|---|---|
| M1 | 1 | Phase 0 complete | Signed v1 scope, 50-design corpus, WASM proof |
| M2 | 5 | Core complete | 100% parity on T1–T2, deterministic build, CI green |
| M3 | 11 | Editor MVP | Three designers complete a real job end to end |
| M4 | 17 | Parity and beta | Daily workflow parity, Electron and PWA beta, platform live |
| M5 | 20 | Rollout complete | 90% adoption, legacy read-only, handover signed |
One senior engineer, AI-assisted. CHF 150,000 over 20 months. No capital approval. The CHF 230k team model is replaced.
| Stage | Months | Fee | Outcome |
|---|---|---|---|
| Phase 0 · proof | 0–1 | CHF 5,000 | Credited against month 1 |
| Months 1–6 | 6 | CHF 45,000 | Desktop and web, draw, punch, 2 formats |
| Months 7–12 | 6 | CHF 45,000 | Daily workflow parity, devices, PWA |
| Months 13–20 | 8 | CHF 60,000 | Remaining operations, formats, rollout |
| Full programme | 20 | CHF 150,000 | Phase 0 credited · support CHF 1,500/month |
CHF 150,000 over 20 months. Four stop points. No assumed annual cost.
| Period | Months | Cash | What you have |
|---|---|---|---|
| Phase 0 | 1 | CHF 5,000 | Specification, corpus, prototype proof |
| MVP | 6 | CHF 45,000 | Desktop and web, core editing, two formats |
| v1 | 12 | CHF 90,000 | Daily workflow, devices, PWA |
| Full programme | 20 | CHF 150,000 | All active operations and formats |
One senior engineer, AI-assisted. One client expert, four hours per week. No project manager, no hand-offs.
| Role | FTE | Focus |
|---|---|---|
| Senior full-stack engineer (C++/WASM/TS) | 1.0 | Architecture, core, UI, backend, delivery |
| Domain expert (Forster Rohner) | 0.25 | Parity review and machine acceptance |
| IT and operations (Forster Rohner) | 0.10 | Accounts, access, rollout |
| External security reviewer (optional) | 8 h/q | Threat model and penetration test |
| Delivery headcount | 1 |
Working demo and written status.
Steering review: scope, risk, budget.
Commits to the client repository.
Forster Rohner owns code, tests and infrastructure.
Every criterion is measurable. No subjective sign-off.
| Functional | Target |
|---|---|
| Machine output parity, T1–T3 | 100% |
| Active operations ported or retired | 100% |
| Machine families accepted | 6 / 6 |
| Real jobs completed end to end | 50 / 50 |
| Round-trip without data loss | 100% |
| Performance and operations | Target |
|---|---|
| Open 1M-stitch design (P95) | < 5 s |
| Operation recalculation (P95) | < 2 s |
| Pan / zoom frame rate | > 30 fps |
| Crash-free sessions | > 99.5% |
| Adoption after 6 months | > 90% |
The top five risks, stated openly, with the control that addresses each one.
| Risk | Likelihood | Impact | Mitigation |
|---|---|---|---|
| ME10 macro semantics not fully understood | High | High | Phase 0 parity catalogue; bi-weekly designer review; golden files |
| Machine output differs in edge cases | Medium | Critical | T1–T3 corpus; dual-run in pilot; machine acceptance tests |
| C++ core does not compile to WASM cleanly | Medium | High | Early proof in Phase 0; native addon fallback for desktop |
| Performance unacceptable at 1M+ stitches | Medium | High | WebGL from day one; stress corpus; early benchmarks |
| User resistance to change | Medium | High | Parallel run; keyboard parity; pilot champions; training |
| Scope creep from adjacent requests | High | Medium | Fixed parity matrix; change control; deferred backlog |
| Licensing issue with extracted algorithms | Low | High | Legal review in Phase 0; confirm code ownership |
Do not approve the full CHF 150,000 up front. Approve three weeks of proof, then a monthly service you can stop with 30 days notice.
Approve Phase 0 only: CHF 5,000, three weeks, credited against month 1. It produces the signed v1 specification, the test corpus, a working prototype proof, and the monthly plan.
CHF 5,000 for Phase 0. No commitment to the monthly programme is requested at this time.
| # | Action | Owner | When |
|---|---|---|---|
| 1 | Approve Phase 0 budget | Forster Rohner | Week 0 |
| 2 | Nominate domain expert (4 h/week) | Forster Rohner | Week 0 |
| 3 | Provide licence and support cost figures | FR finance | Week 1 |
| 4 | Legal review of code ownership | FR legal | Weeks 1–2 |
| 5 | Collect 50 production designs and outputs | Joint | Weeks 1–3 |
| 6 | Build WebAssembly geometry proof | Delivery | Weeks 1–3 |
| 7 | Present v1 scope and start month 1 | Delivery | Week 3 |
BIFO has earned its place. It deserves a platform that can carry it for the next thirty years — and a way of working that keeps the knowledge in the company.
Approve Phase 0 · CHF 5,000 · 3 weeks