1 / 29
Platform Modernization Proposal

BIFO CAD
Rebuilt

One application codebase. Electron desktop for Windows, macOS and Linux. Web app for browser and tablet. Moii One as the backend platform.

Forster Rohner AG · St. Gallen 2 December 2026 Draft v1.3 · Clean rewrite · 20 months

The system works. The platform does not have a future.

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.

1991
First copyright line
118k
Lines of BIFO macro code
179k
Lines of C++ engine
1
Person who maintains it

The risk

ME10 runtime and one maintainer are single points of failure. VBScript is deprecated by Microsoft. Nothing can run outside a Windows PC.

The opportunity

Clean rewrite on a new codebase. We port machine definitions, format rules and test data. All code is new and owned by Forster Rohner.

The plan

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.

Decision requested today: approve Phase 0 only — three weeks, CHF 5,000, credited against month 1 — to produce the signed v1 specification, the golden-file test corpus, a working prototype proof, and the final monthly plan.

What BIFO does

BIFO is a 2D CAD and punching system for lace and embroidery. It turns design artwork into stitch programs and machine control files.

✏️

Draw and construct

Geometry, operations, modification, measurement, splines, text and figures.

🪡

Punch and stitch

Punch groups, machine functions, stitch sequences, fills and stitch calculation.

🧵

Needle patterns

Pentamat, station and ATC needle patterns, repeats and pattern reports.

🖼️

Artwork import

TIFF, RGB and JPEG scans, ImageMagick pipeline, raster-to-vector conversion.

🏭

Machine output

USF to SLC, MST, TFA, SHC, HYD, HEX and OF; laser cutting paths.

📚

Libraries and data

Figure libraries, machine definitions, multilingual UI, customer and article data.

Evidence: 154 BIFO macro files (`zeichnen_*`, `operation_*`, `punchen_*`, `nadelmuster_*`) plus the `me10_ai` and `v6_lib` C++ modules.

Thirty-five years, three owners, one author

The code carries the fingerprints of every era it survived. That is a strength of knowledge and a weakness of platform.

1990–1991

Leuthold + Vogt AG

First implementation. Revision 4.12.90. Copyright line still in `init.m`.

1995–2002

leuthold + partner ag

ISP/V6 expansion. Machine function definitions and SLC export.

2018

COP Informatik AG

Generated startup layer and current runtime packaging.

Today

Internal maintainer

12 commits, 1 author. Last change: Visual Studio 2026 compatibility.

What this proves

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.

What we protect

Every algorithm, every machine definition, every format and every operator habit that still earns money.

Measured inventory — no estimates

Counted directly from the repository at commit db66476. 3,164 tracked files, 361 MB working tree.

AssetFilesLinesSizeNature
BIFO ME10 macros154118,0194.7 MBIn-house application
C++ me10_ai400141,8984.5 MBEngine, commands, stitch
C++ v6_lib3137,5531.3 MBGeometry, calculation, I/O
C converters185,1350.2 MBUSF/SLC/OF routines
VBScript glue2310,6970.35 MBLaunch, upload, image pipeline
Executables69—139 MBConverters, tools, runtime
DLLs22—26 MBEngine and support
Third-party ME10 macros~1,400~880,00013 MBVendored, not ours
In-house code~660~314,400~11 MBScope of the migration
17
Visual Studio solutions
v145
Build toolset (VS 2026)
MultiByte
Character set — not Unicode

How BIFO runs today

Every layer is Windows-specific. Every step is unversioned shell or script code.

Windows workstationcad.bat → cad.vbs (79 KB) → start.exe · registry keys · %APPDATA%
↓
ME10F.exeLicensed ME10 runtime · 8.2 MB
BIFO macros118k lines · menus, operations, UI
↓
isp.dll / ispwin7.dll~180k lines C++ · geometry, stitch, punch
69 converter EXEsUSF → SLC · MST · TFA · SHC · HYD · HEX
↓
Local and network filesBIFO_PATH · BIFO_DB_PATH · shares
DMFR server (PHP)query.php3 · stichfile.php3 · HTTP/FTP
↓
Supporting binariesImageMagick · tiffinfo · gtar · gzip · cygwin1.dll · 7za
The DMFR transport is plain HTTP to an internal host name. Configuration files are excluded from git. Debug mode is enabled in the shipped batch file.

