Package Usage: go: github.com/teris-io/shortid
Package shortid enables the generation of short, unique, non-sequential and by default URL friendly
Ids. The package is heavily inspired by the node.js https://github.com/dylang/shortid library.
The standard Id length is 9 symbols when generated at a rate of 1 Id per millisecond,
occasionally it reaches 11 (at the rate of a few thousand Ids per millisecond) and very-very
rarely it can go beyond that during continuous generation at full throttle on high-performant
hardware. A test generating 500k Ids at full throttle on conventional hardware generated the
following Ids at the head and the tail (length > 9 is expected for this test):
The package guarantees the generation of unique Ids with zero collisions for 34 years
(1/1/2016-1/1/2050) using the same worker Id within a single (although concurrent) application if
application restarts take longer than 1 millisecond. The package supports up to 32 works, all
providing unique sequences.
Although heavily inspired by the node.js shortid library this is
not a simple Go port. In addition it
The algorithm uses less randomness than the original node.js implementation, which permits to
extend the life span as well as reduce and guarantee the length. In general terms, each Id
has the following 3 pieces of information encoded: the millisecond (first 8 symbols), the worker
Id (9th symbol), running concurrent counter within the same millisecond, only if required, over
all remaining symbols. The element of randomness per symbol is 1/2 for the worker and the
millisecond and 0 for the counter. Here 0 means no randomness, i.e. every value is encoded using
a 64-base alphabet; 1/2 means one of two matching symbols of the supplied alphabet, 1/4 one of
four matching symbols. The original algorithm of the node.js module uses 1/4 throughout.
All methods accepting the parameters that govern the randomness are exported and can be used
to directly implement an algorithm with e.g. more randomness, but with longer Ids and shorter
life spans.
4 versions
Latest release: almost 3 years ago
854 dependent packages
View more package details: https://packages.ecosyste.ms/registries/proxy.golang.org/packages/github.com/teris-io/shortid
View more repository details: http://repos.ecosyste.ms/hosts/GitHub/repositories/teris-io%2Fshortid
Dependent Repos 1,048
dgfug/grafana Fork of grafana/grafana
The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.Size: 420 MB - Last synced: 11 months ago - Pushed: 11 months ago

boost-entropy-golang/bstream Fork of streamingfast/bstream
Block streaming Handlers library. Lower level building block of dfuse.Size: 4.53 MB - Last synced: 2 months ago - Pushed: 2 months ago

ekmixon/grafana Fork of grafana/grafana
The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.Size: 463 MB - Last synced: 14 days ago - Pushed: 14 days ago

pawanku2/grafana Fork of grafana/grafana
The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.Size: 490 MB - Last synced: 8 days ago - Pushed: 8 days ago

francissimo/grafana Fork of grafana/grafana
The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.Size: 423 MB - Last synced: about 2 years ago - Pushed: about 2 years ago

soracom/grafana Fork of grafana/grafana
The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.Size: 903 MB - Last synced: 9 days ago - Pushed: 9 days ago

xiaojia21190/eagle Fork of go-eagle/eagle
🦅一款小巧的基于Go构建的开发框架,可以快速构建API服务或者Web网站进行业务开发,遵循SOLID设计原则Size: 5.59 MB - Last synced: 25 days ago - Pushed: 25 days ago

L00170150/grafana Fork of grafana/grafana
The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.Size: 587 MB - Last synced: 8 days ago - Pushed: 8 days ago

stolostron/grafana Fork of grafana/grafana
The tool for beautiful monitoring and metric analytics & dashboards for Graphite, InfluxDB & Prometheus & MoreSize: 861 MB - Last synced: 12 days ago - Pushed: 12 days ago

delving/hub3
RDF discovery and publication platformSize: 37.8 MB - Last synced: 6 days ago - Pushed: 15 days ago

crashdump/netcp
Copy files and directories across systems without requiring a direct network line-of-sight. Netcp uses a cloud storage endpoint to store the data while in flight.Size: 3.29 MB - Last synced: 11 months ago - Pushed: about 1 year ago

sysdiglabs/redis_exporter Fork of oliver006/redis_exporter
Prometheus Exporter for Redis Metrics. Supports Redis 2.x, 3.x, 4.x, 5.x and 6.xSize: 7.09 MB - Last synced: 14 days ago - Pushed: 14 days ago

