Skip to content

Overview

Lonca is an open-source collection of TypeScript SDKs for Turkish marketplaces — built so a single TypeScript codebase can integrate with Trendyol, Hepsiburada, and (eventually) every other major Turkish marketplace through a uniform, type-safe surface.

If you sell on more than one Turkish marketplace, you’ve probably written something like this:

  • A custom HTTP client per marketplace
  • Hand-rolled retry & rate limiting
  • Loose typing because the marketplace’s docs ship as HTML tables
  • Re-discovery of host-specific quirks (case sensitivity, undocumented enums, …) months after launch

There’s no widely-adopted open standard. Marketplaces sometimes ship official SDKs but they’re often Java/.NET-only, partial, or untyped. Lonca aims to fill this gap with a community-maintained open standard.

PackageWhat it does
@lonca/coreShared primitives — error hierarchy (AuthError, RateLimitError, …), retry with exponential backoff, token-bucket rate limiter, structured logger, cursor pagination helpers.
@lonca/trendyolTrendyol Marketplace SDK — 14 resources, ~70 methods, webhook event parser.
@lonca/hepsiburadaHepsiburada Marketplace SDK — 12 resources, 95 methods, webhook event parser. Full developer-portal coverage.
  • Live-verified. Every endpoint is typed from a real sandbox response, not just an OpenAPI spec. The Hepsiburada SDK was built by probing SIT directly and recording the wire shape per surface.
  • Spec-faithful. Method signatures mirror the published paths / parameters / body shapes. We document the quirks instead of papering over them — see for example the per-host casing matrix.
  • No magic. Plain fetch, plain TypeScript. No code generation, no opaque proxy classes. You can read the SDK source and find the exact URL each method builds.
  • Forward-compatible. Every returned row carries a raw: Record<string, unknown> escape hatch — undocumented fields stay accessible without an SDK release.
  1. Read the Installation page.
  2. Configure Authentication for the marketplace you target.
  3. Skim the per-SDK guide (Trendyol or Hepsiburada) for end-to-end usage flows.
  4. Use the API Reference sidebar for method-by-method detail.

Unofficial. Lonca is an independent, community-maintained project — not affiliated with, endorsed by, or supported by Trendyol, Hepsiburada, or any other marketplace. All marketplace names and trademarks belong to their respective owners.