Twelve findings, three of them critical

Ranked by business impact, not by technical novelty.

#FindingEvidenceSeverity
F1Single maintainer for the entire system12 commits, 1 authorCritical
F2ME10 is a licensed legacy runtimeME10F.exe, PTC licensingCritical
F3VBScript deprecated by Microsoft23 files, 10.7k linesHigh
F4No automated tests, no CI/CDhand-built solutions onlyHigh
F5Windows-only; no remote or mobilebat, registry, Win32High
F6Designs live on local/network files onlymanual DMFR uploadHigh
F7Debug mode on in production batch fileset ISP_DEBUG=1Medium
F8Plain HTTP to internal DMFR serverhttp://win103/dmfr/Medium
F9Machine and site config not versioned.gitignore excludes configMedium
F10–F1269 EXEs, MultiByte build, vendored binariesrepo inventoryMedium

The real risk is not old code. It is a single point of knowledge.

Maintainer unavailable — 4 weeks

Machine-format changes, production hotfixes and customer requests stop.

Maintainer leaves

No internal ability to change BIFO. External rescue contract at emergency rates.

ME10 drops OS support

Forced migration with no preparation time. 6–12 month delay.

Emergency rewrite

1.8× to 2.5× the planned cost. No test corpus. No parallel run.

Two weeks of production stoppage can exceed the entire modernisation budget. That is the comparison that matters — not the licence invoice.
Our own safeguard: one engineer, but client-owned repository, daily commits, living documentation, a two-week handover clause, and monthly code escrow.
The system is not failing. The supply of people and platforms that can keep it running is. — Assessment conclusion

Keep the knowledge. Rewrite the code.

We do not preserve the old runtime. We preserve what it knows, then prove the new code matches it.

Preserved as knowledge

  • Stitch and punch behaviour — ported or rewritten, then proven
  • Machine definitions — ported as data, validated against legacy output
  • File formats — reimplemented from specs and golden files
  • Operator vocabulary — German terms and keyboard workflow
  • Multilingual coverage — DE, EN, FR, IT, ES, JA

Rewritten — new codebase

  • UI — React + TypeScript instead of 118k lines of ME10 macros
  • Core — TypeScript + Rust/WASM instead of C++ DLLs
  • Formats — one new library instead of 69 executables
  • Storage — versioned autosave instead of network shares
  • Auth and audit — Moii One instead of local accounts
This is a clean rewrite. Porting is limited to what can be proven against the legacy output.

One codebase. Two delivery targets.

The same React UI and the same core run in both shells. There is no second implementation to keep in sync.

Desktop

Electron application

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.

Web

Web app / PWA

Chrome, Edge, Safari, Firefox, iPadOS and Android. Same editor, no installation. Ideal for machine-floor tablets, sales, management review and remote designers. Offline capable.

12
Months to v1
6
Machine families supported
100%
Output parity target
0
ME10 licences after cut-over

Target architecture

Local-first clients, a shared portable core, and a platform that handles only what a desktop app cannot do well.

Electron desktopWindows · macOS · Linux · offline · devices
Web app / PWAbrowser · iPad · Android · no install
↓ shared codebase ↓
React + TypeScript UIdesign system · menus · panels · touch profile
New BIFO core — TypeScript + Rust/WASMgeometry · stitch · punch · formats
Local journalSQLite · OPFS · undo/redo · offline queue
Native bridge (N-API)files · USB · Wintab · printers · machines
WebGL2 rendererinstanced lines · LOD · spatial index
↓ HTTPS ↓
Moii One platformidentity · SSO · MFA · autosave · versions · object storage · backups · conversion jobs · licensing · audit · telemetry

Rewrite first. Port only what proves itself.

All code is new. Porting is limited to definitions, rules and isolated math that we can prove against the legacy output.

Ported into the new codebase

  • Machine definitions — SLCDEF, isp_mfun
  • Format rules — field layouts and machine codes
  • Terminology — German operator language
  • Keyboard workflow — shortcuts and X-keys maps
  • Test corpus — real designs and legacy outputs
  • Isolated math — proven formulas and tables

Written new

  • UI — React + TypeScript
  • Core — TypeScript + Rust/WASM
  • Geometry and stitch engine
  • All format parsers and writers
  • Document model and undo
  • Electron and PWA shells
