{"adoption": {"forks": 34, "observed_at": "2026-08-28T04:05:32.723988+00:00", "stars": 1761}, "canonical_url": "https://ross.abutalabs.com/products/nutype", "card": {"archived": false, "artifact_type": "library", "description": "Rust newtype with guarantees  🇺🇦 🦀", "domain": ["developer-tools", "web-development", "programming-languages"], "enriched": true, "function": ["serialization", "type-system", "developer-tools"], "health_score": 91, "homepage": null, "language": "Rust", "license": "MIT", "license_family": "permissive", "maturity": "active", "member_repos": ["greyblake/nutype"], "name": "greyblake/nutype", "platform": ["rust"], "pushed_at": "2026-06-18T08:34:45+00:00", "repo": "greyblake/nutype", "stars": 1761, "tags": ["newtype", "validation", "sanitization", "proc-macro", "invariants", "type-safety", "serde"], "topics": ["data", "data-structures", "macro", "macros", "newtype", "rust", "rust-lang", "rust-library", "sanitization", "sanitizer", "typesafety", "validation", "validator", "web", "invariant", "invariants", "invariance"], "urls": [], "use_cases": ["validate user input like usernames and emails in Rust", "enforce invariants on newtype wrappers", "sanitize and trim strings before storing them", "make invalid states unrepresentable with types", "validate data during serde deserialization", "define constrained numeric types with min/max bounds"], "what_it_is": "Nutype is a Rust procedural macro that enhances the newtype pattern with built-in sanitization and validation constraints. It guarantees that values cannot be instantiated without passing the defined checks, including during serde deserialization.", "when_to_avoid": ["you need runtime-configurable validation rules", "your project is not in Rust", "you need validation across struct fields rather than single values", "you prefer schema-based validation libraries like validator with attribute macros on structs"], "when_to_choose": ["you use Rust and want type-safe validated domain types", "you want validation enforced at construction time rather than scattered checks", "you need sanitization plus validation in one declarative macro", "you want invalid values rejected even through serde deserialization"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/nutype", "repo": "greyblake/nutype", "role": "main", "score": 80}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:05:32.723988+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T03:27:11.435373+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9db641755a2f7d579985c17e0381d444cbb272095b81045fc1d9356abf623bce", "fetched_at": "2026-08-28T04:05:32.723988+00:00", "kind": "readme", "missing": false, "url": "https://github.com/greyblake/nutype"}, {"content_hash": "e88c8238c86f565a435c1e6fd4ab2ab8336719c2384deaa41d651154beda9a74", "fetched_at": "2026-08-29T11:05:24.677598+00:00", "kind": "registry_crates", "missing": false, "url": "https://crates.io/api/v1/crates/nutype"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:05:32.723988+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T03:27:11.435373+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9db641755a2f7d579985c17e0381d444cbb272095b81045fc1d9356abf623bce", "fetched_at": "2026-08-28T04:05:32.723988+00:00", "kind": "readme", "missing": false, "url": "https://github.com/greyblake/nutype"}, {"content_hash": "e88c8238c86f565a435c1e6fd4ab2ab8336719c2384deaa41d651154beda9a74", "fetched_at": "2026-08-29T11:05:24.677598+00:00", "kind": "registry_crates", "missing": false, "url": "https://crates.io/api/v1/crates/nutype"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T03:27:11.435373+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9db641755a2f7d579985c17e0381d444cbb272095b81045fc1d9356abf623bce", "fetched_at": "2026-08-28T04:05:32.723988+00:00", "kind": "readme", "missing": false, "url": "https://github.com/greyblake/nutype"}, {"content_hash": "e88c8238c86f565a435c1e6fd4ab2ab8336719c2384deaa41d651154beda9a74", "fetched_at": "2026-08-29T11:05:24.677598+00:00", "kind": "registry_crates", "missing": false, "url": "https://crates.io/api/v1/crates/nutype"}], "taxonomy_version": 1}, "health_score": {"inputs": ["days_since_push", "days_since_release", "archived"], "kind": "computed", "method": "health_v1"}, "homepage": {"kind": "observed", "observed_at": "2026-08-28T04:05:32.723988+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:05:32.723988+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:05:32.723988+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T03:27:11.435373+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9db641755a2f7d579985c17e0381d444cbb272095b81045fc1d9356abf623bce", "fetched_at": "2026-08-28T04:05:32.723988+00:00", "kind": "readme", "missing": false, "url": "https://github.com/greyblake/nutype"}, {"content_hash": "e88c8238c86f565a435c1e6fd4ab2ab8336719c2384deaa41d651154beda9a74", "fetched_at": "2026-08-29T11:05:24.677598+00:00", "kind": "registry_crates", "missing": false, "url": "https://crates.io/api/v1/crates/nutype"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:05:32.723988+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:05:32.723988+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T03:27:11.435373+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9db641755a2f7d579985c17e0381d444cbb272095b81045fc1d9356abf623bce", "fetched_at": "2026-08-28T04:05:32.723988+00:00", "kind": "readme", "missing": false, "url": "https://github.com/greyblake/nutype"}, {"content_hash": "e88c8238c86f565a435c1e6fd4ab2ab8336719c2384deaa41d651154beda9a74", "fetched_at": "2026-08-29T11:05:24.677598+00:00", "kind": "registry_crates", "missing": false, "url": "https://crates.io/api/v1/crates/nutype"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:05:32.723988+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:05:32.723988+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:05:32.723988+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T03:27:11.435373+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9db641755a2f7d579985c17e0381d444cbb272095b81045fc1d9356abf623bce", "fetched_at": "2026-08-28T04:05:32.723988+00:00", "kind": "readme", "missing": false, "url": "https://github.com/greyblake/nutype"}, {"content_hash": "e88c8238c86f565a435c1e6fd4ab2ab8336719c2384deaa41d651154beda9a74", "fetched_at": "2026-08-29T11:05:24.677598+00:00", "kind": "registry_crates", "missing": false, "url": "https://crates.io/api/v1/crates/nutype"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:05:32.723988+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:05:32.723988+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T03:27:11.435373+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9db641755a2f7d579985c17e0381d444cbb272095b81045fc1d9356abf623bce", "fetched_at": "2026-08-28T04:05:32.723988+00:00", "kind": "readme", "missing": false, "url": "https://github.com/greyblake/nutype"}, {"content_hash": "e88c8238c86f565a435c1e6fd4ab2ab8336719c2384deaa41d651154beda9a74", "fetched_at": "2026-08-29T11:05:24.677598+00:00", "kind": "registry_crates", "missing": false, "url": "https://crates.io/api/v1/crates/nutype"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T03:27:11.435373+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9db641755a2f7d579985c17e0381d444cbb272095b81045fc1d9356abf623bce", "fetched_at": "2026-08-28T04:05:32.723988+00:00", "kind": "readme", "missing": false, "url": "https://github.com/greyblake/nutype"}, {"content_hash": "e88c8238c86f565a435c1e6fd4ab2ab8336719c2384deaa41d651154beda9a74", "fetched_at": "2026-08-29T11:05:24.677598+00:00", "kind": "registry_crates", "missing": false, "url": "https://crates.io/api/v1/crates/nutype"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T03:27:11.435373+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9db641755a2f7d579985c17e0381d444cbb272095b81045fc1d9356abf623bce", "fetched_at": "2026-08-28T04:05:32.723988+00:00", "kind": "readme", "missing": false, "url": "https://github.com/greyblake/nutype"}, {"content_hash": "e88c8238c86f565a435c1e6fd4ab2ab8336719c2384deaa41d651154beda9a74", "fetched_at": "2026-08-29T11:05:24.677598+00:00", "kind": "registry_crates", "missing": false, "url": "https://crates.io/api/v1/crates/nutype"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T03:27:11.435373+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "9db641755a2f7d579985c17e0381d444cbb272095b81045fc1d9356abf623bce", "fetched_at": "2026-08-28T04:05:32.723988+00:00", "kind": "readme", "missing": false, "url": "https://github.com/greyblake/nutype"}, {"content_hash": "e88c8238c86f565a435c1e6fd4ab2ab8336719c2384deaa41d651154beda9a74", "fetched_at": "2026-08-29T11:05:24.677598+00:00", "kind": "registry_crates", "missing": false, "url": "https://crates.io/api/v1/crates/nutype"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 88, "longevity": 100, "rhythm": 57}, "computed_at": "2026-09-03T02:20:16.233290+00:00", "flags": [], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 1424, "days_push": 76, "days_rel": 130, "gap_med": 108, "n_releases_24m": 6}, "score": 80, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}