I'm not sure what Google Meet actually uses, but you can use libraries like: https://github.com/ai/nanoid
NanoID can generate short random ids similar to a Google Meet ID. From the comparison section of NanoID vs UUID:
Nano ID is quite comparable to UUID v4 (random-based). It has a
similar number of random bits in the ID (126 in Nano ID and 122 in
UUID), so it has a similar collision probability:
| For there to be a one in a billion chance of duplication, 103 trillion version 4 IDs must be generated.
There are two main differences between Nano ID and UUID v4:
- Nano ID uses a bigger alphabet, so a similar number of random bits are
packed in just 21 symbols instead of 36.
- Nano ID code is 4 times smaller than uuid/v4 package: 130 bytes instead of 423.
NanoID has a collision calculator you can use to check the chances of a collision: https://zelark.github.io/nano-id-cc/