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

@bettsnation/paperclip-plugin-servicenow

v0.1.1

Published

Paperclip plugin for bidirectional ServiceNow incident sync — webhook intake and auto-resolve

Readme

@bettsnation/paperclip-plugin-servicenow

Paperclip plugin for bidirectional ServiceNow incident sync.

Inbound (SN → Paperclip)

  • SN Business Rule fires webhook on incident creation
  • Plugin creates Paperclip issue assigned to target agent
  • Sets correlation_id on SN incident for back-reference

Outbound (Paperclip → SN)

  • Issue completed → auto-resolve SN incident
  • Issue status changes → SN work notes
  • Agent comments → SN work notes

Install

npm install @bettsnation/paperclip-plugin-servicenow

Or: Instance Settings → Plugins → Install Plugin → @bettsnation/paperclip-plugin-servicenow

Configuration

| Setting | Required | Description | |---------|----------|-------------| | snInstanceUrl | Yes | e.g. https://dev199497.service-now.com | | snUsernameRef | Yes | Secret ref for SN username | | snPasswordRef | Yes | Secret ref for SN password | | snWebhookSecretRef | Yes | Secret ref for inbound webhook verification | | targetCompanyId | Yes | Paperclip company for new issues | | targetAgentId | Yes | Agent to assign new issues to | | targetProjectId | Yes | Project for new issues | | autoResolve | No | Auto-resolve SN incidents (default: true) | | syncWorkNotes | No | Sync comments to SN (default: true) |

SN Business Rule

Create on incident table, after insert:

(function executeRule(current, previous) {
    var rm = new sn_ws.RESTMessageV2();
    rm.setEndpoint('<PLUGIN_WEBHOOK_URL>');
    rm.setHttpMethod('POST');
    rm.setRequestHeader('Content-Type', 'application/json');
    rm.setRequestHeader('X-SN-Webhook-Secret', gs.getProperty('x_pc.webhook_secret'));
    rm.setRequestBody(JSON.stringify({
        number: current.getValue('number'),
        sys_id: current.getValue('sys_id'),
        short_description: current.getValue('short_description'),
        description: current.getValue('description'),
        priority: current.getValue('priority'),
        caller_id: current.getDisplayValue('caller_id'),
        assignment_group: current.getDisplayValue('assignment_group'),
        category: current.getValue('category'),
        subcategory: current.getValue('subcategory')
    }));
    rm.executeAsync();
})(current, previous);

License

MIT