Home / work / abc-sim
Project page template · concept project. Swap the words and numbers for the real build.
A written book by iabd · 2025

abc-sim

Activity-based costing you can drag. Move a cost pool, watch every margin update.

TypeWeb app
StackTypeScript · Canvas
Year2025
RecipeTS + Cost + Ledger

Chapter 1 · The problem

ABC is easy to define and hard to feel.

Chapter 2 · The build

Pools, drivers and products are nodes on a canvas. Drag one and the allocation recomputes instantly.

const rate = pool.cost / sum(drivers.map(d => d.volume));
products.forEach(p => p.overhead += rate * p.usage[pool.id]);

Chapter 3 · What happened

3×faster revision
5cost pools
60 fpswhile dragging

Chapter 4 · Links

The repo on GitHub ↗ · live demo coming.

0
Advancement made!