type: rule
timestamp: 2026-06-20
tags: [taste, mcq-learned, naming, npm, github]

User prefers same name across GitHub repo and npm package

Same slug across GitHub repo and npm package

User prefers same name across GitHub repo and npm package

The rule

When a project exists as both a GitHub repo and an npm package:

No divergence. Don’t ship chirag127/foo-bar-baz@chirag127/foo. The cognitive load of remembering two names per project compounds across the family.

Subdomains stay independent

Subdomains follow a different rule (shortest possible single word) and can differ from both repo and npm. Examples:

How to apply

When creating a new package:

  1. Decide the slug once.
  2. Use it as the GitHub repo name AND the npm package.json#name (with @chirag127/ scope).
  3. Subdomain (if any) gets its own shorter slug.

When renaming:

Source

User-explicit preference per ~/AGENTS.md AskUserQuestion learning rule.


Edit on GitHub · Back to index