{"id":13878960,"url":"https://github.com/adam12/sequel-hash_id","last_synced_at":"2025-07-05T09:39:25.182Z","repository":{"id":56895012,"uuid":"81606319","full_name":"adam12/sequel-hash_id","owner":"adam12","description":"Sequel plugin to obscure your primary keys with a hashid","archived":false,"fork":false,"pushed_at":"2024-12-27T15:57:10.000Z","size":29,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-28T08:36:45.641Z","etag":null,"topics":["hashids","sequel"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adam12.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-02-10T21:00:41.000Z","updated_at":"2024-12-27T15:57:13.000Z","dependencies_parsed_at":"2024-01-13T20:56:24.172Z","dependency_job_id":"8e2447e7-3bed-43ed-b258-b8aeb1fd4c53","html_url":"https://github.com/adam12/sequel-hash_id","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/adam12/sequel-hash_id","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adam12%2Fsequel-hash_id","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adam12%2Fsequel-hash_id/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adam12%2Fsequel-hash_id/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adam12%2Fsequel-hash_id/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adam12","download_url":"https://codeload.github.com/adam12/sequel-hash_id/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adam12%2Fsequel-hash_id/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263137587,"owners_count":23419310,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["hashids","sequel"],"created_at":"2024-08-06T08:02:05.426Z","updated_at":"2025-07-05T09:39:25.155Z","avatar_url":"https://github.com/adam12.png","language":"Ruby","funding_links":[],"categories":["Ruby"],"sub_categories":[],"readme":"# Sequel Hash ID\n\nEasily obfuscate your Integer-based primary keys in Sequel models. The anonymity\nof a UUID without any overhead.\n\nThese are commonly used for URL shorteners, but they have other use cases as well.\nSpecifically, they are very handy to prevent nieve crawling / scraping, where your\nrecords are known to be incremental.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem \"sequel-hash_id\"\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install sequel-hash_id\n\n## Usage\n\nThis plugin likely only makes sense at the Model level, so configure it\nfor each model you want to have a hashid for. The only required option\nis the salt you wish to use.\n\n```ruby\nplugin :hash_id, salt: \"your-salt\".freeze\n```\n\nOnce you've done that, you can now access the following methods:\n\n```ruby\n# Get the instance's hashid\ninstance = YourModel.create\ninstance.hashid\n\n# Lookup using a hashid\nYourModel.with_hashid(\"the-hashid\")\n\n# Dataset lookup method\nYourModel.where { ... }.with_hashid(\"the-hashid\")\n```\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/adam12/sequel-hash_id.\n\nI love pull requests! If you fork this project and modify it, please ping me to see\nif your changes can be incorporated back into this project.\n\nThat said, if your feature idea is nontrivial, you should probably open an issue to\n[discuss it](http://www.igvita.com/2011/12/19/dont-push-your-pull-requests/)\nbefore attempting a pull request.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadam12%2Fsequel-hash_id","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadam12%2Fsequel-hash_id","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadam12%2Fsequel-hash_id/lists"}