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

@jacebenson/jsn

v4.0.0

Published

A command-line interface for ServiceNow that follows the Unix philosophy: simple, composable, and scriptable.

Readme

JSN — ServiceNow CLI

A command-line interface for ServiceNow. Type jsn and start working — no web UI needed.

Works standalone or with AI agents (Claude Code, OpenCode, Hermes, Cursor, Copilot).

Install

npm install -g @jacebenson/jsn

Node.js 18+. macOS, Linux, Windows.

The install also copies an AI agent skill file to ~/.agents/skills/servicenow/SKILL.md.

Quick Start

jsn setup                                    # Interactive first-time setup
jsn auth login https://dev12345.service-now.com
jsn incidents list --query "priority=1"      # Critical incidents

What It Does

jsn talks to the ServiceNow REST API. Read, create, update, delete — tickets, users, groups, records on any table. Inspect flows and business rules. Export update sets. Run background scripts.

Everything outputs JSON when piped, styled tables in a terminal.

# Core ticket work
jsn incidents list --query "active=true^priority=1"
jsn incidents INC0010001
jsn incidents create --description "Server down" --priority 1

# Admin tasks
jsn flows list                                # Interactive picker with pagination
jsn flows show "Assign Task"                  # Full flow detail
jsn rules list --query "collection=incident"
jsn updatesets set "My Feature"

# Generic table access
jsn records list --table incident --limit 50 --json | jq '.[].number'
jsn records create --table incident --data '{"short_description":"test"}'

# Script execution
jsn eval "gs.info('Hello World')"

Commands

Run jsn for the full grouped list. Commands are organized by ServiceNow domain:

Coreincidents, changes, requests, tasks, tickets

Automationflows, actions, rules, scrapi, updatesets, eval, rest

Accessacls, roles, scopes, properties, privileges

User Experienceforms, lists, clientscripts, uipolicies, uiactions

Datarecords, tables, columns, includes, import, logs, users, groups

Every command supports --json, --query, and --help.

Profiles (instances)

Switch between instances without re-authenticating.

jsn auth login https://dev12345.service-now.com
jsn auth status
jsn auth switch dev12345

Add another instance with jsn auth login <name-or-url> — run bare for an interactive picker.

Output Formats

| Flag | When to use | |------|-------------| | (default) | Terminal — styled tables | | --json | Pipelines, scripts | | --markdown | Documentation | | --quiet / -q | Data only, no envelope |

Authentication

OAuth 2.0 with PKCE. Credentials in ~/.config/servicenow/credentials/.

jsn auth login https://dev12345.service-now.com

For CI/CD, set environment variables:

export SERVICENOW_INSTANCE_URL="https://dev12345.service-now.com"
export SERVICENOW_OAUTH_TOKEN="***"
jsn incidents list

AI Agents

jsn ships with a skill file that tells AI agents how to use it. Installed automatically to ~/.agents/skills/servicenow/SKILL.md.

jsn skill show                  # View the skill
jsn skill install               # Install to Hermes
jsn skill install --target all  # All supported agents

Development

git clone https://github.com/jacebenson/jsn.git
cd jsn
npm install
npm test

Releases: npm run release -- patch (or minor, major). Tags, pushes, and publishes to npm via GitHub Actions.

License

MIT