JS and TS can get real messy real quick. 1 file? Many files? Barrel exports out of an index.ts file? Classes? but what about tree shaking methods on huge classes?
I've found a pattern that works well within the constraint of normal JS/TS that can help with these.