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

@touch4it/scripts

v0.2.0

Published

Repository scripts. `mr` creates a GitLab merge request from the repository's MR template, over git push options — no API token required.

Readme

@touch4it/scripts

Repository scripts. One command: mr — opens a GitLab merge request from your repo's own MR template, over git push options. No API token, no editor setup.

Setup

Add the script to the repo you open MRs from. Nothing to install — npx fetches the package:

"scripts": {
  "mr": "npx @touch4it/scripts mr"
}
npm run mr                 # open the MR
npm run mr -- --dry-run    # fill it all in and print the push options, push nothing

npx resolves the latest published version on every run. To pin one, add @touch4it/scripts to devDependencies and drop the npx prefix.

Run it instead of your first git push on the branch, not after. GitLab only applies push options when the push moves a ref, so a branch that is already pushed and unchanged has nothing to trigger them. mr refuses in that case and hands you a UI link.

Your template drives it

mr reads .gitlab/merge_request_templates/Default.md from the repo you run it in and takes every prompt default from it. Host and project come from origin.

  • /target_branch, /assign and /milestone become push options. An action the template omits is simply not sent.
  • /reviewer, /assign_reviewer and /request_review stay in the body — GitLab has no reviewer push option. Best-effort: if the line shows up as literal text, set the reviewer in the UI.
  • /milestone must match a milestone title exactly.
  • The checklist can be an N/A | Done | Task table or a - [ ] Task list. Rows you leave unmarked prompt for an explanation.

At any prompt, Enter keeps the default and - clears it. The description and the explanation take multiple lines; Tab focuses [ submit ]. A title that starts with WIP: or Draft: opens the MR as a draft.

GitLab drops a bad username or milestone without an error and git push still exits 0, so a clean run is not proof the MR is right. mr fails the run if the server sends back WARNINGS, but it cannot confirm the MR exists — only an API token could.

Development

npm install
npm run mr -- --dry-run
npm run check             # lint + typecheck + test

Needs Node >= 22.18 locally, the first version that strips .ts types unflagged. Tests are node:test, not Vitest like app/ — so assert, no expect.

src/bin.ts routes commands, src/lib/ holds what commands share, src/mr/ is mr itself. A new command is a directory under src/ plus an entry in COMMANDS.

Two bits of config look wrong and are not:

  • Only dist is published. Node refuses to strip types under node_modules, so a package shipping raw .ts would break every consumer.
  • overrides pins typescript@6 for ESLint alone. typescript-eslint needs the compiler API that typescript@7 dropped; tsc stays on 7.