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

@ddcmarket/sdk

v0.3.1

Published

TypeScript SDK for DDC Market Contract integration

Readme

DDC Market SDK

a SDK that is TypeScript Compatible NPM for DDC Market Contract integration

Design Idea

Reference to DDC Market Contracts, Empowering any Dapp that intent to integrate DDC Market SDK to realize quick business growth.

Architecture

Below is an architecture map for DDC Market SDK integration in a Dapp:

flowchart TD
    subgraph "B2B Business Layer"
        A[Business Dapp Website]
        B[DDC Market SDK]
        C{Choose Management API}
    end

    subgraph "SDK Management APIs"
        D[DDCNFT Management API]
        E[Membership Management API]
    end

    subgraph "Blockchain Layer"
        F[DDC Market Contracts]
    end

    subgraph "Data Collection & Display"
        G[DDC Market Backend Service]
        H[DDC Explore Service]
    end

    subgraph "B2C Consumer Layer"
        I[End User]
        J[User Wallet]
        K[Token Redemption]
        L[Membership Verification]
    end

    %% B2B Business Flow
    A -->|Imports| B
    B -->|Call SDK| C
    C -->|DDCNFT| D
    C -->|Membership| E

    %% SDK Management APIs to Blockchain
    D -->|Deploy & Manage DDCNFT| F
    E -->|Deploy & Manage Membership| F
    D -.->|SDK encapsulates| F
    E -.->|SDK encapsulates| F

    %% Data Collection (Independent)
    D -->|Send DDCNFT info| G
    E -->|Send Membership info| G
    F -->|On-chain data| G
    G -->|Aggregated data| H

    %% B2C Consumer Operations (Independent)
    F -->|Transfer tokens| J
    I -->|Redeem tokens| K
    K -->|Call contract| F
    F -->|Process rewards| I

    %% Membership Verification
    E -->|Verify| L
    L -->|Check status| F
    F -->|Return result| E

    %% Display to Consumer
    H -->|Show info| I

    %% Styling
    classDef businessClass fill:#e1f5fe,stroke:#01579b,stroke-width:2px
    classDef apiClass fill:#f3e5f5,stroke:#4a148c,stroke-width:2px
    classDef contractClass fill:#e8f5e8,stroke:#1b5e20,stroke-width:2px
    classDef dataClass fill:#fff3e0,stroke:#e65100,stroke-width:2px
    classDef consumerClass fill:#fce4ec,stroke:#880e4f,stroke-width:2px

    class A,B,C businessClass
    class D,E apiClass
    class F contractClass
    class G,H dataClass
    class I,J,K,L consumerClass

Legend:

B2B Business Layer:

  • Business Dapp integrates SDK via NPM
  • Business calls SDK to choose management type (DDCNFT or Membership)

SDK Management APIs:

  • DDCNFT Management API & Membership Management API: SDK-provided peer-level management interfaces
  • Both APIs are at the same level, providing different management functionalities
  • Both encapsulate the underlying Blockchain Layer

Blockchain Layer:

  • DDC Market Contracts: Blockchain contract layer
  • Encapsulated and called by upper-layer Management APIs
  • Handles all actual on-chain operations

Data Collection & Display (Independent):

  • DDC Market Backend Service: Independently collects data from SDK and contracts
  • DDC Explore Service: Independently displays aggregated information
  • Relatively independent from B2B and B2C scenarios, responsible for data collection and display

B2C Consumer Layer (Independent):

  • End User: C-end users as system consumers
  • User Wallet: User wallet for receiving and storing tokens
  • Token Redemption: Users redeem tokens to obtain rewards
  • Membership Verification: B2B side verifies user membership status
  • C-end scenario is relatively independent from B2B scenario, both are system users

Design Requirements

  • Wallet integration: Users can use their own wallet providers (EIP-1193 Standard) to interact with DDC contracts through the SDK

  • Default centralized services for users to read/write configuration and storage information

  • Prepare user Private Key for Signing Contract

Installation

pnpm install

Build SDK

pnpm build:dev

Usage & Examples

local demo

pnpm demo:dev