Математика комиссий Etsy: маленькая модель на JavaScript (и почему дешевые товары вредят)
DEV · 13.11.2026 · 01:19
Комиссии на маркетплейсах могут показаться простыми, но их реализация в коде оказывается сложной задачей. Создан набор бесплатных калькуляторов комиссий и прибыли для различных платформ.
Оригинал
The math behind Etsy fees: a tiny JavaScript model (and why cheap items hurt)
Marketplace fees look simple until you try to put them in code. Some are percentages, some are fixed, they apply to different bases, and one of them depends on how the buyer found you. I built Fee Math, a set of free fee and profit calculators for Etsy, Amazon, eBay, TikTok Shop and payment processors. Etsy was the first one, and it's a nice small modelling exercise. Here is the whole thing in about 25 lines of JavaScript. Rates below are Etsy's US defaults as last checked in October 2026. Fe