renproject/lightnode
A simple node used for interacting with DarknodesSize: 2.68 MB - Last synced: about 1 month ago - Pushed: over 2 years ago

rarecircles/backend-challenge-go
Size: 386 KB - Last synced: 11 months ago - Pushed: about 2 years ago

muesli/owncast Fork of owncast/owncast
Take control over your live stream video by running it yourself. Streaming + chat out of the box.Size: 43.4 MB - Last synced: about 1 year ago - Pushed: about 2 years ago


defenxor/dsiem
Security event correlation engine for ELK stackSize: 22.5 MB - Last synced: 6 months ago - Pushed: 11 months ago

identity2/YARC
Yet Another Reddit CloneSize: 799 KB - Last synced: over 1 year ago - Pushed: about 2 years ago

agolebiowska/go-search
basic search engine with Go & ElasticsearchSize: 3.08 MB - Last synced: 11 months ago - Pushed: over 2 years ago

teal-finance/rainbow
DeFi options comparator to detect market opportunities with CLI (Go) and web (Vue3).Size: 32 MB - Last synced: 28 days ago - Pushed: 3 months ago



lonecalvary78/consul Fork of hashicorp/consul
Consul is a distributed, highly available, and data center aware solution to connect and configure applications across dynamic, distributed infrastructure.Size: 426 MB - Last synced: 7 days ago - Pushed: 7 days ago

mikeyhodl/owncast Fork of owncast/owncast
Take control over your live stream video by running it yourself. Streaming + chat out of the box.Size: 57.2 MB - Last synced: 5 days ago - Pushed: 6 days ago

Blockdaemon/pyth-go 📦
Go client library for Pyth NetworkSize: 505 KB - Last synced: about 1 month ago - Pushed: almost 2 years ago


jim0409/go-third-party
紀錄我常用的go三方套件Size: 33.1 MB - Last synced: over 1 year ago - Pushed: over 1 year ago

eoscanada/eos-go
EOS.IO Go API librarySize: 6.25 MB - Last synced: about 1 month ago - Pushed: 6 months ago

owncast/owncast
Take control over your live stream video by running it yourself. Streaming + chat out of the box.Size: 899 MB - Last synced: 2 days ago - Pushed: 2 days ago

streamingfast/firehose-ethereum
Ethereum on StreamingFastSize: 25.1 MB - Last synced: 7 days ago - Pushed: 7 days ago

nakji-network/connector
Nakji Connector SDK (Golang)Size: 667 KB - Last synced: 11 months ago - Pushed: almost 2 years ago

bloXroute-Labs/solana-trader-client-go
Size: 20.1 MB - Last synced: 12 days ago - Pushed: 12 days ago

podhmo/individual-sandbox
indivisual sandboxSize: 27.7 MB - Last synced: 23 days ago - Pushed: 23 days ago

streamingfast/streamingfast-client
FastestSize: 508 KB - Last synced: 7 days ago - Pushed: almost 3 years ago

streamingfast/bstream
Block streaming Handlers library. Lower level building block of dfuse.Size: 4.53 MB - Last synced: 7 days ago - Pushed: 21 days ago

Blockdaemon/solana-cluster
Tooling to manage Solana snapshotsSize: 742 KB - Last synced: 1 day ago - Pushed: 2 days ago

anyswap/FastMulThreshold-DSA
Size: 2.14 MB - Last synced: 11 months ago - Pushed: almost 2 years ago

AppkubeCloud/Appkube-Platform
Synectiks AppKubeCloud PlatformSize: 106 MB - Last synced: about 1 year ago - Pushed: about 1 year ago


go-eagle/eagle
🦅 A Go framework for the API or MicroserviceSize: 5.9 MB - Last synced: 19 days ago - Pushed: 19 days ago

TERITORI/teritori-chain
Teritori chain repository based on Cosmos SDKSize: 1.27 MB - Last synced: about 1 month ago - Pushed: 3 months ago

liguoqinjim/go-labs
golang labsSize: 80.5 MB - Last synced: 11 months ago - Pushed: over 1 year ago



GWT-M3O-TEST/m3o
a Local repo to test github/workflowSize: 5.6 MB - Last synced: 11 months ago - Pushed: almost 3 years ago
