npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@isoftdata/ebay-utility

v1.5.0

Published

A TypeScript utility library for eBay API operations including inventory management, listings, and policy handling

Downloads

537

Readme

eBay Utility

A TypeScript utility library for eBay API operations including inventory management and listings

Installation

pnpm install @isoftdata/ebay-utility

Features

  • eBay API Integration: Complete TypeScript interfaces for eBay's Inventory API
  • Inventory Management: Push and sync inventory items to eBay
  • Policy Management: Handle fulfillment, payment, and return policies
  • Offer Management: Create and manage eBay offers
  • Location Management: Manage and reconcile inventory locations
  • Type Safety: Full TypeScript support with comprehensive type definitions

Quick Start

import { EbayAdapter, TokenManager, syncInventoryToEbay } from '@isoftdata/ebay-utility'

// Initialize the eBay adapter
const tokenManager = new TokenManager(/* your config */)
const ebayAdapter = new EbayAdapter(tokenManager)

// Sync inventory to eBay
const result = await syncInventoryToEbay({
	ebayAdapter,
	inventoryItem: {
		// your inventory item data
	},
	sku: 'your-sku',
})

Main Exports

Adapters

  • EbayAdapter - Main adapter for eBay API operations
  • WebEbayAdapter - Web-friendly eBay adapter
  • ItrackAdapter - Adapter for iTrack integration

Core Functions

  • syncInventoryToEbay - Sync inventory items to eBay
  • syncEbayInventoryAndOffer - Sync inventory and offer together
  • syncImageToEbay - Sync images to eBay
  • syncInventoryLocationToEbay - Sync a single inventory location to eBay
  • syncInventoryLocationsToEbay - Sync multiple inventory locations to eBay
  • syncFulfillmentPolicies - Sync fulfillment policies from eBay
  • syncPaymentPolicies - Sync payment policies from eBay
  • syncReturnPolicies - Sync return policies from eBay

Types and Interfaces

  • InventoryItem - eBay inventory item interface
  • Offer - eBay offer interface
  • FulfillmentPolicy, PaymentPolicy, ReturnPolicy - Policy interfaces
  • InventoryLocation, InventoryLocationFull, EbayInventoryLocationDTO - Location types
  • MarketplaceEnum, ConditionEnum, ListingDurationEnum - Enums for eBay values

Infrastructure

  • TokenManager - Handles eBay API authentication
  • MysqlDatastore - MySQL datastore implementation
  • EbayOAuthManager - Manages eBay OAuth tokens

Requirements

  • Node.js 22+
  • TypeScript 5+

Dependencies

This package includes the following key dependencies:

  • mysql2 - Database connectivity
  • validator - Data validation
  • yup & zod - Schema validation
  • xml2js - XML parsing for eBay responses

Testing

npm test

Tests run directly from TypeScript source via tsx — no build step required.

License

ISC

Contributing

Please ensure all TypeScript code follows the project's coding standards and includes appropriate type definitions.