Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/rvcas/ids
- Owner: rvcas
- License: apache-2.0
- Created: 2020-10-26T04:55:33.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-07-16T23:56:44.000Z (5 months ago)
- Last Synced: 2024-12-06T15:51:59.985Z (6 days ago)
- Topics: cuid, gleam, nanoid, unique, uuid
- Language: Gleam
- Homepage: https://hexdocs.pm/ids/
- Size: 95.7 KB
- Stars: 47
- Watchers: 1
- Forks: 8
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- awesome-gleam - ids - [📚](https://hexdocs.pm/ids/) - Unique IDs for Gleam (Packages / Cryptography)
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)