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

@ggdna/dna-scripts

v0.2.0

Published

DNA layer: deterministic node scripts and their shared functions

Readme

dna_scripts

The DNA layer for the node scripts a repo automates its workflow with — deterministic given local git and file system state, no GitHub API calls.

Guides

  • dna/doc/guides/scripts-guide.md — what belongs here, what does not, and how to add a script

Skills

  • /scripts — checks every script parses, every import resolves, and reports duplicated logic that should be a shared function

Scripts

  • dna/scripts/functions/colors.js — ANSI colors for console output
  • dna/scripts/functions/current-branch.js — the current git branch
  • dna/scripts/functions/directories.js — the script's own directory
  • dna/scripts/functions/get-version.js — the version from package.json
  • dna/scripts/functions/is-clean-repo.js — whether main is checked out, clean and in sync with origin/main
  • dna/scripts/functions/is-main-up-to-date.js — whether local main matches origin/main
  • dna/scripts/functions/run-command.js — runs a shell command, logs and returns its output
  • dna/scripts/functions/sync-folders.js — recursively copies one folder into another
  • dna/scripts/functions/get-repo-urls.js — lists a GitHub organization's repository URLs via gh
  • dna/scripts/functions/pull-request-url.js — the URL of the current branch's pull request via gh
  • dna/scripts/delete-feature-branch.js — deletes the current feature branch locally and on the remote once it is merged
  • dna/scripts/rename-class.js — renames every occurrence of a class and file name across the repo
  • dna/scripts/setup-github-repo.js — applies the branch protection rules a new repo needs
  • dna/scripts/wait-for-pr.js — waits for the current pull request to merge

Layers

Orthogonal: this layer carries only its own topic and is combined with other layers by the consuming repo.

Variables

  • dnaCopyrightHolder — the name in the license header of every file

Usage

Declare it as a dev-dependency and initialize once:

pnpm add -D @ggdna/dna-scripts   # TypeScript projects
dart pub add dev:dna_scripts     # Dart projects
helix init

The placed test instantiates and verifies the DNA on every test run.

Development

The dna/ folder is hand-authored source and is never generated. The repo instantiates its own DNA — run dart test after changes; commit first, a file the DNA would overwrite must not carry uncommitted work.