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

@dongkseo/registry

v0.1.4

Published

Readme

@dongkseo/registry

Stability: stable · pnpm add @dongkseo/registry

이 파일은 에이전트(사람·LLM)가 소스를 열지 않고도 이 패키지를 쓸 수 있게 하는 오리엔테이션 문서다. 정확한 API 타입은 "API 표면"의 방법으로 signatures만 읽어라 — 본문을 베끼지 말 것.

무엇인가 / 무엇이 아닌가

에이전트 카드(AgentCard)의 레지스트리다. 이름·capability·구독 토픽으로 에이전트를 등록·조회한다.

  • ✅ 담는 것: AgentRegistry 구현(인메모리 InMemoryAgentRegistry + 분산 RedisAgentRegistry), 설정→구현 팩토리(createAgentRegistry), capability 라우팅 레지스트리(createCapabilityRegistry, checkInputContract)
  • ❌ 안 담는 것: AgentCard 타입 정의(→ @dongkseo/contracts), 라우팅/게이트웨이(→ @dongkseo/gateway), capability 매칭 기반 워커 dispatch(→ @dongkseo/fleet)

의존 방향: registry → contracts 단방향. @dongkseo/gateway에는 registry로 만든 resolver를 주입할 수 있지만, gateway가 registry를 직접 import하지는 않는다.

핵심 개념

| 개념 | 무엇 | 대표 export | | --- | --- | --- | | AgentRegistry (인메모리) | 이름/capability/구독 토픽으로 AgentCard를 등록·조회하는 인메모리 저장소 (dev/단일 프로세스) | InMemoryAgentRegistry | | AgentRegistry (Redis) | 같은 AgentRegistry 계약의 Redis 백엔드 구현 (분산/프로덕션) | RedisAgentRegistry | | 팩토리 | 설정을 받아 인메모리/Redis 구현을 골라 조립 | createAgentRegistry | | Capability 레지스트리 | capability→전략 라우팅 + 입력 계약 검증 | createCapabilityRegistry, checkInputContract |

InMemoryAgentRegistry/RedisAgentRegistry 메서드: register(card), unregister(name), get(name), list(), findByCapability(capability), findBySubscription(topic).

사용 레시피

import { InMemoryAgentRegistry } from '@dongkseo/registry';
import type { AgentCard } from '@dongkseo/contracts';

const registry = new InMemoryAgentRegistry();
await registry.register(card);                      // AgentCard 등록

const coder = await registry.get('coder');          // 이름으로 조회 (없으면 null)
const writers = await registry.findByCapability('write');   // capability로 필터
const subs = await registry.findBySubscription('agent.task'); // 토픽 구독자
const all = await registry.list();

API 표면 (소스 안 열고 타입만)

ctx_read(path="platform/registry/src/index.ts",              mode="map")          # 전체 export
ctx_read(path="platform/registry/src/redis.ts",              mode="signatures")   # RedisAgentRegistry
ctx_read(path="platform/registry/src/factory.ts",            mode="signatures")   # createAgentRegistry
ctx_read(path="platform/registry/src/capability-registry.ts", mode="signatures")  # createCapabilityRegistry

AgentCard·AgentRegistry 계약 타입은 ctx_read(path="packages/contracts/src/index.ts", mode="map").

유지보수 (drift 방지)

  • 이 README = 목적·개념·레시피만. API 정본은 소스 TSDoc.
  • 새 export가 생기면 src/index.ts 상단/이 표에 한 줄만 추가.

Tests

cd platform/registry && pnpm test

Part of the Nexora multi-tenant agent framework. · Package map