With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js. Learn more →
Top 6 typeid Open-Source Projects
-
typeid-js
TypeScript implementation of TypeIDs: type-safe, K-sortable, and globally unique identifiers inspired by Stripe IDs
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
-
typeid-python
Python implementation of TypeIDs: type-safe, K-sortable, and globally unique identifiers inspired by Stripe IDs
-
typeid-sql
SQL implementation TypeIDs: type-safe, K-sortable, and globally unique identifiers inspired by Stripe IDs
-
django-spicy-id
🌶️ Cool "Stripe-style" self-identifying row IDs for Django. A drop-in replacement AutoField.
I’ve seen this sort of design referred to as “typed IDs”: https://github.com/jetify-com/typeid
Doesn’t use the crockford encoding, but does is another one that minimises confusables.
If you want a type-prefixed UUIDv7 type, I can wholeheartedly recommend TypeID-JS: https://github.com/jetpack-io/typeid-js
Also available for a whole bunch of other languages: https://github.com/jetpack-io/typeid
UUIDv7 is UUIDv4-compatible (i.e. you can put a v7 UUID anywhere a v4 UUID would go, like in Postgres's UUID datatype) and is time-series sortable, so you don't lose that nice lil' benefit of auto-incrementing IDs.
And if you use something like TypeORM to define your entities, you can use a Transformer to save as plain UUIDv7 in the DB (so you can use UUID datatypes, not strings), but deal with them as type-prefixed strings everywhere else:
```
Project mention: Python implementation of TypeIDs: type-safe, K-sortable, and globally unique identifiers inspired by Stripe IDs | /r/opensource | 2023-07-09
Project mention: Type-safe, K-sortable, globally unique identifier inspired by Stripe IDs | news.ycombinator.com | 2023-06-28The authors have created a specialisation for Postgres that leverages a custom type which is a tuple of type and uuidv7: https://github.com/jetpack-io/typeid-sql/blob/main/sql/typei...
This is more optimal for Postgres while making it slightly more difficult to interop between the db and the language (db driver needs to handle custom types, and you need to inject a custom type converter).
And while there are hacks you can do to make storing uuid-alikes as strings less terrible for db engines, if you want the best performance and smallest space consumption (compressed or not) make sure to use native ID types or convert to BINARY/numeric types.
Project mention: Type-safe, K-sortable, globally unique identifier inspired by Stripe IDs | news.ycombinator.com | 2023-06-28
Nice list, found a couple projects I hadn't seen before.
My addition for your consideration: https://github.com/mik3y/django-spicy-id
typeid related posts
- ULIDs and Primary Keys
- Type-safe, K-sortable, globally unique identifier inspired by Stripe IDs
- The UX of UUIDs
- typeid: Type-safe, K-sortable, globally unique identifier inspired by Stripe IDs
- typeid: Type-safe, K-sortable, globally unique identifier inspired by Stripe IDs
- Why do so many EF tutorials use GUIDs as primary key?
- How to create unique id for every todo in a todo list.
-
A note from our sponsor - SurveyJS
surveyjs.io | 29 Apr 2024
Index
What are some of the best open-source typeid projects? This list will help you:
Project | Stars | |
---|---|---|
1 | typeid | 2,744 |
2 | typeid-js | 207 |
3 | typeid-python | 77 |
4 | typeid-sql | 67 |
5 | typeid-ts | 34 |
6 | django-spicy-id | 13 |
Sponsored