HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
sqids
sqids-ruby
Ruby2023–2023
sqids / sqids-ruby

sqids-ruby

Official Ruby port of Sqids. Generate short unique IDs from numbers.

2Distinct people
2Mentions
0Explicit recommenders
224GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

Official Ruby port of Sqids. Generate short unique IDs from numbers.

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 1:49:46 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by hour2 dated mentions

Observed mentions: 2023-11-25 23:10:26 UTC to 2023-11-26 11:07:55 UTC.

012023-11-25 23:00:00 UTC to 2023-11-26 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsNov 25, 23:002023-11-26 00:00:00 UTC to 2023-11-26 01:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2023-11-26 01:00:00 UTC to 2023-11-26 02:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2023-11-26 02:00:00 UTC to 2023-11-26 03:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2023-11-26 03:00:00 UTC to 2023-11-26 04:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2023-11-26 04:00:00 UTC to 2023-11-26 05:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2023-11-26 05:00:00 UTC to 2023-11-26 06:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 commentsNov 26, 05:002023-11-26 06:00:00 UTC to 2023-11-26 07:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2023-11-26 07:00:00 UTC to 2023-11-26 08:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2023-11-26 08:00:00 UTC to 2023-11-26 09:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2023-11-26 09:00:00 UTC to 2023-11-26 10:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2023-11-26 10:00:00 UTC to 2023-11-26 11:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2023-11-26 11:00:00 UTC to 2023-11-26 12:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsNov 26, 11:00

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
Nov 25, 23:002023-11-25 23:00:00 UTC2023-11-26 00:00:00 UTC101
Nov 26, 00:002023-11-26 00:00:00 UTC2023-11-26 01:00:00 UTC000
Nov 26, 01:002023-11-26 01:00:00 UTC2023-11-26 02:00:00 UTC000
Nov 26, 02:002023-11-26 02:00:00 UTC2023-11-26 03:00:00 UTC000
Nov 26, 03:002023-11-26 03:00:00 UTC2023-11-26 04:00:00 UTC000
Nov 26, 04:002023-11-26 04:00:00 UTC2023-11-26 05:00:00 UTC000
Nov 26, 05:002023-11-26 05:00:00 UTC2023-11-26 06:00:00 UTC000
Nov 26, 06:002023-11-26 06:00:00 UTC2023-11-26 07:00:00 UTC000
Nov 26, 07:002023-11-26 07:00:00 UTC2023-11-26 08:00:00 UTC000
Nov 26, 08:002023-11-26 08:00:00 UTC2023-11-26 09:00:00 UTC000
Nov 26, 09:002023-11-26 09:00:00 UTC2023-11-26 10:00:00 UTC000
Nov 26, 10:002023-11-26 10:00:00 UTC2023-11-26 11:00:00 UTC000
Nov 26, 11:002023-11-26 11:00:00 UTC2023-11-26 12:00:00 UTC101

What Hacker News says

2 sources
I actually used sqids algo for something very different where I had to encode arbitrary sized byte arrays. And with Ruby it was very simple to remove limit - I think it was matter of monkey-patching https://github.com/sqids/sqids-ruby/blob/main/lib/sqids.rb#L... to return infinity. The reason for the limit is most likely to ensure interoperability with libraries in other languages where working with bignums is much more complicated.
In Sqids – Generate short unique IDs from numbers
There's no info on how this actually works. Actually I have no idea what it does in the first place.. From the FAQ: > How can I make my IDs unique? > The library accepts a custom alphabet from which it can generate IDs. Simply pre-shuffle the default alphabet that's provided. I also have no idea how to use the library.. What are the 3 numbers parameters for encode()? The actual code: https://github.com/sqids/sqids-ruby/blob/main/lib/sqids.rb I'd simply base-58 a GUID instead. At least you'll know what kind of constraints / sorting the IDs will have.
In Sqids – Generate short unique IDs from numbers

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.