Mayank Chaudhari
Back to Blog
•

Beyond GitHub Stars: Introducing OSSIntel and the Ecosystem Alpha Score

Beyond GitHub Stars: Introducing OSSIntel and the Ecosystem Alpha Score
Engineering
#OpenSource#Architecture#OSSIntel#Metrics#Engineering

1. The Open-Source Evaluation Dilemma

Evaluating open-source software is one of the most consequential decisions an engineering team makes. When you adopt a library, you are not merely adding lines to a lockfile—you are inheriting a dependency graph, an operational lifecycle, and an ongoing maintenance surface area.

Historically, the ecosystem has relied on high-level social signals to gauge software health:

  • GitHub Stars indicate developer attention, bookmarking, and top-of-funnel reach.
  • Commit History demonstrates code activity and engineering throughput.
  • Fork Counts reflect branching and exploratory experimentation.

These signals are valuable for initial discovery. They answer a fundamental question: “Has the community noticed this project?”

However, as engineering organizations evaluate libraries for critical infrastructure, a deeper set of architectural questions emerges:

Is this library actively integrated into downstream production applications, or is it primarily a viral demo? How resilient is its maintenance cadence? What is its verifiable distribution footprint across package registries?

GitHub stars show where developers look. What modern architecture requires is telemetry that shows where software lives.


2. The Triad Framework: Discovery, Distribution, Sustainability

To understand software gravity without relying on any single proxy metric, we model open-source ecosystems across three complementary pillars:

┌────────────────────────────────────────────────────────────────────────┐
│                      THE OPEN SOURCE TRIAD                             │
├─────────────────────┬──────────────────────┬───────────────────────────┤
│ Developer Discovery │ Distribution Velocity│ Operational Sustainability│
├─────────────────────┼──────────────────────┼───────────────────────────┤
│ GitHub Stars        │ Monthly Downloads    │ Release Uniformity        │
│ Repository Watchers │ Registry Distribution│ Issue Resolution Cadence  │
│ Community Reach     │ Verified Artifacts   │ Contributor Scale         │
│ Social Bookmarks    │ Active Publication   │ Maintenance Continuity    │
└─────────────────────┴──────────────────────┴───────────────────────────┘
  1. Developer Discovery: Measures community enthusiasm and onboarding momentum. It ensures an active audience and top-of-funnel contributor interest.
  2. Distribution Velocity: Measures observable distribution scale across package registries (NPM, VS Code Marketplace, and roadmap registries like PyPI and Crates.io). It tracks whether published artifacts are actively fetched across the wider ecosystem.
  3. Operational Sustainability: Measures repository governance, semantic release frequency, issue response times, and contributor concentration to ensure long-term viability.

Note on Downstream Dependents: While downstream dependent counts (reverse dependency graphs) represent a powerful signal of structural adoption, public package registry APIs do not currently offer lightweight, rate-limit-friendly endpoints to query reverse dependencies in real time. We are exploring batch ingestion of BigQuery open-source datasets to incorporate downstream dependent depth in a future major release.

Mapping the Triad to Scoring Dimensions

While the Triad serves as our conceptual framework, our scoring implementation maps these pillars into five concrete dimensions:

Triad Conceptual PillarEvaluated Alpha Score DimensionsOperational Focus
Developer DiscoveryImpact (Stars, Watchers), CommunityTop-of-funnel reach, developer interest, and documentation
Distribution VelocityImpact (Registry Download Velocity)Verified registry distribution, monthly download volume
Operational SustainabilityHealth, Activity, Maintenance & Concentration RiskRelease cadence, issue hygiene, contributor-count risk

To synthesize these dimensions into an automated, transparent lens, we architected OSSIntel.


3. Structural Discovery & Registry Verification

The technical challenge in evaluating open-source impact lies in data federation. GitHub captures repository-level git metadata, but software execution occurs downstream across decentralized registries:

  • NPM for JavaScript and TypeScript modules
  • Visual Studio Marketplace for editor extensions
  • PyPI & Crates.io for Python and Rust ecosystems (Roadmap)
  • Chrome Web Store for browser extensions (Roadmap)

