{"id":35235492,"url":"https://github.com/sqids/sqids-coldfusion","last_synced_at":"2026-04-02T01:37:11.153Z","repository":{"id":176746956,"uuid":"658043378","full_name":"sqids/sqids-coldfusion","owner":"sqids","description":"Official ColdFusion port of Sqids. Generate short unique IDs from numbers.","archived":false,"fork":false,"pushed_at":"2024-02-04T17:29:01.000Z","size":37,"stargazers_count":11,"open_issues_count":0,"forks_count":3,"subscribers_count":6,"default_branch":"main","last_synced_at":"2024-02-04T20:28:16.303Z","etag":null,"topics":["coldfusion","hashids","id","id-generator","lucee","short","short-id","short-url","sqids","uid","unique-id","unique-id-generator"],"latest_commit_sha":null,"homepage":"https://sqids.org/coldfusion","language":"ColdFusion","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sqids.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-06-24T15:33:53.000Z","updated_at":"2024-02-02T20:22:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"640fe77d-c51d-4b88-8788-183dc7f6bd3f","html_url":"https://github.com/sqids/sqids-coldfusion","commit_stats":null,"previous_names":["sqids/sqids-coldfusion"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sqids/sqids-coldfusion","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sqids%2Fsqids-coldfusion","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sqids%2Fsqids-coldfusion/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sqids%2Fsqids-coldfusion/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sqids%2Fsqids-coldfusion/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sqids","download_url":"https://codeload.github.com/sqids/sqids-coldfusion/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sqids%2Fsqids-coldfusion/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31293982,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T01:05:07.454Z","status":"ssl_error","status_checked_at":"2026-04-02T00:56:46.496Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["coldfusion","hashids","id","id-generator","lucee","short","short-id","short-url","sqids","uid","unique-id","unique-id-generator"],"created_at":"2025-12-30T03:49:43.433Z","updated_at":"2026-04-02T01:37:11.148Z","avatar_url":"https://github.com/sqids.png","language":"ColdFusion","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [Sqids ColdFusion](https://sqids.org/coldfusion)\n\n[![Tests](https://github.com/sqids/sqids-coldfusion/actions/workflows/TestBox.yml/badge.svg)](https://github.com/sqids/sqids-coldfusion/actions/workflows/TestBox.yml)\n\n[Sqids](https://sqids.org/coldfusion) (*pronounced \"squids\"*) is a small library that lets you **generate unique IDs from numbers**. It's good for link shortening, fast \u0026 URL-safe ID generation and decoding back into numbers for quicker database lookups.\n\nFeatures:\n\n- **Encode multiple numbers** - generate short IDs from one or several non-negative numbers\n- **Quick decoding** - easily decode IDs back into numbers\n- **Unique IDs** - generate unique IDs by shuffling the alphabet once\n- **ID padding** - provide minimum length to make IDs more uniform\n- **URL safe** - auto-generated IDs do not contain common profanity\n- **Randomized output** - Sequential input provides nonconsecutive IDs\n- **Many implementations** - Support for [40+ programming languages](https://sqids.org/)\n\n## 🧰 Use-cases\n\nGood for:\n\n- Generating IDs for public URLs (eg: link shortening)\n- Generating IDs for internal systems (eg: event tracking)\n- Decoding for quicker database lookups (eg: by primary keys)\n\nNot good for:\n\n- Sensitive data (this is not an encryption library)\n- User IDs (can be decoded revealing user count)\n\n## 🚀 Getting started\n\nTested with:\n * Adobe ColdFusion 2018\n * Adobe ColdFusion 2021\n * Adobe ColdFusion 2023\n * Lucee 5\n * Lucee 6\n\nClone the repository and copy the Sqids folder to your project. Then in the application.cfc add a mapping\n```java\nthis.mappings[ \"/Sqids\" ] = expandPath( \"/src/Sqids\" );\n```\n\n## 👩‍💻 Examples\n\nSimple encode \u0026 decode:\n\n```java\nvar sqids = new Sqids.SquidsEncoder();\nvar id = sqids.encode([1, 2, 3]); // \"86Rf07\"\nvar numbers = sqids.decode(id); // [1, 2, 3]\n```\n\n\u003e **Note**\n\u003e 🚧 Because of the algorithm's design, **multiple IDs can decode back into the same sequence of numbers**. If it's important to your design that IDs are canonical, you have to manually re-encode decoded numbers and check that the generated ID matches.\n\nEnforce a *minimum* length for IDs:\n\n```java\nvar sqids = new Sqids.SquidsEncoder(new Sqids.SqidsOptions(minLength = 10));\nvar id = sqids.encode([1, 2, 3]); // \"86Rf07xd4z\"\nvar numbers = sqids.decode(id); // [1, 2, 3]\n```\n\nRandomize IDs by providing a custom alphabet:\n\n```java\nvar sqids = new Sqids.SquidsEncoder(new Sqids.SqidsOptions(alphabet = \"FxnXM1kBN6cuhsAvjW3Co7l2RePyY8DwaU04Tzt9fHQrqSVKdpimLGIJOgb5ZE\"));\nvar id = sqids.encode([1, 2, 3]); // \"B4aajs\"\nvar numbers = sqids.decode(id); // [1, 2, 3]\n```\n\nPrevent specific words from appearing anywhere in the auto-generated IDs:\n\n```java\nvar sqids = new Sqids.SquidsEncoder(new Sqids.SqidsOptions(blocklist = [\"86Rf07\"]));\nvar id = sqids.encode([1, 2, 3]); // \"se8ojk\"\nvar numbers = sqids.decode(id); // [1, 2, 3]\n```\n\n## 📝 License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsqids%2Fsqids-coldfusion","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsqids%2Fsqids-coldfusion","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsqids%2Fsqids-coldfusion/lists"}