{"id":21313751,"url":"https://github.com/hjpotter92/sonyflake-ex","last_synced_at":"2025-09-14T13:51:33.460Z","repository":{"id":57550559,"uuid":"355859458","full_name":"hjpotter92/sonyflake-ex","owner":"hjpotter92","description":"A distributed unique ID generator inspired by Twitter's Snowflake, rewritten in elixir.","archived":false,"fork":false,"pushed_at":"2023-09-03T20:44:06.000Z","size":20,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-09-19T04:07:24.529Z","etag":null,"topics":["elixir","id-generator","snowflake","sonyflake","unique-id"],"latest_commit_sha":null,"homepage":"https://hex.pm/packages/sonyflake","language":"Elixir","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/hjpotter92.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}},"created_at":"2021-04-08T10:21:23.000Z","updated_at":"2023-09-03T19:34:18.000Z","dependencies_parsed_at":"2022-08-29T20:41:04.115Z","dependency_job_id":null,"html_url":"https://github.com/hjpotter92/sonyflake-ex","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hjpotter92%2Fsonyflake-ex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hjpotter92%2Fsonyflake-ex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hjpotter92%2Fsonyflake-ex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hjpotter92%2Fsonyflake-ex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hjpotter92","download_url":"https://codeload.github.com/hjpotter92/sonyflake-ex/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225778866,"owners_count":17522710,"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":["elixir","id-generator","snowflake","sonyflake","unique-id"],"created_at":"2024-11-21T18:08:32.143Z","updated_at":"2024-11-21T18:08:32.690Z","avatar_url":"https://github.com/hjpotter92.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sonyflake-ex\n\n[![codecov][codecov-badge]][codecov] [![Build Status][travis-ci-badge]][travis-ci]\n\nSonyflake is a distributed unique ID generator inspired by [Twitter's\nSnowflake](https://blog.twitter.com/2010/announcing-snowflake).\n\nThis is an elixir rewrite of the original\n[sony/sonyflake](https://github.com/sony/sonyflake) project, written\nin Go.\n\nA Sonyflake ID is composed of\n\n    39 bits for time in units of 10 msec\n     8 bits for a sequence number\n    16 bits for a machine id\n\n## Installation\n\nAdd the package `sonyflake` to the list of dependencies in `mix.exs`:\n\n```elixir\n{:sonyflake_ex, \"~\u003e 0.1.0\", hex: :sonyflake}\n```\n\n## Quickstart\n\n``` elixir\nsf = Sonyflake.new()\n{:ok, sf, id} = Sonyflake.next_id(sf)\nIO.puts(id)\n```\n\nThere is a `Sonyflake.Setting` submodule to configure the\ngenerator. API docs can be found autogenerated on [hexdocs].\n\n## License\n\nThe MIT License (MIT).\n\n\n  [codecov]: https://codecov.io/gh/hjpotter92/sonyflake-ex\n  [codecov-badge]: https://codecov.io/gh/hjpotter92/sonyflake-ex/branch/main/graph/badge.svg?token=C0gJpcbuXe\n  [hexdocs]: https://hexdocs.pm/sonyflake/\n  [travis-ci]: https://travis-ci.com/hjpotter92/sonyflake-ex\n  [travis-ci-badge]: https://travis-ci.com/hjpotter92/sonyflake-ex.svg?branch=main\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhjpotter92%2Fsonyflake-ex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhjpotter92%2Fsonyflake-ex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhjpotter92%2Fsonyflake-ex/lists"}