{"adoption": {"forks": 1865, "observed_at": "2026-08-28T04:09:48.404952+00:00", "stars": 6765}, "canonical_url": "https://ross.abutalabs.com/products/leaf", "card": {"archived": false, "artifact_type": "library", "description": "Distributed ID Generate Service", "domain": ["microservices", "backend", "developer-tools"], "enriched": true, "function": ["database", "http-server", "sdk"], "health_score": 20, "homepage": null, "language": "Java", "license": "Apache-2.0", "license_family": "permissive", "maturity": "maintenance", "member_repos": ["Meituan-Dianping/Leaf"], "name": "Meituan-Dianping/Leaf", "platform": ["jvm"], "pushed_at": "2023-07-18T10:13:29+00:00", "repo": "Meituan-Dianping/Leaf", "stars": 6765, "tags": ["distributed-id-generation", "snowflake", "segment-mode", "unique-ids", "microservices", "docker", "web-server"], "topics": ["leaf", "distributed-id-generator"], "urls": [], "use_cases": ["generate unique distributed ids for microservices", "replace uuid with ordered unique ids", "build an id distribution center for SOA architecture", "generate order ids for e-commerce at high qps", "snowflake id generation with zookeeper worker assignment", "database-backed segment id allocation"], "what_it_is": "Leaf is a distributed unique ID generation service from Meituan offering segment (database-based) and snowflake (ZooKeeper-based) modes, deployable as a Spring Boot HTTP server or used as a Java library. It is battle-tested at Meituan with ~50k QPS and sub-millisecond TP999 latency.", "when_to_avoid": ["you only need single-machine unique IDs (UUIDs suffice)", "your stack is not JVM-based and you cannot call the HTTP server", "you need an actively developed project with frequent releases"], "when_to_choose": ["you need globally unique, roughly ordered IDs across services in a JVM stack", "you want a proven, high-throughput ID generator with both DB-segment and snowflake modes", "you can run a small HTTP ID service backed by MySQL or ZooKeeper"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/leaf", "repo": "Meituan-Dianping/Leaf", "role": "main", "score": 32}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:09:48.404952+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-29T17:42:33.351093+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "eaccfaa25a59580fd91c260c6e88fe7193b70025de24a26d49249229da1ab9c6", "fetched_at": "2026-08-28T04:09:48.404952+00:00", "kind": "readme", "missing": false, "url": "https://github.com/Meituan-Dianping/Leaf"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:09:48.404952+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-29T17:42:33.351093+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "eaccfaa25a59580fd91c260c6e88fe7193b70025de24a26d49249229da1ab9c6", "fetched_at": "2026-08-28T04:09:48.404952+00:00", "kind": "readme", "missing": false, "url": "https://github.com/Meituan-Dianping/Leaf"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-29T17:42:33.351093+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "eaccfaa25a59580fd91c260c6e88fe7193b70025de24a26d49249229da1ab9c6", "fetched_at": "2026-08-28T04:09:48.404952+00:00", "kind": "readme", "missing": false, "url": "https://github.com/Meituan-Dianping/Leaf"}], "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:09:48.404952+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:09:48.404952+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:09:48.404952+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-29T17:42:33.351093+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "eaccfaa25a59580fd91c260c6e88fe7193b70025de24a26d49249229da1ab9c6", "fetched_at": "2026-08-28T04:09:48.404952+00:00", "kind": "readme", "missing": false, "url": "https://github.com/Meituan-Dianping/Leaf"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:09:48.404952+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:09:48.404952+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-29T17:42:33.351093+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "eaccfaa25a59580fd91c260c6e88fe7193b70025de24a26d49249229da1ab9c6", "fetched_at": "2026-08-28T04:09:48.404952+00:00", "kind": "readme", "missing": false, "url": "https://github.com/Meituan-Dianping/Leaf"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:09:48.404952+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:09:48.404952+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:09:48.404952+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-29T17:42:33.351093+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "eaccfaa25a59580fd91c260c6e88fe7193b70025de24a26d49249229da1ab9c6", "fetched_at": "2026-08-28T04:09:48.404952+00:00", "kind": "readme", "missing": false, "url": "https://github.com/Meituan-Dianping/Leaf"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:09:48.404952+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:09:48.404952+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-29T17:42:33.351093+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "eaccfaa25a59580fd91c260c6e88fe7193b70025de24a26d49249229da1ab9c6", "fetched_at": "2026-08-28T04:09:48.404952+00:00", "kind": "readme", "missing": false, "url": "https://github.com/Meituan-Dianping/Leaf"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-29T17:42:33.351093+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "eaccfaa25a59580fd91c260c6e88fe7193b70025de24a26d49249229da1ab9c6", "fetched_at": "2026-08-28T04:09:48.404952+00:00", "kind": "readme", "missing": false, "url": "https://github.com/Meituan-Dianping/Leaf"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-29T17:42:33.351093+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "eaccfaa25a59580fd91c260c6e88fe7193b70025de24a26d49249229da1ab9c6", "fetched_at": "2026-08-28T04:09:48.404952+00:00", "kind": "readme", "missing": false, "url": "https://github.com/Meituan-Dianping/Leaf"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-29T17:42:33.351093+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "eaccfaa25a59580fd91c260c6e88fe7193b70025de24a26d49249229da1ab9c6", "fetched_at": "2026-08-28T04:09:48.404952+00:00", "kind": "readme", "missing": false, "url": "https://github.com/Meituan-Dianping/Leaf"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 0, "longevity": 100, "rhythm": 35}, "computed_at": "2026-09-02T17:46:02.011165+00:00", "flags": ["no_releases"], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 2822, "days_push": 1142, "days_rel": null, "gap_med": null, "n_releases_24m": 0}, "score": 32, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}