{"adoption": {"forks": 425, "observed_at": "2026-08-28T04:07:48.642693+00:00", "stars": 3207}, "canonical_url": "https://ross.abutalabs.com/products/idgenerator", "card": {"archived": false, "artifact_type": "library", "description": "💎多语言实现，高性能生成唯一数字ID。 💎优化的雪花算法（SnowFlake）——雪花漂移算法，在缩短ID长度的同时，具备极高瞬时并发处理能力（50W/0.1s）。 💎原生支持 C#/Java/Go/Rust/C/JavaScript/TypeScript/Python/Pascal 多语言，提供其它适用于其它语言的多线程安全调用动态库（FFI）。💎支持容器环境自动扩容（自动注册 WorkerId ），单机或分布式唯一IdGenerator。💎顶尖优化，超强效能。", "domain": ["databases", "microservices", "backend", "developer-tools"], "enriched": true, "function": ["database", "concurrency", "developer-tools"], "health_score": 30, "homepage": null, "language": "C", "license": "MIT", "license_family": "permissive", "maturity": "active", "member_repos": ["yitter/IdGenerator"], "name": "yitter/IdGenerator", "platform": ["cross-platform", "dotnet", "jvm", "go", "rust", "cpp", "python", "php", "c"], "pushed_at": "2025-04-10T05:37:55+00:00", "repo": "yitter/IdGenerator", "stars": 3207, "tags": ["snowflake", "unique-id", "id-generation", "distributed-systems", "primary-key", "snowflake-drift-algorithm", "multi-language", "kubernetes", "nodejs"], "topics": ["snowflake", "idgenerator", "dotnet", "rust", "java", "go", "twritter-snowflake", "c-sharp", "unique-id", "typescript", "javascript", "sql", "php", "c", "delphi", "pascal"], "urls": [], "use_cases": ["generate unique primary keys for distributed databases", "generate short snowflake-style IDs that fit in JavaScript Number", "generate unique IDs across sharded databases", "auto-register worker IDs when scaling in kubernetes", "generate monotonic IDs at very high concurrency", "replace GUIDs with shorter sortable numeric IDs", "handle clock rollback when generating IDs"], "what_it_is": "A high-performance unique numeric ID generator library implementing an optimized Snowflake ('drift') algorithm, natively available in C#, Java, Go, Rust, C, JavaScript, TypeScript, Python, Pascal, and more via FFI. It generates short, monotonically increasing 64-bit IDs suitable for distributed database primary keys, with automatic WorkerId registration in container environments like Kubernetes.", "when_to_avoid": ["you need UUID/GUID-format identifiers or string IDs", "you require strictly consecutive (gap-free) sequential IDs", "your system cannot guarantee a globally unique WorkerId per instance", "you depend on an external service like Redis for ID allocation and prefer that model"], "when_to_choose": ["you need compact, time-ordered numeric IDs for distributed systems or sharded tables", "you need extremely high ID generation throughput (hundreds of thousands per second)", "you want a dependency-free ID generator usable across many programming languages", "you deploy in containers and need automatic WorkerId registration", "you need to keep generated IDs within JavaScript's Number.MAX_SAFE_INTEGER for decades"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/idgenerator", "repo": "yitter/IdGenerator", "role": "main", "score": 30}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:07:48.642693+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T07:24:45.891796+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "17558103ead406bbc13d3ab594f2b79f323fb0e2198620e9e78eed6f3fd68dae", "fetched_at": "2026-08-28T04:07:48.642693+00:00", "kind": "readme", "missing": false, "url": "https://github.com/yitter/IdGenerator"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:07:48.642693+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T07:24:45.891796+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "17558103ead406bbc13d3ab594f2b79f323fb0e2198620e9e78eed6f3fd68dae", "fetched_at": "2026-08-28T04:07:48.642693+00:00", "kind": "readme", "missing": false, "url": "https://github.com/yitter/IdGenerator"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T07:24:45.891796+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "17558103ead406bbc13d3ab594f2b79f323fb0e2198620e9e78eed6f3fd68dae", "fetched_at": "2026-08-28T04:07:48.642693+00:00", "kind": "readme", "missing": false, "url": "https://github.com/yitter/IdGenerator"}], "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:07:48.642693+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:07:48.642693+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:07:48.642693+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T07:24:45.891796+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "17558103ead406bbc13d3ab594f2b79f323fb0e2198620e9e78eed6f3fd68dae", "fetched_at": "2026-08-28T04:07:48.642693+00:00", "kind": "readme", "missing": false, "url": "https://github.com/yitter/IdGenerator"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:07:48.642693+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:07:48.642693+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T07:24:45.891796+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "17558103ead406bbc13d3ab594f2b79f323fb0e2198620e9e78eed6f3fd68dae", "fetched_at": "2026-08-28T04:07:48.642693+00:00", "kind": "readme", "missing": false, "url": "https://github.com/yitter/IdGenerator"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:07:48.642693+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:07:48.642693+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:07:48.642693+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T07:24:45.891796+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "17558103ead406bbc13d3ab594f2b79f323fb0e2198620e9e78eed6f3fd68dae", "fetched_at": "2026-08-28T04:07:48.642693+00:00", "kind": "readme", "missing": false, "url": "https://github.com/yitter/IdGenerator"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:07:48.642693+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:07:48.642693+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T07:24:45.891796+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "17558103ead406bbc13d3ab594f2b79f323fb0e2198620e9e78eed6f3fd68dae", "fetched_at": "2026-08-28T04:07:48.642693+00:00", "kind": "readme", "missing": false, "url": "https://github.com/yitter/IdGenerator"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T07:24:45.891796+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "17558103ead406bbc13d3ab594f2b79f323fb0e2198620e9e78eed6f3fd68dae", "fetched_at": "2026-08-28T04:07:48.642693+00:00", "kind": "readme", "missing": false, "url": "https://github.com/yitter/IdGenerator"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T07:24:45.891796+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "17558103ead406bbc13d3ab594f2b79f323fb0e2198620e9e78eed6f3fd68dae", "fetched_at": "2026-08-28T04:07:48.642693+00:00", "kind": "readme", "missing": false, "url": "https://github.com/yitter/IdGenerator"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T07:24:45.891796+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "17558103ead406bbc13d3ab594f2b79f323fb0e2198620e9e78eed6f3fd68dae", "fetched_at": "2026-08-28T04:07:48.642693+00:00", "kind": "readme", "missing": false, "url": "https://github.com/yitter/IdGenerator"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 15, "longevity": 100, "rhythm": 8}, "computed_at": "2026-09-02T17:46:02.011165+00:00", "flags": [], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 1999, "days_push": 510, "days_rel": null, "gap_med": null, "n_releases_24m": 0}, "score": 30, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}