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

@86d-app/ebay

v0.0.23

Published

eBay marketplace integration for 86d commerce platform

Readme

[!WARNING] This project is under active development and is not ready for production use.

eBay Module

eBay marketplace integration supporting fixed-price and auction listings, order management, and channel analytics.

Installation

npm install @86d-app/ebay

Usage

import ebay from "@86d-app/ebay";

const module = ebay({
  clientId: "your-client-id",
  clientSecret: "your-client-secret",
  refreshToken: "your-refresh-token",
  siteId: "EBAY_US",
});

Configuration

| Option | Type | Default | Description | |--------|------|---------|-------------| | clientId | string | - | eBay API client ID | | clientSecret | string | - | eBay API client secret | | refreshToken | string | - | eBay API refresh token | | siteId | string | "EBAY_US" | eBay site ID |

Admin Endpoints

| Method | Path | Description | |--------|------|-------------| | GET | /admin/ebay/listings | List listings with optional status, listing type, page, and limit filters | | POST | /admin/ebay/listings/create | Create a new listing (fixed-price or auction) | | GET | /admin/ebay/listings/:id | Get a single listing by ID | | PUT | /admin/ebay/listings/:id/update | Update listing fields (title, price, quantity, condition, etc.) | | PUT | /admin/ebay/listings/:id/end | End a listing | | GET | /admin/ebay/orders | List orders with optional status, page, and limit filters | | PUT | /admin/ebay/orders/:id/ship | Ship an order with tracking number and carrier | | GET | /admin/ebay/stats | Get channel statistics | | GET | /admin/ebay/auctions | Get active auction listings |

Store Endpoints

| Method | Path | Description | |--------|------|-------------| | POST | /ebay/webhooks | Receive eBay webhook events (e.g. order.created triggers order ingestion) |

Controller API

interface EbayController extends ModuleController {
  createListing(params: { localProductId: string; title: string; price: number; listingType?: ListingType; auctionStartPrice?: number; quantity?: number; condition?: ListingCondition; categoryId?: string; duration?: string; metadata?: Record<string, unknown> }): Promise<EbayListing>;
  updateListing(id: string, params: Partial<EbayListing>): Promise<EbayListing | null>;
  endListing(id: string): Promise<EbayListing | null>;
  getListing(id: string): Promise<EbayListing | null>;
  getListingByProduct(productId: string): Promise<EbayListing | null>;
  listListings(params?: { status?: ListingStatus; listingType?: ListingType; take?: number; skip?: number }): Promise<EbayListing[]>;
  receiveOrder(params: { ebayOrderId: string; items: unknown[]; subtotal: number; shippingCost: number; ebayFee: number; paymentProcessingFee: number; total: number; ... }): Promise<EbayOrder>;
  getOrder(id: string): Promise<EbayOrder | null>;
  shipOrder(id: string, trackingNumber: string, carrier: string): Promise<EbayOrder | null>;
  listOrders(params?: { status?: EbayOrderStatus; take?: number; skip?: number }): Promise<EbayOrder[]>;
  getChannelStats(): Promise<ChannelStats>;
  getActiveAuctions(): Promise<EbayListing[]>;
}

Types

type ListingStatus = "active" | "ended" | "sold" | "draft" | "error";
type ListingType = "fixed-price" | "auction";
type ListingCondition = "new" | "like-new" | "very-good" | "good" | "acceptable" | "for-parts";
type EbayOrderStatus = "pending" | "paid" | "shipped" | "delivered" | "cancelled" | "returned";

Notes

  • Supports both fixed-price and auction listing types with bid tracking.
  • Auction listings track currentBid, bidCount, startTime, and endTime.
  • endListing() marks the listing as ended and records the end timestamp.
  • Fee tracking includes both eBay fees and payment processing fees per order.
  • Channel stats calculate average price across active listings.
  • Admin and store endpoints are fully wired via createAdminEndpoint and createStoreEndpoint.