Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rvcas/ids

✨ Unique IDs for Gleam
https://github.com/rvcas/ids

cuid gleam nanoid unique uuid

Last synced: 3 days ago
JSON representation

✨ Unique IDs for Gleam

Awesome Lists containing this project

README

        

# ids

![CI](https://github.com/lrosa007/ids/workflows/test/badge.svg?branch=main)
[![Package Version](https://img.shields.io/hexpm/v/ids)](https://hex.pm/packages/ids)
[![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](https://hexdocs.pm/ids/)

✨ Unique IDs for Gleam

## Supported

- [CUID](https://github.com/ericelliott/cuid)
- [UUID v4](https://en.wikipedia.org/wiki/Universally_unique_identifier)
- [UUID v7](https://www.ietf.org/archive/id/draft-peabody-dispatch-new-uuid-format-04.html#section-5.2)
- [NanoID](https://github.com/ai/nanoid)
- [ULID](https://github.com/ulid/spec)
- [Snowflake ID](https://en.wikipedia.org/wiki/Snowflake_ID)
- [TypeID](https://github.com/jetify-com/typeid)

## Installation

The library is available on Hex so it can be added to your Gleam project by simply running:

```sh
gleam add ids
```

## References

1. [Original CUID](https://en.wikipedia.org/wiki/Universally_unique_identifier)
2. [Elixir CUID](https://github.com/duailibe/cuid)
3. [Ecto UUID](https://github.com/elixir-ecto/ecto/blob/v3.5.4/lib/ecto/uuid.ex)
4. [Elixir UUID](https://github.com/bitwalker/uniq)
5. [Rust Snowflake ID](https://github.com/BinChengZhao/snowflake-rs)
6. [TypeID Spec](https://github.com/jetify-com/typeid/tree/main/spec)
6. [Elixir TypeID](https://github.com/sloanelybutsurely/typeid-elixir)