python-ksuid
typeid
Our great sponsors
python-ksuid | typeid | |
---|---|---|
9 | 15 | |
120 | 2,744 | |
3.3% | 6.7% | |
3.3 | 8.2 | |
10 months ago | 6 days ago | |
Python | Go | |
MIT License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
python-ksuid
- Type-safe, K-sortable, globally unique identifier inspired by Stripe IDs
-
Show r/rust: Open-Source Webhooks Service
Homepage: https://www.svix.com
-
Show HN: Svix – open-source webhooks service written in Rust
It's really fast, it makes writing secure and correct code easier, it's easier to deploy and distribute (one static binary), and it's a lot more fun. :)
Webhooks are really cool, and I absolutely love what they enable. They make the web compose-able, interconnected, and enable people to automate a lot of their work! Our goal is to make them easy, reliable, and consistent, so that more services offer them and they are easier to consume.
I'd love to hear your feedback! We've incorporated most of the comments we got the last time[0] (thanks again everyone!), and we would love to know how we can improve the product further. Got any suggestions?
Homepage: https://www.svix.com
Repo: https://github.com/svix/svix-webhooks/
Docs: https://docs.svix.com/
API reference: https://api.svix.com/
[0] https://news.ycombinator.com/item?id=26399672
-
Show HN: A Pure Rust Ksuid Implementation
I wasn't going to post it here because it feels a bit small for a show HN, but then I figured: why not. :)
It's a pure Rust implementation of Segement's KSUID, and I created this library while working on Svix[0].
I haven't written any Rust for a while, so even though I have written quite a bit of Rust code in the past (see Etebase[1]), I'm a bit rusty (no pun intended).
Anyhow, I just wanted to share, and I'm hoping to get some feedback if you have any. :)
Code and examples: https://github.com/svix/rust-ksuid/
P.S, the package is tested for compatibility against the reference Go implementation.
[0] https://www.svix.com
-
Show r/rust: a pure Rust KSUID implementation
I created this library while working on Svix. We have a highly scalable and distributed environment there, which is where KSUIDs really shine.
- Show HN: Hookdeck, an Infrastructure to Consume Webhooks
-
Give me /events, not webhooks
These reasons are exactly why we started Svix[1] (we do webhooks as a service). I wish we existed to serve you guys back when you started working on it. :)
[1] https://www.svix.com
-
Launch HN: Svix (YC W21) – Webhooks as a Service
Hey everyone, my name is Tom, and I'm the founder of Svix (https://www.svix.com) - previously known as Diahook. Svix makes it easy for developers to send webhooks from their service using a simple API. Think Twilio or SendGrid but for webhooks.
Webhooks are how servers notify each other of events, so they are a key component of many APIs such as Stripe, Shopify, Slack, Dropbox and Github.
-
Svix-KSUID - A pure-python implementation of the KSUID (K-Sortable Unique IDentifier)
Code and examples: https://github.com/svixhq/python-ksuid/
typeid
-
ULIDs and Primary Keys
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.
- Type-safe, K-sortable, globally unique identifier inspired by Stripe IDs
-
The UX of UUIDs
https://github.com/uuid6/new-uuid-encoding-techniques-ietf-d...
But there is always TypeID in the meantime which uses UUIDv7 under the hood: https://github.com/jetify-com/typeid
Either way, I am in favor of prefixing and using alternative encodings, but it will need some time to figure out the best route. In the mean time, there are so many alternatives. TypeID, NanoID, ULID, etc. I even made my own quick one just for giggles: https://github.com/daegalus/snowflakes
-
Adding type safety to object IDs in TypeScript
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:
```
-
You Don't Need UUID
IMO, a good middleground is using schemes like TypeID[0], ulid[1], or KSUID[2] that provides a more compact and readable (base32) representation and provides better database locality (K-sortable).
[0] https://github.com/jetpack-io/typeid
- typeid: Type-safe, K-sortable, globally unique identifier inspired by Stripe IDs
-
Why do so many EF tutorials use GUIDs as primary key?
If you do consider a GUID, I recommend the TypeID library we recently open-sourced. It has typing as part of the id, and it's based on UUIDv7. We think it has a few benefits over other GUIDs, including: + Easier to debug because of the type information + Type-safety can be enforced + Thanks to UUIDv7 is has good locality properties when used as the primary key of a database (unlike a completely random GUID) + We have a dotnet implementation in C# available
-
How to create unique id for every todo in a todo list.
If you’re open to a globally unique identifier like UUID, I’d recommend you check out TypeIDs which we recently open sourced https://github.com/jetpack-io/typeid. They are based on the UUIDv7 standard, but add type information (like what Stripe does in their APIs), and we have a TypeScript implementation available.
What are some alternatives?
ksuid - K-Sortable Globally Unique IDs
rust-ksuid - A pure-Rust KSUID implementation
Huginn - Create agents that monitor and act on your behalf. Your agents are standing by!
typeid-ts - TypeID UUIDv7 implementation in Typescript (Lib and CLI)
svix-webhooks - The enterprise-ready webhooks service 🦀
typeid-go - Go implementation of TypeIDs: type-safe, K-sortable, and globally unique identifiers inspired by Stripe IDs
parsemail - Hanami fork of https://github.com/DusanKasan/parsemail
typeid-sql - SQL implementation TypeIDs: type-safe, K-sortable, and globally unique identifiers inspired by Stripe IDs
stripe-sync-engine - Sync your Stripe account to you Postgres database.
spec - The canonical spec for ulid
snowid - A Decentralized, K-Ordered 128-bit Unique ID Generator library in C.