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

doer-agent

v0.1.8

Published

Reverse-polling agent runtime for doer

Readme

doer-agent

doer-agent는 doer 서버에 연결되는 리버스 폴링 에이전트 런타임입니다. 로컬 머신이나 원격 워크스페이스에서 작업을 실행하고, 결과를 doer로 다시 전달합니다.

현재 구조

이 저장소 루트 자체가 doer-agent 프로젝트입니다. 예전 문서의 agent/ 하위 디렉토리 기준 설명은 더 이상 맞지 않습니다.

주요 엔트리 포인트:

  • doer-agent: 에이전트 본체 CLI
  • codex: Codex 래퍼 CLI

요구 사항

  • Node.js 20+
  • doer 서버 접근 가능
  • 발급된 user-id
  • 발급된 agent-secret

기본 서버는 https://doer.cranix.net입니다. 다른 서버를 쓸 때만 --server 또는 DOER_AGENT_SERVER를 지정하면 됩니다.

빠른 실행

패키지 설치 없이 바로 실행하려면 npx를 사용합니다. CLI는 run start -- 없이 직접 옵션을 받습니다.

macOS / Linux:

WORKSPACE="${WORKSPACE:-$PWD}" npx -y doer-agent \
  --user-id <userId> \
  --agent-secret <SECRET>

PowerShell:

$env:WORKSPACE = if ($env:WORKSPACE) { $env:WORKSPACE } else { (Get-Location).Path }
npx -y doer-agent `
  --user-id <userId> `
  --agent-secret <SECRET>

다른 서버를 붙일 때:

WORKSPACE="${WORKSPACE:-$PWD}" npx -y doer-agent \
  --server http://localhost:2020 \
  --user-id <userId> \
  --agent-secret <SECRET>

로컬 개발

이 저장소를 직접 수정하거나 빌드하려면 루트에서 실행합니다.

설치:

npm install

개발 모드 실행:

npm run start -- --user-id <userId> --agent-secret <SECRET>

배포 산출물 빌드:

npm run build

빌드 산출물 실행:

npm run start:dist -- --user-id <userId> --agent-secret <SECRET>

기본 서버가 아닌 경우에는 위 명령들에 --server <url>을 추가하면 됩니다.

환경변수

CLI 인자가 우선이고, 없으면 아래 환경변수를 사용합니다.

  • DOER_AGENT_SERVER: 선택. 기본값은 https://doer.cranix.net
  • DOER_AGENT_USER_ID: 필수
  • DOER_AGENT_SECRET: 필수
  • WORKSPACE: 선택. 작업 디렉터리
  • DOER_AGENT_MAX_CONCURRENCY: 선택. 동시 작업 수

예시:

DOER_AGENT_USER_ID=<userId> \
DOER_AGENT_SECRET=<SECRET> \
WORKSPACE=/absolute/path/to/workspace \
npm run start

로컬 서버 예시:

DOER_AGENT_SERVER=http://localhost:2020 \
DOER_AGENT_USER_ID=<userId> \
DOER_AGENT_SECRET=<SECRET> \
WORKSPACE=/absolute/path/to/workspace \
npm run start

자주 쓰는 옵션

  • --server: doer 서버 베이스 URL
  • --user-id: doer 사용자 ID
  • --agent-secret: doer가 발급한 에이전트 시크릿
  • --workspace-dir: 실행 전에 이동할 작업 디렉터리

시크릿 발급 예시

서버가 로컬에서 돌고 있을 때 예시입니다.

curl -X POST 'http://localhost:2020/api/users/<userId>/agent/secret' \
  -H 'Content-Type: application/json' \
  --cookie 'doer_session=<session-cookie>' \
  -d '{"name":"my-laptop"}'

응답 예시:

{
  "agent": { "id": "agent_...", "name": "my-laptop" },
  "agentSecret": "<SECRET>"
}

참고

  • runtime/에는 실행 보조 스크립트가 들어 있습니다.
  • Playwright MCP 프록시는 에이전트 상태 디렉터리(~/.doer-agent) 아래 소켓을 사용합니다.
  • 이 저장소에는 예전 README에 있던 scripts/build.sh, scripts/publish.sh, docker-compose.dev.yml이 없습니다. 현재 문서는 실제 파일 구조 기준으로 정리되어 있습니다.