Connecting a repository to its published registry assets historically required manual curation: maintainers pasted badges into READMEs or registered metadata manually. This approach suffers from self-reporting bias and fails completely in monorepos (Turborepo, Nx, pnpm workspaces), where a single repository hosts dozens of independently published packages.

To solve this deterministically, OSSIntel implements a decoupled Two-Stage Analysis Pipeline: Structural Repository Discovery followed by Live Registry Verification.

flowchart TD A["Target Repository (GitHub)"] --> B["Stage 1: Structural Tree Discovery"] B --> C{"Manifest Classification"} C -->|Monorepo Root| D["Discover Workspace Packages"] C -->|Public Candidates| E["Candidate Package List"] D --> E E --> F["Stage 2: Registry Verification Dispatch"] F -->|NPM Registry HTTP 200| G["Verified Package Telemetry"] F -->|VS Code Marketplace HTTP 200| G F -->|404 / Unregistered| H["Pruned from Distribution Score"] G --> I["Downstream Alpha Score Engine"]

4. The Two-Stage Discovery & Verification Pipeline

Rather than cloning entire repositories or pulling gigabytes of git histories, OSSIntel inspects repositories via GitHub's lightweight Git Trees API.

Stage 1: Structural Repository Discovery

The engine traverses the tree entries to identify candidate manifests (package.json), prioritizing the root and sorting paths lexicographically:

// Discovery logic from @ossintel/repo-packages
export function filterCandidateManifests(treeEntries: GitTreeNode[]): string[] {
  const foundPaths = treeEntries
    .filter(
      (node) =>
        node.type === "blob" &&
        node.path.endsWith("package.json") &&
        !node.path.includes("node_modules/") &&
        !node.path.includes("/.") &&
        !node.path.includes("/test/") &&
        !node.path.includes("/tests/") &&
        !node.path.includes("/fixtures/") &&
        !node.path.includes("/examples/")
    )
    .map((node) => node.path);

  if (foundPaths.length === 0) return ["package.json"];

  // Prioritize root package.json, then sort lexicographically
  foundPaths.sort((a, b) => {
    if (a === "package.json") return -1;
    if (b === "package.json") return 1;
    return a.localeCompare(b);
  });

  return foundPaths.slice(0, 25);
}

