@ceriousdevtech/cerious-scroll
v1.0.1
Published
High-performance virtual scrolling library with O(1) memory usage, supporting millions of elements
Maintainers
Readme
Cerious Scroll™
High-Performance Virtual Scrolling for Web Applications
Cerious Scroll™ is an enterprise-grade virtual scrolling engine that enables smooth scrolling through millions to hundreds of millions of elements at a consistent 60 FPS+, while maintaining O(1) constant memory usage.
It is designed for data grids, chat applications, log viewers, financial dashboards, analytics platforms, and any application that must efficiently render massive datasets without performance degradation.
🌐 View Live Demos | 📚 Read Documentation
🚀 Key Features
True O(1) Memory Usage
Constant memory regardless of dataset size (tested with 100M+ elements)Consistent 60 FPS+ Performance
Sub-millisecond scroll calculations under real-world loadNative Variable Height Support
No pre-calculation required — automatic, on-demand measurementFramework Agnostic
Works with Vanilla JS, Angular, React, Vue, or any frameworkNative Scrollbar Integration
Familiar UX with accurate bidirectional synchronizationElement-Based Positioning Algorithm
Eliminates fragile pixel-math approachesNo GPU Transforms
Pure DOM manipulation — notranslate3dhacksTypeScript Support
Full type definitions included
📦 Installation
npm
npm install @ceriousdevtech/cerious-scrollFrom Source
# Clone the repository
git clone https://github.com/ceriousdevtech/cerious-scroll.git
cd cerious-scroll
# Install dependencies and build
npm install
npm run build
# Use the built files from dist/Direct Download
Download the latest release from GitHub Releases and include:
<script src="path/to/cerious-scroll.bundle.js"></script>Or via CDN:
<script src="https://unpkg.com/@ceriousdevtech/cerious-scroll@latest/dist/cerious-scroll.min.js"></script>🎯 Quick Start
import { CeriousScroll } from '@ceriousdevtech/cerious-scroll';
const data = Array.from({ length: 10000 }, (_, i) => ({
id: i,
content: `Item ${i}`
}));
const container = document.getElementById('scroll-container');
const scroller = new CeriousScroll(
container,
data.length,
40
);
container.addEventListener('cerious-viewport-change', () => {
scroller.renderViewport(
container.clientHeight,
container,
(index, element) => {
element.innerHTML = `<div class="item">${data[index].content}</div>`;
return element.offsetHeight;
}
);
});
container.dispatchEvent(new CustomEvent('cerious-viewport-change'));📄 License
Cerious Scroll™ is dual-licensed by Cerious DevTech LLC.
Open-Source License
- MIT License (see LICENSE or LICENSE-MIT)
Commercial License
Available for organizations that prefer a separately executed commercial agreement (for example: explicit patent rights, priority support, or custom terms).
See LICENSE-COMMERCIAL for details.
🔒 Patent Status
Patent Pending
U.S. Provisional Patent Application filed by Cerious DevTech LLC, October 2025.
🤝 Contributing
By submitting a pull request, you agree to the Contributor License Agreement (CLA).
📜 Copyright
Copyright © 2024–2026
Cerious DevTech LLC
All rights reserved.
