❄ FlakeId

Decentralized, k-ordered ID generation service

Installation

Add flake_id to your list of dependencies in mix.exs:

def deps do
  [
    {:flake_id, "~> 0.1.0"}
  ]
end

Usage

iex> FlakeId.get()
"9n3171dJZpdD77K3DU"

See https://hexdocs.pm/flake_id for the complete documentation.

With Ecto

It is possible to use FlakeId with Ecto. See FlakeId.Ecto.Type documentation for detailed instructions.

Prior Art

  • flaky, released under the terms of the Truly Free License,
  • Flake, Copyright 2012, Boundary, Apache License, Version 2.0

Copyright © 2017-2019 Pleroma Authors

FlakeId source code is licensed under the GNU LGPLv3 License.