Discovery Boundaries & Prioritization Queue:

  1. Root Prioritization: The root package.json is always evaluated first.
  2. Lexicographic Sorting: Top-level workspace directories (apps/*, packages/*) precede deeply nested folders.
  3. Safety Cap: Candidate manifests are capped at 25 packages to prevent API rate-limit exhaustion and handle truncated tree responses (truncated: true).
  4. Roadmap Enhancement: Full glob resolution based on declared workspace files (pnpm-workspace.yaml, workspaces arrays) is currently scheduled for RFC #14.

When evaluating discovered manifests, the classifier explicitly discriminates between workspace roots, private packages, and public candidates:

export type ManifestClassification =
  | { type: "workspace-root"; workspaces: string[] }
  | { type: "private-package" }
  | { type: "npm-candidate"; identifier: string }
  | { type: "vscode-candidate"; identifier: string }
  | { type: "unclassified" };

export function classifyManifest(manifest: PackageManifest): ManifestClassification {
  // 1. VS Code Extension Candidate
  if (manifest.engines?.vscode && manifest.publisher && manifest.name) {
    return {
      type: "vscode-candidate",
      identifier: `${manifest.publisher}.${manifest.name}`,
    };
  }

  // 2. Monorepo Root (Declare workspaces; traversed to find child packages)
  if (manifest.workspaces) {
    const list = Array.isArray(manifest.workspaces)
      ? manifest.workspaces
      : manifest.workspaces.packages ?? [];
    return { type: "workspace-root", workspaces: list };
  }

  // 3. Private Package (Explicitly flagged as non-distributable)
  if (manifest.private === true) {
    return { type: "private-package" };
  }

  // 4. Public NPM Registry Candidate
  if (manifest.name && manifest.version) {
    return { type: "npm-candidate", identifier: manifest.name.trim() };
  }

  return { type: "unclassified" };
}

Stage 2: Registry Verification Dispatch

A candidate name declared in a package.json does not prove that an artifact was ever published to a registry. Private enterprise projects routinely declare package names and internal version strings.

To prevent phantom artifacts from skewing scores, candidates are routed to their corresponding registry verifiers in parallel:

type RegistryType = "npm" | "vscode" | "pypi" | "crates";

interface RegistryVerifier {
  verify(identifier: string): Promise<{ verified: boolean; monthlyDownloads: number }>;
}

// Dispatched registry verification architecture
const registryVerifiers = {
  npm: { verify: verifyNpmPackage },
  vscode: { verify: verifyVsCodeExtension },
  // Planned Roadmap:
  // pypi: { verify: verifyPyPiPackage },
  // crates: { verify: verifyCratesPackage },
} satisfies Partial<Record<RegistryType, RegistryVerifier>>;

export async function verifyCandidates(
  candidates: Array<{ type: RegistryType; identifier: string }>
) {
  const settled = await Promise.allSettled(
    candidates.map(async (candidate) => {
      const verifier = registryVerifiers[candidate.type];
      if (!verifier) return null;
      return await verifier.verify(candidate.identifier);
    })
  );

  return settled
    .filter((r): r is PromiseFulfilledResult<{ verified: boolean; monthlyDownloads: number }> =>
      r.status === "fulfilled" && r.value !== null && r.value.verified
    )
    .map((r) => r.value);
}
  • Network Error Discrimination: Verification explicitly distinguishes HTTP 404 (package does not exist) from 429 rate limits, 5xx outages, and timeouts. Transient failures are logged as unverified-pending rather than being treated as non-existent packages, preventing temporary registry outages from artificially zeroing distribution scores.
  • Repository Association: For verified packages, the engine performs repository metadata matching, comparing the registry's declared repository.url against the target GitHub origin.

5. The Alpha Score: Scoring Methodology & Mathematical Calibration

Once verified registry artifacts and git repository telemetry are gathered, OSSIntel synthesizes them into a transparent, evidence-based scoring model (0–100).

The scoring model is implemented in @ossintel/scoring using five calibrated vectors:

Alpha Score=0.30H+0.25I+0.20A+0.15C+0.10(100−R)\text{Alpha Score} = 0.30H + 0.25I + 0.20A + 0.15C + 0.10(100 - R)

┌─────────────────────────────────┬────────┬──────────────────────────────────────────┐
│ Dimension                       │ Weight │ Evaluated Telemetry Signals              │
├─────────────────────────────────┼────────┼──────────────────────────────────────────┤
│ Health (H)                      │  30%   │ Issue-to-popularity ratio, update recency│
│ Impact (I)                      │  25%   │ Logarithmic discovery + Velocity Bonus   │
│ Activity (A)                    │  20%   │ Commit recency buckets, releases in 365d │
│ Community (C)                   │  15%   │ Logarithmic contributor scale, meta      │
│ Risk Inversion (100 - R)        │  10%   │ Staleness, contributor count, issue load │
└─────────────────────────────────┴────────┴──────────────────────────────────────────┘

Complete Component Formulas

1. Download Velocity Score (VV, 0≤V≤1000 \le V \le 100)

Given total verified Monthly Download Volume DD:

V(D)={0D≤0min⁡(100,round(15⋅log⁡10(D+1)))D>0V(D) = \begin{cases} 0 & D \le 0 \\ \min\left(100, \text{round}\left(15 \cdot \log_{10}(D + 1)\right)\right) & D > 0 \end{cases}

Methodology Note on Downloads: In OSSIntel telemetry, we record Monthly Download Volume and observable registry distribution rather than active production users. Package registries log downloads from automated CI/CD runners, container rebuilds, and mirrors alongside human developers. While download volume demonstrates ecosystem distribution and supply-chain reach, it does not directly prove unique human installations or active production deployment. Logarithmic scaling (×15\times 15) dampens automated burst traffic: 10,000 monthly downloads yields a velocity score of 60; 1,000,000 monthly downloads yields 90.

2. Ecosystem Impact (II, 0≤I≤1000 \le I \le 100)

Combines top-of-funnel discovery with downstream distribution velocity:

BaseImpact=0.50⋅Sstars+0.35⋅Sforks+0.15⋅Swatchers\text{BaseImpact} = 0.50 \cdot S_{\text{stars}} + 0.35 \cdot S_{\text{forks}} + 0.15 \cdot S_{\text{watchers}}

Where each sub-signal is logarithmically scaled:

  • Sstars=min⁡(100,log⁡10(stars+1)×20)S_{\text{stars}} = \min(100, \log_{10}(\text{stars} + 1) \times 20)
  • Sforks=min⁡(100,log⁡10(forks+1)×25)S_{\text{forks}} = \min(100, \log_{10}(\text{forks} + 1) \times 25)
  • Swatchers=min⁡(100,log⁡10(watchers+1)×30)S_{\text{watchers}} = \min(100, \log_{10}(\text{watchers} + 1) \times 30)

Downstream verified distribution adds an additive bonus capped at +50, with the final Impact score bounded at 100:

VelocityBonus={0V=0min⁡(50,V×0.5)V>0\text{VelocityBonus} = \begin{cases} 0 & V = 0 \\ \min(50, V \times 0.5) & V > 0 \end{cases}

I=min⁡(100,round(BaseImpact+VelocityBonus))I = \min\left(100, \text{round}(\text{BaseImpact} + \text{VelocityBonus})\right)

3. Engineering Activity (AA, 0≤A≤1000 \le A \le 100)

Measures development cadence and release regularity:

A=round(0.60⋅Srecency+0.40⋅Srelease)A = \text{round}(0.60 \cdot S_{\text{recency}} + 0.40 \cdot S_{\text{release}})

  • Push Recency (SrecencyS_{\text{recency}}): Evaluated via discrete time brackets:
    • ≤1 day→100\le 1\text{ day} \to 100
    • ≤7 days→90\le 7\text{ days} \to 90
    • ≤30 days→80\le 30\text{ days} \to 80
    • ≤90 days→60\le 90\text{ days} \to 60
    • ≤180 days→40\le 180\text{ days} \to 40
    • ≤365 days→20\le 365\text{ days} \to 20
    • >365 days→0> 365\text{ days} \to 0
  • Release Frequency (SreleaseS_{\text{release}}): min⁡(100,releases in past 365 days×20)\min(100, \text{releases in past 365 days} \times 20). (Defaults to 50 if no releases are tagged but repository has active commits).

4. Repository Health (HH, 0≤H≤1000 \le H \le 100)

Evaluates baseline repository hygiene and provenance:

H=round(0.50⋅Sissues+0.30⋅Supdate+0.20⋅Sfork)H = \text{round}(0.50 \cdot S_{\text{issues}} + 0.30 \cdot S_{\text{update}} + 0.20 \cdot S_{\text{fork}})

  • Issue Density (SissuesS_{\text{issues}}): Evaluates open issue load relative to total popularity (stars+forks)(\text{stars} + \text{forks}): Sissues=max⁡(0,100−OpenIssues(stars+forks)+10×500)S_{\text{issues}} = \max\left(0, 100 - \frac{\text{OpenIssues}}{(\text{stars} + \text{forks}) + 10} \times 500\right) (The +10+10 offset guarantees numerical stability when a newly created repository has 0 stars).
  • Update Recency (SupdateS_{\text{update}}): ≤30d→100\le 30\text{d} \to 100; ≤90d→80\le 90\text{d} \to 80; ≤180d→60\le 180\text{d} \to 60; ≤365d→40\le 365\text{d} \to 40; >365d→10>365\text{d} \to 10.
  • Fork Provenance (SforkS_{\text{fork}}): Original repository →100\to 100; Fork →50\to 50.

Issue Density vs. Resolution Velocity: While the issue-to-popularity ratio provides a useful baseline signal of backlog size, static issue counts can unfairly penalize highly engaged projects with active feature discussions. In our open RFC, we are actively designing dynamic issue metrics—specifically Issue Mean Time to Resolution (MTTR) and Issue Age Distribution—to better differentiate active triaging from neglected bug queues.

5. Community Breadth (CC, 0≤C≤1000 \le C \le 100)

Rewards contributor scale and clear project metadata:

C=round(0.70⋅Scontrib+0.15⋅Stopics+0.15⋅Smeta)C = \text{round}(0.70 \cdot S_{\text{contrib}} + 0.15 \cdot S_{\text{topics}} + 0.15 \cdot S_{\text{meta}})

  • Contributor Scale (ScontribS_{\text{contrib}}): min⁡(100,log⁡10(contributors+1)×50)\min(100, \log_{10}(\text{contributors} + 1) \times 50).
  • Discoverability Topics (StopicsS_{\text{topics}}): 100100 if repository declares at least one topic tag, else 00.
  • Project Metadata (SmetaS_{\text{meta}}): (50 if description present)+(50 if homepage present)(50\text{ if description present}) + (50\text{ if homepage present}).

Contributor Count vs. Contribution Concentration: Raw contributor headcount indicates community breadth, but does not capture contribution concentration (the "bus factor"). A project with 50 contributors where a single developer authors 98% of all commits carries significant single-point-of-failure risk. We are actively investigating maintainer Gini coefficient and commit entropy models for future iterations of the Community dimension.

6. Maintenance & Concentration Risk (RR, 0≤R≤1000 \le R \le 100)

Detects structural maintenance hazards. Computed via mutually exclusive penalties capped at 100:

R=min⁡(100,Pstaleness+Pcontributor_count+Pissues)R = \min(100, P_{\text{staleness}} + P_{\text{contributor\_count}} + P_{\text{issues}})

  • Staleness Penalty (PstalenessP_{\text{staleness}}):
    • >365 days since last push→+30> 365\text{ days since last push} \to +30
    • else if >180 days→+20> 180\text{ days} \to +20
    • else if >90 days→+10> 90\text{ days} \to +10
    • else →0\to 0
  • Contributor Count Risk (Pcontributor_countP_{\text{contributor\_count}}):
    • ≤1 contributor→+30\le 1\text{ contributor} \to +30
    • else if ≤3 contributors→+20\le 3\text{ contributors} \to +20
    • else if ≤5 contributors→+10\le 5\text{ contributors} \to +10
    • else →0\to 0
  • Issue Backlog Risk (PissuesP_{\text{issues}}):
    • OpenIssues>50 and OpenIssues>(stars+forks)→+20\text{OpenIssues} > 50\text{ and } \text{OpenIssues} > (\text{stars} + \text{forks}) \to +20
    • else if OpenIssues>20→+10\text{OpenIssues} > 20 \to +10
    • else →0\to 0

Consolidated Fork Penalty: In our scoring model, fork status is evaluated strictly under Repository Health (differentiating original provenance from forks) and is intentionally omitted from Risk to prevent double-penalizing legitimate community hard forks.

The resulting risk score RR is inverted in the primary formula as (100−R)(100 - R), ensuring that a low-risk project scores high.


6. Reproducible Case Studies

To verify how the scoring methodology behaves, consider two representative open-source repositories evaluated directly via @ossintel/scoring:

Step-by-Step Dimension Calculation

Metric / ComponentProject A: Viral Framework ShowcaseProject B: Core Modular Utility
GitHub Stars18,5001,200
Forks / Watchers850 / 320140 / 45
Contributors422
Monthly Download Volume0 (Unpublished showcase)3,400,000 (3 verified npm packages)
Days Since Last Push210 days4 days
Releases in Past 365d1 (Untagged release)12
Open Issues / Popularity120 / 19,350 (0.6%0.6\%)15 / 1,340 (1.1%1.1\%)
Base Impact0.50(85.3)+0.35(73.2)+0.15(75.2)=79.60.50(85.3) + 0.35(73.2) + 0.15(75.2) = \mathbf{79.6}0.50(61.6)+0.35(53.7)+0.15(49.9)=57.10.50(61.6) + 0.35(53.7) + 0.15(49.9) = \mathbf{57.1}
Velocity Score (VV)00min⁡(100,round(15⋅log⁡10(3.4M+1)))=98\min(100, \text{round}(15 \cdot \log_{10}(3.4\text{M} + 1))) = \mathbf{98}
Velocity Bonus00min⁡(50,98×0.5)=49\min(50, 98 \times 0.5) = \mathbf{49}
Impact Score (II)min⁡(100,round(79.6+0))=80\min(100, \text{round}(79.6 + 0)) = \mathbf{80}min⁡(100,round(57.1+49))=100 (capped)\min(100, \text{round}(57.1 + 49)) = \mathbf{100}\text{ (capped)}
Activity Score (AA)0.60(20)+0.40(20)=200.60(20) + 0.40(20) = \mathbf{20}0.60(90)+0.40(100)=940.60(90) + 0.40(100) = \mathbf{94}
Health Score (HH)0.50(96.9)+0.30(40)+0.20(100)=80.45≈800.50(96.9) + 0.30(40) + 0.20(100) = \mathbf{80.45 \approx 80}0.50(94)+0.30(100)+0.20(100)=970.50(94) + 0.30(100) + 0.20(100) = \mathbf{97}
Community Score (CC)0.70(35)+0.15(100)+0.15(100)=54.5≈540.70(35) + 0.15(100) + 0.15(100) = \mathbf{54.5 \approx 54}0.70(68)+0.15(100)+0.15(100)=780.70(68) + 0.15(100) + 0.15(100) = \mathbf{78}
Risk Penalties (RR)20 (push)+10 (contrib)+10 (issues)=4020\text{ (push)} + 10\text{ (contrib)} + 10\text{ (issues)} = \mathbf{40}0 (push)+0 (contrib)+0 (issues)=00\text{ (push)} + 0\text{ (contrib)} + 0\text{ (issues)} = \mathbf{0}
Risk Inversion (100−R100 - R)100−40=60100 - 40 = \mathbf{60}100−0=100100 - 0 = \mathbf{100}

Final Alpha Score Totals

Project A=0.30(80)+0.25(80)+0.20(20)+0.15(54)+0.10(60)=24.0+20.0+4.0+8.1+6.0=62.1≈62\text{Project A} = 0.30(80) + 0.25(80) + 0.20(20) + 0.15(54) + 0.10(60) = 24.0 + 20.0 + 4.0 + 8.1 + 6.0 = \mathbf{62.1 \approx 62}

Project B=0.30(97)+0.25(100)+0.20(94)+0.15(78)+0.10(100)=29.1+25.0+18.8+11.7+10.0=94.6≈95\text{Project B} = 0.30(97) + 0.25(100) + 0.20(94) + 0.15(78) + 0.10(100) = 29.1 + 25.0 + 18.8 + 11.7 + 10.0 = \mathbf{94.6 \approx 95}

  • Project A (Viral Showcase): Despite 18,500 stars, its 210-day maintenance lapse, absence of published registry artifacts, small contributor base, and 120-issue backlog bound its score to an Emerging Utility rating (62).
  • Project B (Modular Utility): With modest star counts but 3.4M verified monthly downloads, bi-weekly release cycles, and distributed contributors, it demonstrates critical ecosystem gravity (95).

7. Open Governance: Help Shape the Algorithm

The Alpha Score is not an arbitrary black box. It is designed from first principles to be completely transparent, deterministic, and community-governed.

Open source thrives when metrics are accountable to the developers who build it. As we expand OSSIntel, we invite the community to participate directly in shaping the ecosystem's evaluation framework:

1. Debate the Scoring Weights

Are the current dimension weights (30%H,25%I,20%A,15%C,10%R30\% H, 25\% I, 20\% A, 15\% C, 10\% R) aligned with how your engineering team evaluates production dependencies? Should dependency depth factor more heavily?

Join the active architectural discussion on GitHub: 👉 Join the OSSIntel Algorithm RFC on GitHub Discussions

2. Contribute Manifest Analyzers (PRs Welcome)

Our Structural Discovery engine currently features discovery and verification support for NPM workspaces and VS Code Marketplace extensions. We are actively expanding language coverage:

  • Cargo.toml & Crates.io parser for the Rust ecosystem
  • pyproject.toml & PyPI parser for Python packages
  • go.mod & proxy.golang.org verification for Go modules

If you maintain or build tooling in these ecosystems, take a look at the open issues and submit a pull request: 👉 Contribute to OSSIntel on GitHub

3. Audit Your Repositories

Test the engine against your own open-source repositories and portfolio. Discover your verified package footprints, dependency distribution, and live Alpha Scores: 👉 Explore OSSIntel Profile Telemetry

Did you enjoy this post?

Give it a like to let me know!

Recommended Posts