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

s-bit-agent

v0.0.6

Published

s.BitAgent is a simple Bitwarden CLI wrapper which provides a SSH2 Key Agent solution for Bitwarden.

Downloads

32

Readme

s.BitAgent

wip

A wrapper arround the Bitwarden CLI to provide a SSH Key Agent IPC interface.

Installation

npm i -g s-bit-agent
s-bit-agent -- bw config server https://<your-server>
s-bit-agent -- bw login
s-bit-agent -- bw lock <token from login>

Run s-bit-agent daemon in autostart.

s-bit-agent setup # shows which automatic autostart installation is possible
s-bit-agent daemon --help # See possible config options for the daemon
s-bit-agent setup --type SystemdAutostartService --args "--session-timeout 900" # for example

Add the socket to your .bashrc or .profile:

export SSH_AUTH_SOCK=~/.ssh/s-bit-agent.sock

Usage

s-bit-agent --help
s-bit-agent -- bw --help
s-bit-agent -- bwa --help
s-bit-agent status

Differences to bw and bwa

user@example:~$ s-bit-agent -- bw status
{..., "status": "locked"}

user@example:~$ s-bit-agent -- bwa status
Requesting session
Connected to server
Sent S_BIT_AGENT_REQUEST_SESSION
Received session
{..., "status": "unlocked"}

TODO

  • [X] Add basic IPC communication to talk accordingly to draft-miller-ssh-agent
  • [X] Add caching for the session
  • [X] add a key add command
  • [X] Add a key import command
  • [X] Add a status command
  • [X] Implement S_BIT_AGENT_REQUEST_SESSION into IPC
  • [X] Add a bw and bwa command
  • [X] Add a setup command to automatically install the daemon in the autostart
  • [X] Expand the S_BIT_AGENT_REQUEST_SESSION to also handle some other requests
  • [X] Add a public key local cache to speed up the key lookup, and reduce the password requests
  • [X] Handle detection of dead pipes and automatic removal of them
  • [X] Support for multiple IPC connections at once
  • [ ] Look into the secure heap implementation possibilitys
  • [ ] Add a lock command
  • [ ] Add setting to disable approval requests, or at least to set a timeout
  • [ ] Add a key list command
  • [ ] Add a key delete command
  • [ ] Add a key rename command
  • [ ] Add a key export command
  • [ ] Add tests
  • [ ] [Maybe™] Test or add support for windows.
  • [ ] [Maybe™] Develop a Tauri frontend/client, which internally uses the s-bit-agent to communicate with the server.
  • [ ] [Maybe™] Add capability to unlock the agent through bitwarden remote approval
  • [ ] [Maybe™] Add capability to unlock the agent through webauthn

Windows Support

Theoretically, the agent should work on windows, but it is not tested. If you want to help, please open an issue. If you encounter any problems, try to use wsl, that should work.

Also if you do not use wsl, you will need to manually register the agent in the autostart. Lastly as a tipp: you can modify the pipe name the daemon creates, by passing the SSH_AUTH_SOCK environment variable to the daemon.