Preparing for system design interviews?  Try bugzed.com →

elegant-queue

JSON →
library 1.0.9 ·javascript
verified Jun 7, 2026

elegant-queue (v1.0.9) is a high-performance queue implementation for JavaScript and TypeScript that uses a linked list of fixed-size arrays (circular buffers) to achieve O(1) enqueue and dequeue operations. Unlike native array-based queues that suffer from O(n) shifting, this package maintains constant-time operations even with millions of elements. It ships TypeScript definitions, supports both CommonJS and ES Modules, and offers a simple API: enqueue, dequeue, peek, clear, size, and isEmpty. The default internal array size is 4096, but can be configured. Suitable for Node.js and browser environments. Stable release, no recent updates.

total hits 21
actors 5 distinct systems
last hit 12d ago AhrefsBot
ByteDance
4
GPTBot
3
Amazonbot
3
Humans
7

top countries 🇺🇸 United States · 🇸🇬 Singapore · VN · 🇨🇦 Canada · 🇪🇸 Spain