Ross ROSS = Recommend OSS · open-source software intelligence for agents

niieani/hashids.js

A small JavaScript library to generate YouTube-like ids from numbers. observed · 2026-08-28

github.com/niieani/hashids.js · homepage · TypeScript · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

53/100

  • Activity 67
  • 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: 5135
  • days_rel: n/a
  • days_push: 202
  • n_releases_24m: 0

Full methodology

Adoption not part of the score

4288 stars · 204 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded

Hashids is a small JavaScript/TypeScript library that generates YouTube-like short, reversible IDs from numbers, so database primary keys aren't exposed to users. It supports encoding multiple numbers into one ID, custom alphabets, salts, and minimum ID lengths, and works in browsers, Node.js, and TypeScript environments.

Use cases

  • hide database ids in urls
  • generate youtube-like short ids from numbers
  • encode multiple numbers into one short id
  • create url-safe product or event ids
  • generate confirmation codes for emails
  • obfuscate primary keys in a web app

When to choose

  • you want reversible, random-looking ids from integers without exposing row counts or primary keys
  • you need a tiny dependency-free library that works in browser, node, and typescript
  • you need to encode several numbers into a single id and decode them back

When to avoid

  • you need security or encryption - hashids are trivially decodable and not hashes
  • you want to hide user counts from ids
  • you are starting a new project and prefer its successor, Sqids

Facets

library · maturity maintenance

serialization developer-tools developer-tools web-development databases browser cross-platform hashids id-generation obfuscation url-safe-ids typescript npm-package nodejs javascript

3 sources

Member repositories

RepositoryRoleHealth v2
niieani/hashids.jsmain53

For agents

markdown · JSON · MCP: product_card(name="niieani/hashids.js")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem