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

@glue-tools-ai/onboarding-complexity

v1.0.0

Published

Estimate developer onboarding time from repository structure analysis.

Readme

@glue-tools-ai/onboarding-complexity

npm version npm downloads License: MIT

Estimate developer onboarding time from repository structure analysis. Analyzes language diversity, architecture complexity, documentation gaps, and knowledge concentration to predict time-to-productivity.

Installation

npm install -g @glue-tools-ai/onboarding-complexity

Or run directly with npx:

npx @glue-tools-ai/onboarding-complexity analyze /path/to/repo

Usage

Analyze a Repository

onboarding-complexity analyze /path/to/repo

Output example:

Analyzing repository structure...

Onboarding Complexity Report

Language Diversity:     7/10
Architecture Complexity: 6/10
Documentation Gap:      4/10
Dependency Complexity:  5/10
Knowledge Concentration: 8/10
Codebase Size:         5/10

Overall Score: 6.2/10

Estimated Onboarding Time (Mid-level Developer):
  6.2 weeks to productivity

For Junior Developers:
  10.85 weeks (1.75x multiplier)

For Senior Developers:
  3.1 weeks (0.5x multiplier)

Compare Two Repositories

onboarding-complexity compare /path/to/repo1 /path/to/repo2

Options

  • --format [format] - Output format: table, json, or markdown (default: table)
  • --experience [level] - Developer experience level: junior, mid, or senior (default: mid)

Examples

# Analyze with JSON output
onboarding-complexity analyze . --format json

# Compare with markdown output
onboarding-complexity compare repo1 repo2 --format markdown

# Analyze for a junior developer
onboarding-complexity analyze . --experience junior

How It Works

The complexity estimator analyzes six key dimensions:

  1. Language Diversity: Counts distinct programming languages and calculates primary vs. secondary language ratio
  2. Architecture Complexity: Measures directory depth, number of services/modules, and configuration complexity
  3. Documentation Gap: Evaluates README quality, code comment ratio, and API documentation presence
  4. Dependency Complexity: Counts total dependencies and framework variety
  5. Knowledge Concentration: Calculates bus factor from git history and identifies knowledge silos
  6. Codebase Size: Estimates total files and lines of code

Each dimension scores 0-10, then a weighted aggregate produces a final complexity score. The score is converted to estimated weeks using multipliers based on developer experience:

  • Junior Developer: 1.75x multiplier
  • Mid-level Developer: 1.0x multiplier (baseline)
  • Senior Developer: 0.5x multiplier

API Usage

import { analyzeRepository } from '@glue-tools-ai/onboarding-complexity';

const result = await analyzeRepository('/path/to/repo', {
  experience: 'mid'
});

console.log(result);
// {
//   scores: {
//     languageDiversity: 7,
//     architectureComplexity: 6,
//     documentationGap: 4,
//     dependencyComplexity: 5,
//     knowledgeConcentration: 8,
//     codebabseSize: 5
//   },
//   overall: 6.2,
//   weeks: 6.2,
//   ...
// }

Attribution

Created by Glue — Developer experience platform for engineering teams.

License

MIT - Copyright 2026 Glue