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

@openbanto/connector-lineworks

v0.1.0

Published

LINE WORKS Bot connector plugin for OpenBanto — bridges a LINE WORKS Bot (Service Account / JWT auth, Bot API messaging, signed callbacks) to the OpenBanto gateway as an external plugin.

Readme

@openbanto/connector-lineworks

LINE WORKS Bot connector plugin for OpenBanto.

It bridges a LINE WORKS Bot to the OpenBanto gateway as an external plugin — implemented against @openbanto/connector-sdk only, with no dependency on the OpenBanto core.

  • Auth: Service Account (JWT / RS256) → OAuth2 access token, cached in memory.
  • Send: Bot API POST /v1.0/bots/{botId}/{users|channels}/{id}/messages.
  • Receive: signed HTTP callback, X-WORKS-Signature = Base64(HMAC-SHA256(rawBody, botSecret)).

Capabilities

| threading | messageEdits | reactions | attachments | |-----------|--------------|-----------|-------------| | no | no | no | no |

addReaction / removeReaction / editMessage are explicit no-ops (LINE WORKS Bot API has no equivalent). replyMessage sends a fresh message to the same source (there is no native threaded reply).

Setup (LINE WORKS Developer Console)

  1. Create a Bot in the LINE WORKS Developer Console. Note the Bot ID and generate a Bot Secret.
  2. Enable Callback on the Bot and register your Callback URL: https://<your-gateway-host><webhookPath> (default webhookPath = /webhooks/lineworks/<instance-id>). Subscribe to the message event.
  3. Create an App (Service Account) to get Client ID and Client Secret, and download the Service Account private key (.pem). Note the Service Account ID.
  4. Grant the app the bot (or bot.message) OAuth scope.

Config (config.yaml)

connectors:
  instances:
    - type: lineworks
      id: lw-support           # instance id (used in sessionKey + default webhook path)
      employee: banto          # optional: OpenBanto employee this instance routes to
      clientId: "abcd1234..."
      clientSecret: "s3cr3t..."
      serviceAccount: "xxxx.serviceaccount@yourdomain"
      # privateKey: PEM string OR a path to a .pem/.key file — both accepted:
      privateKey: /etc/openbanto/secrets/lineworks-private.pem
      botId: "10012345"
      botSecret: "botSecretForHmac..."
      domainId: "400000000"    # optional
      channelId: "channel-uuid"  # optional default channel for outbound-only use
      webhookPath: /webhooks/lineworks/lw-support   # optional; defaults from id
      allowFrom:               # optional: accept callbacks only from these ids
        - "user-id-1"
        - "channel-uuid"

privateKey accepts either a PEM string inline or a filesystem path; a value containing -----BEGIN is used verbatim, otherwise it is read as a file.

Notes / TODO(verify)

Two spots are marked // TODO(verify): in the source because the fetched docs did not literally show them:

  • Channel send path — mirrors the confirmed user path (/bots/{botId}/channels/{channelId}/messages); confirm on the console.
  • Exact scope — bot vs least-privilege bot.message for send-only.

License

MIT