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

@nodescript/module-generator

v1.0.9

Published

Generate NodeScript modules

Readme

Module Generator

Status: experimental

Sources of API specifications:

How to

Squad ADA docs

TLDR

  1. Generate specs from openapi:
npm run generate:openapi -- --in=openapi/<api-name>.json --out=specs/<api-name>.yaml
  1. Generate libraries
npm run generate:library -- --in=specs/<api-name>.yaml
  1. Publish libraries (See Nodescript publishing for more info.)
NODE_ENV=<env> FORCE_PUBLISH=true npm run publish:library -- --in=specs/<api-name>.yaml

Nodescript publishing

Both in production and development, you will need to set up a service account in NodeScript in the workspace created for the published modules:

  1. In Nodescript, navigate to the desired workspace, then Settings > service accounts and create a service account with WORKSPACE_MODULES_PUBLISH and WORKSPACE_MODULES_VIEW scopes.
  2. On the new service account, generate a key, ensure you copy the key as you'll need it shortly.

Local dev:

  1. Create/update a file in ./secrets/development/ directory named config.json, then inside create/update the object following this format:
{
    "<module title>": {
        "workspaceId": "<workspaceId>"
        "key": "<key>"
    }
}

Add your module title as per the spec filename from ./specs, omitting the file extension, and set the value to your generated key from NodeScript as well as the target workspace ID. Save the file.

  1. Run the publish command outlined in How to, setting the NODE_ENV to development.

Production:

  1. Ensure you have sops installed (See Sops for more info.)
  2. There should already be a file in ./secrets/production named config.json, which is encrypted. Edit the file using Sops. While editing you should see file contents in this format:
{
    "google-docs": {
        "workspaceId": "<workspaceId>"
        "key": "<key>"
    },
    "bigquery": {
        "workspaceId": "<workspaceId>"
        "key": "<key>"
    },
    "youtube": {
        "workspaceId": "<workspaceId>"
        "key": "<key>"
    },
    // ...etc
}

Add your module title as per the spec filename from ./specs, omitting the file extension, and set the value to your generated key from NodeScript. Save/Write and exit the editor.

  1. Run the publish command outlined in How to, setting the NODE_ENV to production.

  2. Commit your changes.

SOPS

Secrets are managed using SOPS. Installing SOPS is required to edit the secrets locally.

  1. Install SOPS:

    brew install sops
  2. Log into GCloud:

    gcloud auth login
    gcloud auth application-default login
  3. Edit the secrets file with sops:

    sops ./secrets/production/config.json