Fee and profit calculators for cross-border e-commerce sellers. Static site, no framework.
src/data/<platform>/<market>.json: rate files extracted from official sources (src/make_data.py)src/markets.py: market registry (selectors, toggles, fee components, sources) and a Python mirror of the engine used to compute the worked examplessrc/i18n.py: UI strings per language (en,ms)src/content.py: page copy and guides; every figure is computed from the rate filessrc/sf_site.py,src/build.py: page shell, SEO (canonical, hreflang, OG, JSON-LD), sitemap and robotsassets/engine.js: generic calculator engine driven by the market definition embedded in each page
python3 src/build.py # canonical origin defaults to https://sellerfee.app/
- Add a rate file under
src/data/<platform>/. - Add an entry to
MARKETSinsrc/markets.pywith its sources. - Add the page copy in
src/content.py(PAGE_FN) and rebuild.
deploy/CNAME holds sellerfee.app. Copy it to the repo root, or set the custom domain in the Pages settings, only once DNS points at GitHub Pages. Doing it earlier makes the github.io address redirect to a domain that doesn't resolve yet.
Monetization is off by default. Config lives in src/ads_config.py (or env vars).
- Apply for Google AdSense with site
https://sellerfee.app. - After approval, rebuild with your publisher id:
Optionally set
ADSENSE_CLIENT=ca-pub-xxxxxxxxxxxxxxxx python3 src/build.pyADSENSE_SLOT_INARTICLE/ADSENSE_SLOT_DISPLAYfor manual units, or enable Auto ads in the AdSense UI. ads.txtis written automatically whenADSENSE_CLIENTis set.- Affiliate cards (Helium 10 / Jungle Scout) appear only when
AFFILIATE_HELIUM10/AFFILIATE_JUNGLESCOUTenv vars (or the URLs inads_config.py) are filled.