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

codelocator-agent

v0.1.0

Published

Local CodeLocator Agent workbench for capturing Android layouts and asking AI about selected views.

Readme

CodeLocator Agent

CodeLocator Agent is a local browser workbench for Android apps that have integrated the CodeLocator SDK. It captures the current device layout through ADB, renders the screenshot and View tree, and can send selected View context to Codex for analysis or small code changes.

Requirements

  • Node.js 20 or newer.
  • ADB available in PATH, or pass it with --adb.
  • One connected Android device, or pass a device serial with --serial.
  • The target app must integrate CodeLocator and expose the layout capture broadcast.

Installation

临时运行可以直接使用 npx

npx codelocator-agent --project-root /path/to/android/project

需要固定安装到本机命令行时,使用全局安装:

npm install -g codelocator-agent
codelocator-agent --project-root /path/to/android/project

卸载全局命令:

npm uninstall -g codelocator-agent

Usage

Run with npx:

npx codelocator-agent --project-root /path/to/android/project

Or run after global installation:

codelocator-agent --project-root /path/to/android/project

Useful options:

npx codelocator-agent --project-root . --port 5123
npx codelocator-agent --project-root . --host 0.0.0.0
npx codelocator-agent --project-root . --serial R5CN0000000
npx codelocator-agent --project-root . --adb /path/to/adb

Workbench settings are saved on the local server under .codelocator-agent/settings-db.json. Settings changed in the browser persist across refreshes and server restarts. Explicit CLI values for --project-root, --serial, and --adb take precedence over the saved runtime settings and are written back for later runs.

After the server starts, open the printed URL in a browser. By default it listens on:

http://127.0.0.1:5123

CLI

codelocator-agent --project-root <path> [--host <host>] [--port <port>] [--serial <deviceSerial>] [--adb <adbPath>]

Development

npm install
npm run dev
npm run build
npm test

Local global-install verification before publishing:

npm install . -g
codelocator-agent --help
npm uninstall -g codelocator-agent

Publishing

当前包名是 codelocator-agentpackage.json 已配置:

  • bin.codelocator-agent = dist/server/cli.js,支持 npm install -g 后直接运行 codelocator-agent
  • files 只发布 distREADME.mdLICENSE.txtpackage.json
  • prepack 会在 npm pack / npm publish 前自动执行 npm run build
  • publishConfig.registry 固定到 https://registry.npmjs.org/,避免误发到镜像源。

发布前检查:

npm whoami --registry=https://registry.npmjs.org/
npm run typecheck
npm test
npm run build
npm publish --dry-run

正式发布:

npm publish --access public

发布后验证:

npm view codelocator-agent version --registry=https://registry.npmjs.org/
npm install -g codelocator-agent
codelocator-agent --help