Rewrite discipline: every ported rule must pass a golden-file test against legacy output. If it cannot be proven, it is rewritten from observed behaviour.

Electron desktop — the production workstation

Everything a designer needs, on every desktop OS, with hardware access that a browser cannot provide.

Platforms

Windows 10/11 x64 and arm64, macOS Intel and Apple Silicon, Linux AppImage/deb/rpm.

Files

Native dialogs, UNC paths, network shares, file watching, large-file streaming.

Pen tablets

Wintab pressure and tilt through a native addon. Existing Wacom workflow preserved.

X-keys keypads

Raw HID access. Existing .mw3 layouts and legends continue to work.

Print and plot

Native print pipeline and plotter drivers, with the same output controls.

Machine upload

Direct share, FTP/SFTP, serial where required. No server round trip.

Offline

Full editing with a local journal. Sync resumes automatically when the network returns.

Updates

Signed, staged auto-update with rollback. MSI for managed deployment.

Security

Sandboxed renderer, context isolation, CSP, signed builds, notarisation.

Web app — the same editor, everywhere else

Not a viewer. The same core and the same UI, delivered without installation.

What the web app does

  • Open, edit, punch and save designs
  • Export through the server-side conversion service
  • Autosave, version history and restore
  • Offline editing with a local OPFS journal
  • Apple Pencil and touch input
  • Design review and approval links

What needs desktop or an agent

  • X-keys programmable keypads (raw HID)
  • Plotter drivers and production printing
  • Direct machine upload on the factory network
  • Very large multi-monitor workspaces
0
Install steps
<15m
New user onboarding
Any
Device with a browser
Same
UI and data model

Capability matrix

Desktop and web share the editor. They differ only where hardware is involved.

CapabilityElectronWeb / PWANote
Open, edit, save designYesYesSame core
Punch, stitch, needle patternsYesYesSame core
Raster import and vectoriseYesYesServer option for large scans
Export all machine formatsYesYesWeb uses conversion service
Autosave and version historyYesYesSame API
Offline editingYesYesLocal journal
Pen tablet pressureWintabPointerWeb lacks ExpressKey config
X-keys keypadYesNoLocal agent option
Plotter and print driversYesLimitedDesktop for production plotting
Direct machine uploadYesNoServer job or agent
No installationNoYesKey value for sales
iPad and AndroidNoYesTouch UI profile

Why Electron, and not the alternatives

The requirement for a web app eliminates most desktop frameworks before performance is even considered.

CriterionElectronTauriQt.NET MAUIBrowser only
Shares UI with web appSame codeYesNoNon/a
Native module support (Rust/WASM)YesRustYesPartialWASM only
Consistent renderingChromium everywhereOS WebView differsNativeNativeBrowser-dependent
USB / HID / X-keysYesYesYesPartialLimited
Printing and plottingMatureLimitedMatureLimitedNo
Signed auto-updateMatureYesManualYesn/a
Installer size~120 MB~10 MB~40 MB~30 MB0
Hiring poolVery largeGrowingLargeMediumVery large

Why it wins here

One UI codebase for desktop and web. Identical Chromium rendering. Direct native access. Mature signing and update chain. Large talent pool.

Accepted trade-off

Larger installer and higher memory than Tauri. Acceptable for a CAD workstation. The same UI can move to Tauri later without a rewrite.

Moii One — the services BIFO lacks

The desktop app keeps working offline. The platform adds identity, safety, history and control.

Identity

OIDC, SSO with Microsoft Entra ID, MFA, role-based access. One login for desktop and web.

Autosave

Local journal plus delta sync every 15 seconds or 20 operations. Never blocks on the network.

Version history

Immutable versions, restore, metadata compare, conflicted copies instead of overwrites.

Object storage

Encrypted, versioned, replicated storage for designs and exports.

Backups

Daily snapshots, 35-day retention, monthly archive, cross-region copy, quarterly restore drill.

Conversion jobs

Queue, retry and batch export for web clients and bulk migration.

Licensing

Seat count, entitlements, feature flags, offline lease. Replaces per-seat ME10 licensing.

Audit

Immutable event log, export to SIEM, full traceability for customer audits.

Telemetry

Crash reports, performance and usage. EU-hosted and opt-in.

Moii One is our application platform. The name can be removed or white-labelled for external presentations.

Local-first autosave

Every edit is durable before it reaches the screen. The network is a background service, not a dependency.

