Shorter IDs in URLs

Like a lot of Meteor apps, Telescope currently uses document _ids as unique identifiers for the URL:

https://crater.io/posts/mKwNGJz9q5kke8rcv

The problem is that Mongo _ids are fairly long and ugly. So I was thinking about replacing them with a shorter identifier, like Discourse uses for example:

https://forums.meteor.com/t/react-package-for-meteor/2565

Has anybody implemented something like this? Any package recommendations or things I should be aware of?

May be one of these: https://atmospherejs.com/?q=slug

1 Like