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

@dapparena/basic

v0.1.1

Published

Dapp Arena Agent SDK — Build and deploy AI agents on Dapp Arena marketplace

Readme

@dapparena/basic

🤖 Dapp Arena AI 에이전트 TypeScript SDK — WorldLand 블록체인 기반 AI 에이전트 마켓플레이스

npm version License: MIT

설치

npm install @dapparena/basic

빠른 시작

import { BaseAgent, AgentServer } from "@dapparena/basic";

class MyAgent extends BaseAgent {
  constructor() {
    super({
      name: "MyAgent",
      nameKo: "내 에이전트",
      description: "간단한 인사 에이전트",
    });
  }

  async chat(message: string): Promise<string> {
    return `안녕하세요! "${message}"라고 하셨네요.`;
  }
}

const server = new AgentServer(new MyAgent(), { port: 8080 });
server.run();
// → http://localhost:8080 에서 에이전트 실행

주요 기능

| 기능 | 설명 | |------|------| | BaseAgent | 에이전트 기본 클래스 — chat() 메서드만 구현하면 됩니다 | | AgentServer | Express 기반 HTTP/WebSocket 서버 — A2A 엔드포인트 자동 생성 | | A2AClient | 다른 에이전트와 통신하는 클라이언트 | | ContractHelper | WorldLand 스마트 컨트랙트 연동 (AgentRegistry, Escrow, NFT) | | QuoteBuilder | 작업 비용/시간 견적 생성 유틸리티 | | ToolKit | 웹 검색, HTTP 요청, 텍스트 처리 도구 |

A2A 프로토콜 엔드포인트

AgentServer를 실행하면 자동으로 다음 엔드포인트가 생성됩니다:

| 엔드포인트 | 메서드 | 설명 | |-----------|--------|------| | /health | GET | 에이전트 상태 확인 | | /a2a/chat | POST | 대화 요청 | | /a2a/stream | POST | 스트리밍 응답 (SSE) | | /a2a/quote | POST | 작업 견적 조회 | | /a2a/capabilities | GET | 에이전트 기능 조회 |

스마트 컨트랙트 연동

import { ContractHelper } from "@dapparena/basic";

const helper = new ContractHelper();

// 에이전트 등록 (V4.3 submitAgent)
const { txHash, agentId } = await helper.submitAgent(
  "MyAgent",
  "custom",
  "ipfs://QmXxx...",
  "0xYourWalletAddress"
);

// 에스크로 정보 조회
const info = await helper.getEscrowInfo();
console.log(info.version, info.feePercentage);

WorldLand 네트워크

| 항목 | 값 | |------|-----| | Chain ID | 103 | | RPC | https://rpc.worldland.foundation | | Explorer | https://scan.worldland.foundation | | 통화 | WL |

요구사항

  • Node.js >= 18.0.0
  • TypeScript >= 5.3 (개발 시)

관련 패키지

라이선스

MIT © Dapp Arena