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

devalender

v0.2.0

Published

Book, reschedule, and manage appointments from a terminal or an AI agent

Readme

devalender CLI

Book, reschedule, and manage appointments from a terminal or an AI agent. Every API action is available, with --json output on every command.

Install

npm i -g devalender
devalender --help

Build and run (from the monorepo)

pnpm exec nx build cli
node packages/cli/dist/main.mjs --help
pnpm exec nx run cli:check-pack   # pack, install the tarball in a temp dir, smoke-test

The CLI is a single self-contained bundle (@devalender/client and @devalender/contracts are bundled in, so the client is not published separately). Publishing is a manual step for Emit: pnpm publish --filter ./packages/cli.

Authentication

Run devalender login. It prints a short code and a URL (and opens your browser on a terminal); approve it on devalender.com, signing in if needed, and the CLI stores its own key in ~/.config/devalender/config.json (mode 0600).

  • AI agents: devalender login --no-browser --json prints the URL and code as its first JSON line ({"status":"pending","verificationUriComplete":..., "userCode":...}) so you can hand them to your human, then waits and finishes with the me record.
  • CI: create a key in the dashboard (or devalender keys create --name <label>) and run devalender login --key dvl_... --api-url https://api.example.com, or set DEVALENDER_API_KEY and DEVALENDER_API_URL (agents may do this too). Environment variables take precedence over the config file.

Without a stored login, the CLI talks to https://devalender.com/api. Point it at a local api with --api-url http://localhost:3051 or DEVALENDER_API_URL.

slots, book, and manage * are public and never send the key.

Agent usage

export DEVALENDER_API_URL=https://api.example.com

# find a slot, book it, move it, cancel it — no browser, no login
devalender slots alice/intro --from 2030-01-07 --to 2030-01-14 --json
devalender book alice/intro --start 2030-01-07T10:00:00Z --name "Bob" --email [email protected] --json
devalender manage reschedule --id <booking-id> --token <manageToken> --start 2030-01-08T10:00:00Z --json
devalender manage cancel --id <booking-id> --token <manageToken> --json
  • --json prints exactly the API response to stdout (commands with no response body print {"ok":true}). Errors go to stderr as {"error","message"}.
  • book and manage reschedule return a manageToken; keep the latest one.
  • Times: pass ISO 8601 with an offset (2030-01-07T10:00:00Z), or a local time (2030-01-07T10:00) interpreted in --tz. --tz (IANA name, default: system timezone) also controls display.

Exit codes

| code | meaning | | ---- | ----------------------------------------- | | 0 | success | | 1 | generic error (network, server) | | 2 | usage error or invalid input | | 3 | not authenticated / bad API key | | 4 | conflict (slot taken, booking not active) | | 5 | not found |

Commands

| command | needs key | | ---------------------------------------------------------------------------------- | --------- | | login, logout, whoami | whoami | | event-types list\|get\|create\|update\|delete | yes | | availability get\|set-rules --file\|override add\|override remove | yes | | bookings list\|get\|cancel\|reschedule | yes | | keys list\|create\|revoke | yes | | slots <handle>/<slug>, book <handle>/<slug>, manage view\|cancel\|reschedule | no |

Run any command with --help for options and examples.

Releasing

  1. Bump version in packages/cli/package.json.
  2. pnpm nx build cli, then npm pack --dry-run from packages/cli (expect only dist/main.mjs, README.md, package.json).
  3. Install the packed tarball in a clean directory and run --version, --help, slots, and login --no-browser --json.
  4. npm publish from packages/cli (needs npm login and the account's one-time password or browser approval).
  5. npm view devalender version and npx -y devalender@<version> --version from a temp dir.