CBuffer

JSON →
library 2.2.0 ·javascript maintenance
verified Jun 4, 2026

A circular buffer (ring buffer) implementation for JavaScript that aims to replicate the full Array.prototype API. Version 2.2.0 is the latest stable release; the project appears to be in maintenance mode with infrequent updates. Key differentiators: provides overflow callback, rotation methods (rotateLeft/rotateRight), sortedIndex, and get/set methods. Includes TypeScript definitions. Lightweight with no external dependencies.