https://github.com/rs/xid

Last synced: about 1 month ago

Repository metadata:

xid is a globally unique id generator thought for the web


Owner metadata:


Committers metadata

Last synced: about 1 month ago

Total Commits: 82
Total Committers: 43
Avg Commits per committer: 1.907
Development Distribution Score (DDS): 0.707

Commits in past year: 4
Committers in past year: 4
Avg Commits per committer in past year: 1.0
Development Distribution Score (DDS) in past year: 0.75

Name Email Commits
Olivier Poitrey rs@r****t 24
Olivier Poitrey rs@d****m 9
Fred Carle f****e 2
Uditha Atukorala u****a 2
Jeff Widman j****f@j****m 2
Rob X r****y@g****m 2
Sharon Lourduraj s****j@g****m 2
Vincent Serpoul v****t@s****m 2
phuslu p****u@g****m 2
sudo pacman -Syu h****o@g****m 2
Nicholas Corin n****n@g****m 1
Michał Chojnacki m****i@m****o 1
Komu Wairagu k****5@g****m 1
Jeremy Lin j****n 1
Mihail Stoykov M****v 1
Naser Mirzaei n****9 1
Nicolas Bazire n****z 1
SphericalCow 1****l 1
Uditha Atukorala 2****o 1
Aleksandr Shpak s****r 1
Alexandre Del Vecchio 1****x 1
Andreas Thalhammer a****r 1
Andrei Baibaratsky a****i@b****m 1
Dan McGee 8****a 1
Daniel Carbone d****e@g****m 1
Jérôme Renard j****r@f****t 1
Sankar சங்கர் s****y@g****m 1
Satoshi Ohki r****7@g****m 1
Sindre Røkenes Myren s****b@g****m 1
Valar a****i@g****m 1
and 13 more...

Issue and Pull Request metadata

Last synced: about 1 month ago


Package metadata

go: github.com/rs/xid

Package xid is a globally unique id generator suited for web scale Xid is using Mongo Object ID algorithm to generate globally unique ids: https://docs.mongodb.org/manual/reference/object-id/ The binary representation of the id is compatible with Mongo 12 bytes Object IDs. The string representation is using base32 hex (w/o padding) for better space efficiency when stored in that form (20 bytes). The hex variant of base32 is used to retain the sortable property of the id. Xid doesn't use base64 because case sensitivity and the 2 non alphanum chars may be an issue when transported as a string between various systems. Base36 wasn't retained either because 1/ it's not standard 2/ the resulting size is not predictable (not bit aligned) and 3/ it would not remain sortable. To validate a base32 `xid`, expect a 20 chars long, all lowercase sequence of `a` to `v` letters and `0` to `9` numbers (`[0-9a-v]{20}`). UUID is 16 bytes (128 bits), snowflake is 8 bytes (64 bits), xid stands in between with 12 bytes with a more compact string representation ready for the web and no required configuration or central generation server. Features: Best used with xlog's RequestIDHandler (https://godoc.org/github.com/rs/xlog#RequestIDHandler). References:

  • Homepage: https://github.com/rs/xid
  • Documentation: https://pkg.go.dev/github.com/rs/xid#section-documentation
  • Licenses: MIT
  • Latest release: v1.5.0 (published over 1 year ago)
  • Last Synced: 2024-11-11T01:12:59.782Z (about 1 month ago)
  • Versions: 7
  • Dependent Packages: 4,749
  • Dependent Repositories: 35,925
  • Docker Downloads: 13,160,156,698
  • Rankings:
    • Docker downloads count: 0.028%
    • Dependent repos count: 0.031%
    • Dependent packages count: 0.045%
    • Average: 0.652%
    • Stargazers count: 1.187%
    • Forks count: 1.969%
go: github.com/rs/xID

  • Homepage:
  • Documentation: https://pkg.go.dev/github.com/rs/xID#section-documentation
  • Licenses: mit
  • Latest release: v1.5.0 (published over 1 year ago)
  • Last Synced: 2024-11-11T01:12:58.265Z (about 1 month ago)
  • Versions: 7
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Stargazers count: 0.741%
    • Forks count: 1.239%
    • Average: 4.581%
    • Dependent packages count: 6.999%
    • Dependent repos count: 9.346%
go: github.com/rs/xId

  • Homepage:
  • Documentation: https://pkg.go.dev/github.com/rs/xId#section-documentation
  • Licenses: mit
  • Latest release: v1.5.0 (published over 1 year ago)
  • Last Synced: 2024-11-11T01:12:54.026Z (about 1 month ago)
  • Versions: 7
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent packages count: 6.999%
    • Average: 8.173%
    • Dependent repos count: 9.346%
go: github.com/rs/Xid

  • Homepage:
  • Documentation: https://pkg.go.dev/github.com/rs/Xid#section-documentation
  • Licenses: mit
  • Latest release: v1.5.0 (published over 1 year ago)
  • Last Synced: 2024-11-11T01:12:56.599Z (about 1 month ago)
  • Versions: 7
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent packages count: 6.999%
    • Average: 8.173%
    • Dependent repos count: 9.346%

Dependencies

.github/workflows/go.yml actions
  • actions/checkout v3 composite
  • actions/setup-go v3 composite
  • golangci/golangci-lint-action v3 composite
go.mod go