mdbid

JSON →
library 1.0.0 ·javascript maintenance
verified Jun 5, 2026

Generates unique string identifiers in Node.js using the same algorithm as MongoDB's ObjectId. Version 1.0.0, stable but unmaintained since 2017. Key differentiators: performant (outperforms bson, mongoid, objectid in benchmarks), simple API with only a few configuration options (machineId, processId, sequence), and no dependencies. Suitable for generating unique IDs without a database, especially for Redis keys.