{"uid":"cap_XHDa5yuEjK1Sr55NIrt22","slug":"package-name-validator-normalizer-32199db4","name":"Package Name Validator & Normalizer","description":"Checks a proposed package name against a registry’s own naming rules (npm scoping and URL-safety, PEP 503 normalization for PyPI, cargo’s crate name grammar) and returns the normalized form the registry compares by.","url":"https://fittings.sh/v1/pkg/name-check?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["name"],"properties":{"name":{"type":"string","description":"Proposed package name, at most 300 characters"},"registry":{"type":"string","description":"One of npm, pypi, crates, default npm"}}}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_pVPeulV2obW_-wf4uiFdc","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Checks a proposed package name against npm, PyPI, or crates.io naming rules and returns the canonical normalized form used by that registry.","exampleAgentPrompt":"Before I publish my new library, can you check whether the name 'my-awesome-lib' is valid for npm and tell me its normalized form?","exampleUseCases":[{"title":"Pre-publish npm package name check","prompt":"I want to publish a new npm package called '@myorg/data-utils' — can you confirm that name is valid and URL-safe for npm?"},{"title":"PyPI PEP 503 normalization lookup","prompt":"What does PyPI normalize 'My_Awesome.Package' to? I want to know the canonical name it'll use when people search for it."},{"title":"Crates.io crate name grammar check","prompt":"Can you check if 'my-rust-crate_v2' is a valid crate name for crates.io before I try to publish it?"}],"resultDescription":"Returns whether the proposed package name is valid under the selected registry's naming rules, along with the normalized/canonical form that the registry compares by (e.g. lowercased, hyphen-normalized per PEP 503 for PyPI; scoped and URL-safe for npm; identifier-grammar-compliant for crates.io).","failureModes":["Name exceeds 300 characters — request rejected","Invalid registry value provided — defaults to npm or returns error","Name contains characters that cannot be normalized — validation fails with reason","Missing required 'name' query parameter — returns 400 error"],"whenToPreferThis":"Use this endpoint when you need to programmatically verify package names before publishing or registering packages on npm, PyPI, or crates.io — especially in CI pipelines, publishing automation, or when building tooling that needs to know the canonical comparison key a registry uses. Prefer this over manual regex checks because it encodes each registry's exact current rules (npm scoping and URL-safety, PEP 503 normalization, cargo grammar) in one call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T06:48:14.518Z","isFirstParty":false,"canonicalSlug":"package-name-validator-normalizer-32199db4"}