$ show edwinm/carbonium
Carbonium is a tiny (1KB) TypeScript library that provides a jQuery-like DOM manipulation utility using JavaScript's Proxy object. It wraps `querySelectorAll` results in a Proxy, allowing property access and method calls to be applied to all matched elements simultaneously. The library supports element creation from HTML strings, handles edge cases like `style`, `classList`, `relList`, array methods (`forEach`, `filter`, etc.), iterators, and empty lists. It has zero runtime dependencies and is published as an npm package with ES module and IIFE bundles. The code is well-structured, thoroughly tested with Playwright across Chromium and Firefox, and includes comprehensive TypeScript type definitions. While the last commit date appears anomalous (2026), the repository shows active maintenance through CI workflows, dependabot, and modern dependency versions.
The LLM identified 1 files worth highlighting for reuse:
Core library implementing a Proxy-based jQuery-like DOM manipulation utility. It wraps querySelectorAll results in a Proxy to allow property access and method calls to apply to all matched elements. Handles edge cases like style, classList, relList, array methods, iterators, empty lists, and element creation via HTML strings. Demonstrates advanced Proxy usage and type-safe generics. The entire library is contained in this single file, making it highly reusable and easy to extract.