1 · EditThe designer performs an operation in the new core.
↓
2 · JournalThe command and checksum are appended to the local journal (SQLite or OPFS). Survives crash and power loss.
↓
3 · SyncEvery 15 seconds or 20 operations, a delta is sent to Moii One. The server returns a revision and an ETag.
↓
4 · ConfirmThe app marks the journal entry as synced. Offline entries queue and resume automatically.
15 s
Autosave interval
<50 ms
Local journal write
0
Lost documents in failure tests
Never
Silent overwrite of a conflict
Conflict rule: binary design revisions use last-writer-wins with a preserved conflicted copy. Annotations and metadata merge. No work is ever discarded silently.

Backup, residency and audit

Forster Rohner is a Swiss company serving international brands. Data handling is part of the product.

ControlValue
Object versioningEvery save, 90 days
Daily backup35 days
Monthly archive24 months
Cross-region copyYes
RPO15 minutes
RTO4 hours
Restore drillQuarterly, documented
EncryptionTLS 1.3 · AES-256

Residency

Hosting in Switzerland or the EU. GDPR and Swiss FADP aligned. Data processing agreement and DPIA before go-live.

Traceability

Every save, export, download and permission change is logged. Luxury-brand customers increasingly require this evidence.

Access control

Least privilege, role-based access, instant revocation when a user leaves.

Strangler, not big bang

The legacy system stays live for the whole programme. Users move when their workflow is proven, not on a fixed date.

Month 0–1

Phase 0 · Proof

Specification, corpus, WASM proof, v1 scope.

Month 1–5

Phase 1 · Core

Domain extraction, new core, document model, format parsers, CI.

Month 5–11

Phase 2 · MVP

Electron shell, draw, punch, stitch, autosave, first formats.

Month 11–17

Phase 3 · Parity

Remaining operations, formats, Electron devices, PWA.

Month 17–20

Phase 4 · Rollout

Pilot, training, data migration, legacy read-only.

Parallel run

Legacy ME10 and the new app both work on the same files during transition.

Feature parity matrix

Every menu is Ported, Improved, Deferred or Retired. Nothing is dropped silently.

Reversible

If a pilot site is not ready, it stays on ME10. No forced cut-over date.

Golden-file testing is the backbone

We capture what the legacy system produces, then prove the new system produces the same result — before any machine sees it.

LegacyReal design → legacy converter → recorded output
New coreSame design → new core → new output
CompareByte-for-byte, then stitch list and machine function sequence
↓ release gate ↓
RuleNo release may change machine output without a signed-off reason.
TierContentSizePurpose
T1 — UnitHand-built geometry cases500+Fast, precise algorithm tests
T2 — FormatOne file per machine family and format~40Parser and writer correctness
T3 — ProductionReal designs from the archive200–500Real-world coverage
T4 — Stress1M+ stitch designs and edge cases20+Performance and stability
Gate: 100% parity on T1–T3 before any production rollout. T4 must meet the performance targets.

Twenty months, five milestones

One senior engineer, AI-assisted. Phases overlap. Each milestone is a stop gate, so the programme can pause at any point.

IDMonthMilestoneExit criterion
M11Phase 0 completeSigned v1 scope, 50-design corpus, WASM proof
M25Core complete100% parity on T1–T2, deterministic build, CI green
M311Editor MVPThree designers complete a real job end to end
M417Parity and betaDaily workflow parity, Electron and PWA beta, platform live
M520Rollout complete90% adoption, legacy read-only, handover signed
1
Engineer + AI
0.25
Domain expert (FR)
CHF 7.5k
Per month
CHF 5k
Phase 0, credited
Phase 0 is the only commitment requested now. It costs CHF 5,000, takes three weeks, and is credited against month 1.

Cost model

One senior engineer, AI-assisted. CHF 150,000 over 20 months. No capital approval. The CHF 230k team model is replaced.

Proof
CHF 5k
3 weeks · Phase 0 · credited
  • Signed v1 specification
  • 50-design golden-file corpus
  • Prototype proof on a real file
  • Confirmed cost baseline
Recommended
Delivery
CHF 7.5k
per month · up to 120 hours
  • One senior engineer, full-time
  • AI toolchain, CI and signing
  • Weekly demo and written status
  • Rolling · 30 days notice
