ULIDs and Primary Keys

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • ksuid

    K-Sortable Globally Unique IDs

  • https://segment.com/blog/a-brief-history-of-the-uuid/

  • spec

    The canonical spec for ulid

  • https://github.com/ulid/spec/issues

    I went through this exploration a while back for a new project and decided on uuidv7s, which are binary compatible with ULIDs but will likely find more support as they get added to the original UUID RFC.

    Either UUIDv7 or XIDs seem like better choices than ULIDs for new projects.

    * Supabase on different primary key considerations: https://supabase.com/blog/choosing-a-postgres-primary-key

    * Postgres extension for generating various kinds of IDs: https://github.com/VADOSWARE/pg_idkit

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • pg_idkit

    Postgres extension for generating UUIDs

  • https://github.com/ulid/spec/issues

    I went through this exploration a while back for a new project and decided on uuidv7s, which are binary compatible with ULIDs but will likely find more support as they get added to the original UUID RFC.

    Either UUIDv7 or XIDs seem like better choices than ULIDs for new projects.

    * Supabase on different primary key considerations: https://supabase.com/blog/choosing-a-postgres-primary-key

    * Postgres extension for generating various kinds of IDs: https://github.com/VADOSWARE/pg_idkit

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts