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

@nmemonica/utils

v0.0.6

Published

Utilities and Cert Exchange service

Readme

@nmemonica/utils

Certificate Exchange Service (for development) for @nmemonica/snservice

npm version npm pkg

Generates required client and server certificates for mTLS authentication
Serves a download page for the generated client certificates (CA and pkcs12).

Includes other utilities like console color and network information

Service Install and Start

Prerequisites

  • A server (device running this service) with
  • A client (device with browser viewing Nmemonica)
    • Internet access
    • Network access to the server

This package will be installed as a dependency, but can be installed independently:

# clone repo
git clone https://github.com/bryanjimenez/nmemonica-utils.git
cd nmemonica-utils
# install dependencies
npm install
# build
npm run build
# run service
node ./dist/esm

or as a dependency the certificate exchange service can be ran:

# after being installed as a dependency
node ./node_modules/@nmemonica/utils

Generating Certificates

During the first time run the service will create server certificates and will prompt user for client certificate password and provide client_id.

# Certificates' default location: ./app/https/selfSignedCA:
$ ls ./app/https/selfSignedCA
client.66866.crt.pem        intermediate.crt.pem      root.openssl.cnf
client.66866.csr            intermediate.csr          server.crt.pem
client.66866.key.pem        intermediate.key.pem      server.csr
client.66866.pfx            intermediate.openssl.cnf  server.key.pem
client.openssl.66866.cnf    root.crt.pem              server.openssl.cnf
dh-param.pem                root.csr
intermediate.chain.crt.pem  root.key.pem

1. Install Self Signed CA

service_ip: 127.0.0.1, localhost or your ip.
http_port: default is 3000 unless set in snservice.conf.json (conf.cert.http)
client_id: provided by the utils cli on initial run (or after running with --service)

Chrome Desktop

  1. Navigate to chrome:settings/certificates
  2. Authorities tab
  3. Import (./app/https/selfSignedCA/intermediate.crt.pem)

Mobile

  1. Navigate to http://service_ip:http_port/
  2. Click Download button under Certificate Authority
  3. Install intermediate.crt.pem from browser.
  4. Name your CA (optional).

2. Install Client Certificate

Chrome Desktop

  1. Your certificates tab
  2. Click Import (./app/https/selfSignedCA/client.client_id.crt.pem)

Mobile

  1. After installing CA on the same page.
  2. Input client_id in client id field.
  3. Press Download or hit enter.
  4. Open and extract certificate using password provided for client_id.
  5. Name your client certificate (optional).

Configuration file

Configurations will be set from snservice.conf.json which should be located at the project's root directory.

// snservice.conf.json
{
  cert: {
    port: {
      http:   /*number;*/ 3000,   // default
      https:  /*number;*/ 3443,   // default
    };
  };

  directory: {
    ca:       /*string;*/ "app/https/selfSignedCA",
  };
}