v1 · 12 months
CHF 90k
Phase 0 credited · 20 months = 150k
  • Electron desktop and web
  • Daily workflow and 2 machine families
  • Moii One autosave and backup
  • Support CHF 1.5k per month
StageMonthsFeeOutcome
Phase 0 · proof0–1CHF 5,000Credited against month 1
Months 1–66CHF 45,000Desktop and web, draw, punch, 2 formats
Months 7–126CHF 45,000Daily workflow parity, devices, PWA
Months 13–208CHF 60,000Remaining operations, formats, rollout
Full programme20CHF 150,000Phase 0 credited · support CHF 1,500/month
Stop points: Phase 0 CHF 5,000 · MVP CHF 45,000 · v1 CHF 90,000 · full programme CHF 150,000. No single decision commits the full amount.

Budget and stop points

CHF 150,000 over 20 months. Four stop points. No assumed annual cost.

Phase 0 · proof
CHF 5k
Stop at MVP · month 6
CHF 45k
Stop at v1 · month 12
CHF 90k
Full programme · month 20
CHF 150k
PeriodMonthsCashWhat you have
Phase 01CHF 5,000Specification, corpus, prototype proof
MVP6CHF 45,000Desktop and web, core editing, two formats
v112CHF 90,000Daily workflow, devices, PWA
Full programme20CHF 150,000All active operations and formats
No assumed savings. This proposal does not assume a current annual run cost. If a savings case is needed, Phase 0 documents the actual licence, support and hardware costs.

Team and governance

One senior engineer, AI-assisted. One client expert, four hours per week. No project manager, no hand-offs.

RoleFTEFocus
Senior full-stack engineer (C++/WASM/TS)1.0Architecture, core, UI, backend, delivery
Domain expert (Forster Rohner)0.25Parity review and machine acceptance
IT and operations (Forster Rohner)0.10Accounts, access, rollout
External security reviewer (optional)8 h/qThreat model and penetration test
Delivery headcount1

Weekly

Working demo and written status.

Monthly

Steering review: scope, risk, budget.

Daily

Commits to the client repository.

Always

Forster Rohner owns code, tests and infrastructure.

Continuity is protected: client-owned repository, daily commits, living documentation, a two-week handover clause, and monthly code escrow.

What "done" means

Every criterion is measurable. No subjective sign-off.

FunctionalTarget
Machine output parity, T1–T3100%
Active operations ported or retired100%
Machine families accepted6 / 6
Real jobs completed end to end50 / 50
Round-trip without data loss100%
Performance and operationsTarget
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%
0
Critical findings at go-live
0
Lost documents
<15m
Onboarding a designer
−40%
Support tickets per user

Risks and mitigations

The top five risks, stated openly, with the control that addresses each one.

RiskLikelihoodImpactMitigation
ME10 macro semantics not fully understoodHighHighPhase 0 parity catalogue; bi-weekly designer review; golden files
Machine output differs in edge casesMediumCriticalT1–T3 corpus; dual-run in pilot; machine acceptance tests
C++ core does not compile to WASM cleanlyMediumHighEarly proof in Phase 0; native addon fallback for desktop
Performance unacceptable at 1M+ stitchesMediumHighWebGL from day one; stress corpus; early benchmarks
User resistance to changeMediumHighParallel run; keyboard parity; pilot champions; training
Scope creep from adjacent requestsHighMediumFixed parity matrix; change control; deferred backlog
Licensing issue with extracted algorithmsLowHighLegal review in Phase 0; confirm code ownership
Legal checkpoints before Phase 1: ownership of the ME10 macros and C++ engine, PTC licence scope, third-party binary redistribution, and font and icon licences.

Recommendation and next steps

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.

Recommendation

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.

Decision requested

CHF 5,000 for Phase 0. No commitment to the monthly programme is requested at this time.

#ActionOwnerWhen
1Approve Phase 0 budgetForster RohnerWeek 0
2Nominate domain expert (4 h/week)Forster RohnerWeek 0
3Provide licence and support cost figuresFR financeWeek 1
4Legal review of code ownershipFR legalWeeks 1–2
5Collect 50 production designs and outputsJointWeeks 1–3
6Build WebAssembly geometry proofDeliveryWeeks 1–3
7Present v1 scope and start month 1DeliveryWeek 3

Keep the knowledge.
Replace the platform.

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 Forster Rohner
←→navigate