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

adocycle

v0.1.12

Published

Azure DevOps CLI for querying your assigned work items

Readme

adocycle

adocycle is a TypeScript CLI for Azure DevOps work tracking.

Roadmap

See ROADMAP.md for planned improvements.

Installation

You must install this package globally to use the CLI:

npm install -g adocycle

PAT Prerequisites

Before first use, create an Azure DevOps PAT with:

  • Code (Read & write) (vso.code_write)
  • Work Items (Read & write) (vso.work_write)

Without these scopes, adocycle start cannot create branches or update work items. adocycle finish also requires these scopes to create/reuse pull requests and move state to review. adocycle comment uses Work Items (Read & write) to add comments to existing work items.

Requirements

  • Node.js >=20.20.0

Install

npm install

Build

npm run build

Usage

Show work assigned to you

adocycle mine

Show full details of a work item

adocycle show 12345
adocycle show 12345 --json

Start working on a work item

adocycle start 12345 --repo "D:\\repos\\my-service"
adocycle start 12345 --repo "https://dev.azure.com/myorg/MyProject/_git/MyRepo"

Add a comment to a work item

adocycle comment 12345 "Started investigation and captured repro steps."
adocycle comment 12345 --file work-note.md

Finish work and hand off to review

adocycle finish 12345 --repo "D:\\repos\\my-service"
adocycle finish 12345 --repo "https://dev.azure.com/myorg/MyProject/_git/MyRepo" --target main
adocycle finish 12345 --draft

Run an arbitrary WIQL query

adocycle query "SELECT [System.Id], [System.Title], [System.State] FROM WorkItems WHERE [System.AssignedTo] = @Me AND [System.State] <> 'Closed'"
adocycle query --file team-work.wiql --table
echo "SELECT [System.Id] FROM WorkItems WHERE [System.State] = 'New'" | adocycle query

Queries run across all projects by default (like the ADO web UI with "Query across projects" checked). Use --project to scope to a single project.

Set default repository for start and finish

adocycle repo set "D:\\repos\\my-service"
adocycle repo show
adocycle repo clear

Diagnose setup and PAT scopes

adocycle doctor
adocycle doctor --offline
adocycle doctor --json
adocycle doctor --org myorg --repo "https://dev.azure.com/myorg/MyProject/_git/MyRepo"

Options

adocycle mine --org myorg --limit 100
adocycle mine --json
adocycle mine --reauth

adocycle show 12345 --org myorg
adocycle show 12345 --json
adocycle show 12345 --reauth

adocycle start 12345 --base main
adocycle start 12345 --repo "https://dev.azure.com/myorg/MyProject/_git/MyRepo"
adocycle start 12345 --reauth

adocycle comment 12345 "Shared an update for the team"
adocycle comment 12345 --file update.md
adocycle comment 12345 "Shared an update for the team" --reauth

adocycle finish 12345 --target develop
adocycle finish 12345 --draft
adocycle finish 12345 --repo "https://dev.azure.com/myorg/MyProject/_git/MyRepo"

adocycle doctor --offline
adocycle doctor --json

adocycle query "SELECT ..." --org myorg --project MyProject --top 500
adocycle query "SELECT ..." --table
adocycle query --file my-query.wiql

Doctor Exit Behavior

  • adocycle doctor returns exit code 1 when blocking checks fail.
  • Blocking checks include Node version, git availability, org/PAT presence, Azure DevOps auth, and PAT scope probes.
  • Repository default configuration issues are warnings and do not force non-zero exit code.
  • --offline skips Azure DevOps auth/scope checks and reports them as skipped.

Output Style

  • Compact single-line rows using cli-table3
  • Aggressive title truncation with ellipsis
  • Short type labels (Product Backlog Item -> PBI)
  • Human-friendly updated timestamps (5m ago, 2h ago, Feb 27)
  • Color cues via chalk (for supported terminals):
    • Bug in red
    • PBI/Story in cyan
    • Approved in green
    • New in yellow/dim

Authentication

adocycle supports PAT-based auth in this order:

  1. Environment variables (ADO_ORG/ADO_ORG_URL, ADO_PAT)
  2. Local config file
  3. Interactive prompt (first run)

On first run, if org/PAT are missing, the CLI prompts in terminal and stores values in:

  • Windows: %APPDATA%\\adocycle\\config.json
  • Linux/macOS: standard user config directory from env-paths

If the PAT expires, adocycle mine prompts for a new PAT and updates local config. You can also force this with:

adocycle mine --reauth
adocycle start 12345 --reauth
adocycle comment 12345 "Following up after PAT refresh" --reauth

Publish Notes

Publishing is configured via:

  • bin mapping to dist/cli.js
  • files includes dist
  • prepublishOnly runs npm run build

License

MIT