bwmarrin/snowflake
A simple to use Go (golang) package to generate or parse Twitter snowflake IDs observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3752
- days_rel: n/a
- days_push: 769
- n_releases_24m: 0
Adoption not part of the score
3349 stars · 394 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A Go package for generating and parsing Twitter snowflake IDs, 63-bit integers encoding timestamp, node ID, and sequence number. It supports custom bit layouts and epochs, JSON marshaling, and monotonic clock protection against drift.
Use cases
- generate unique distributed ids in go
- parse twitter snowflake ids
- generate sortable unique ids for database keys
- use snowflake ids in a json api
- generate ids across multiple nodes without coordination
When to avoid
- you need UUIDs or non-numeric identifiers
- you need IDs with embedded randomness rather than timestamps
- your project is not in Go
Facets
library · maturity stable
serialization developer-tools databases microservices developer-tools go cross-platform snowflake-ids unique-id-generation twitter-snowflake id-parsing
1 source
- readme: https://github.com/bwmarrin/snowflake · fetched 2026-08-28 · ed579e38f614
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| bwmarrin/snowflake | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="bwmarrin/snowflake")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem