One Codebase, Five Targets: Inside go-pptx's Architecture
go-pptx Tech Blog ยท Part 10: Architecture Evolution and Cross-Platform Delivery โ v2 Layering, engine, CLI, and WASM
Series: go-pptx Tech Blog (10 parts)
Baseline: v2.4.4
Keywords: ADR-030, facade convergence, engine, archlint, ECMA-376 generation pipeline, API tiers, CLI, WASM, cross-build
1. v1's architectural problem: facade and implementation entangled
v1's module root was both the "public facade" and the "implementation itself":
63 non-test files, over 20,000 lines;
Presentation + Slide had more than 100 methods;
Public types and business implementation were 100% in the same package;
CLI, WASM, and IR each attached to the facade, prone to implementation drift;
Refactoring the implementation inevitably touched public signatures.
This was fine early in the project, but by v2 the bottleneck was obvious: the public API is frozen, yet the implementation needs to evolve freely. So ADR-030 came about.
2.โฆ