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

gitlab-repo-inspector

v0.1.2

Published

A tool to scan GitLab groups and subgroups, list all repositories, detect monorepos, and fetch the latest tags or releases.

Readme

gitlab-repo-inspector

npm version JSDocs License

A tool to scan GitLab groups and subgroups, list all repositories, detect monorepos, and fetch the latest tags or releases.

npx gitlab-repo-inspector [mode] [options]

Features

Repository Discovery

  • Scans GitLab groups and subgroups recursively
  • Fetches repository metadata including descriptions and latest tags
  • Supports both GitLab.com and self-hosted GitLab instances

Monorepo Detection

The tool automatically detects and analyzes monorepo structures:

pnpm Workspaces:

  • Reads pnpm-workspace.yaml to discover workspace packages
  • Extracts package information from package.json files
  • Supports workspace patterns like packages/*

Maven Projects:

  • Parses pom.xml files to discover multi-module projects
  • Recursively analyzes nested modules
  • Extracts artifact information and descriptions

Configuration

Create a gitlab-repo-inspector.config.ts file to customize default settings:

import { defineConfig } from 'gitlab-repo-inspector'

export default defineConfig({
  cwd: process.cwd(),
  registry: 'https://gitlab.com',
  apiVersion: 'v4',
  projectType: 'pnpm',
  token: 'access-token',
  perPage: 500,
  group: 'gitlab-group',
  subgroups: true,
  archived: false,
  monorepo: true,
  preRelease: false,
  ignoreGroups: ['legacy'],
  ignoreRepos: ['decrypted-repo'],
  ignorePackages: ['internal-packages'],
  ignorePatterns: ['playground', 'examples/*'],
  json: 'gitlab-repo-inspector.json',
  merge: false
})

Configuration Options:

  • cwd: Current working directory
  • registry: GitLab instance URL
  • apiVersion: API version (default: 'v4')
  • projectType: Project type ('pnpm' or 'maven')
  • token: GitLab access token
  • perPage: Number of repositories per page (default: 500)
  • group: Default group to scan
  • subgroups: Include subgroups in scan (default: true)
  • archived: Include archived repositories (default: false)
  • monorepo: Enable monorepo detection (default: true)
  • preRelease: Include pre-release versions (default: true)
  • ignoreGroups: Array of group names to ignore
  • ignoreRepos: Array of repository names to ignore
  • ignorePackages: Array of package names to ignore
  • ignorePatterns: Array of monorepo patterns to ignore
  • json: Output JSON file name (default: 'gitlab-repo-inspector.json')
  • merge: Merge with existing JSON file (default: false)

Authentication

The tool requires a GitLab access token with appropriate permissions:

  1. Go to GitLab → Settings → Access Tokens
  2. Create a token with read_repository and read_api scopes
  3. Provide the token via:
    • --token command line option
    • Configuration file
    • Interactive prompt (if not provided)

License

MIT License © jinghaihan