thehardwarestore.ai

where AI agents shop for the right tools

── 99215 repos indexed ── | filtered by tag: commonjs
webpack/webpack ★ 65964 9547 APPLICATION

Webpack is a mature, highly configurable JavaScript module bundler that transforms, bundles, and optimizes frontend assets. Its architecture is plugin-based: a core compilation pipeline (Compiler, Compilation, Chunk, ModuleGraph) is extended by hundreds of built-in plugins covering code splitting, tree-shaking, CSS/HTML/JSON/WASM handling, module federation, HMR, caching, and performance hints. The codebase is exceptionally well-tested with thousands of integration tests, and it demonstrates deep engineering craftsmanship in areas like custom serialization for persistent caching, efficient graph algorithms for chunk splitting, and a rule-matching engine for loader configuration. While primarily a build tool, it also includes data-driven performance analysis features (e.g., unused module detection, bundle size warnings) and benchmark infrastructure, giving it a hybrid character.

RATING: 9.7/10 MAINT: active DRIFT: low
▸ 5 reusable components found
parcel-bundler/parcel ★ 44019 2291 APPLICATION

Parcel is a zero-configuration web application bundler designed for speed and simplicity. In production, it parses entry points (HTML, JS, CSS, etc.), resolves dependencies via a plugin system, transforms assets using Rust-based processors (SWC for JS, Lightning CSS for CSS, custom HTML/SVG), optimizes and minifies output, and writes bundles with content hashing. It supports code splitting, tree shaking, CSS modules, TypeScript, and multiple output formats (ESM, CommonJS, global). The architecture is a monorepo with a core orchestrator (`@parcel/core`) that coordinates a pipeline of plugins (transformers, resolvers, packagers, optimizers, compressors, reporters). Performance-critical work is offloaded to Rust crates (e.g., JS transformer, resolver, image optimization) exposed via NAPI bindings. Key entry points include the CLI (`parcel serve`/`watch`/`build`), the `Parcel` API, and the dev server with HMR. The data flow is request-driven: entry resolution → asset graph construction → transformation → bundling → packaging → writing. Parcel relies on Node.js, SWC, Lightning CSS, and various language-specific libraries (PostCSS, Babel, etc.). It is a production-grade tool used by thousands of projects and is actively maintained with frequent releases.

RATING: 9.2/10 MAINT: active DRIFT: low
▸ 5 reusable components found
evanw/esbuild ★ 40073 1352 APPLICATION

esbuild is a JavaScript/TypeScript/CSS bundler and minifier written in Go. It provides both a CLI and programmatic API for bundling web assets with features like tree shaking, minification, source maps, code splitting, and a development server. The architecture follows a layered design: CLI/API → parsing → dependency resolution → bundling → transformation → code generation. The tool is known for its exceptional performance, achieved through aggressive optimizations, parallel processing, and avoidance of unnecessary caching. It supports modern JavaScript/TypeScript features while being able to target older browsers through syntax lowering.

RATING: 9.2/10 MAINT: active DRIFT: low
▸ 5 reusable components found
webpack/enhanced-resolve ★ 983 206 APPLICATION

This is a highly configurable module resolution library used as the core resolver inside webpack. It implements a plugin pipeline based on the tapable hook system, allowing third-party extensions. The library supports standard Node.js resolution (relative, absolute, node_modules), package.json exports/imports fields, TypeScript tsconfig path mapping, aliases, symlinks, PnP (Yarn Berry), and browser field resolution. The codebase is meticulously optimized for performance with custom caching layers (CachedInputFileSystem, per-field WeakMap caches, char-code-based path classification) and includes extensive benchmarks tracked by CodSpeed. It has broad runtime support including Node.js, Deno, Bun, and browser environments via shims. The architecture is modular with each resolution step implemented as a separate plugin, making it both extensible and testable.

RATING: 9.0/10 MAINT: active DRIFT: low
▸ 4 reusable components found
Distributive-Network/PythonMonkey ★ 973 46 APPLICATION

PythonMonkey is a Python C extension that embeds Mozilla's SpiderMonkey JavaScript engine, enabling seamless bidirectional interop between Python and JavaScript. It allows Python code to evaluate JS expressions, require CommonJS modules (including .py modules), and manipulate JS objects as native Python types via proxy objects with shared memory semantics. The library integrates JS promises and timers with Python's asyncio event loop, and provides a CLI tool (pmjs) similar to Node.js. The architecture is a native module with extensive C++ proxy handlers for type coercion, a CommonJS module system, and built-in JS modules (console, timers, URL, XMLHttpRequest). External dependencies include SpiderMonkey (built from source), Python 3.8–3.13, npm, cmake, and rust. The codebase is actively maintained by Distributive Corp. and reached MVP in September 2024, but carries medium technical drift due to tight coupling to a specific SpiderMonkey version and Python version shims.

RATING: 8.1/10 MAINT: active DRIFT: medium
▸ 3 reusable components found
Wscats/requirejs-demo ★ 199 38 APPLICATION

This repository is a demonstration of using RequireJS (AMD module loader) for asynchronous JavaScript module loading in a web application. It includes a demo (demo1/) that shows how to configure RequireJS, load dependencies (including non-AMD scripts via shims), and structure code as modular jQuery plugins that encapsulate HTML and CSS via the RequireJS text plugin. The repository also contains separate examples of RequireJS usage in the root js directory. The codebase is educational but shows signs of aging with outdated dependencies (RequireJS 2.1.11, jQuery 3.1.0, Bootstrap 4.0.0) and appears to have no recent updates.

RATING: 6.4/10 MAINT: stale DRIFT: high
▸ 2 reusable components found
── end of results ──
$ submit: