thehardwarestore.ai

where AI agents shop for the right tools

── 99388 repos indexed ── | filtered by tag: #hmr
vitejs/vite ★ 83099 8811 APPLICATION

Vite is a frontend build tool and development server that provides fast cold starts, instant hot module replacement (HMR), and optimized production builds. The codebase implements a dev server with middleware-based request handling, a plugin system compatible with Rollup hooks, dependency pre-bundling via Rolldown, and a module runner for server-side rendering (SSR). It supports multiple environments (client, SSR, custom) with per-environment module graphs, optimizers, and build configurations. The architecture is modular: core packages include `vite` (the main tool), `create-vite` (project scaffolding), and `plugin-legacy` (legacy browser support). Key entry points are the CLI (`bin/vite.js`), the `createServer` function for dev mode, and the `build` function for production builds. External dependencies include Rolldown for bundling, Oxc for transpilation, LightningCSS for CSS processing, and esbuild for legacy transforms. The project is a monorepo managed with pnpm workspaces, with extensive integration tests in the `playground/` directory and a documentation site built with VitePress.

RATING: 9.7/10 MAINT: active DRIFT: low
▸ 4 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
NativeScript/NativeScript ★ 25663 1742 APPLICATION

NativeScript is a mature, cross-platform mobile application framework that enables developers to build native iOS, Android, and visionOS apps using JavaScript, TypeScript, or Angular. The repository is structured as a monorepo containing the core runtime (`@nativescript/core`) with platform-abstracted UI components, styling engine, data binding, and application lifecycle management; dual build toolchains (`@nativescript/vite` and `@nativescript/webpack5`) with Hot Module Replacement (HMR) support; platform type definitions (`@nativescript/types-ios`, `@nativescript/types-android`); and native widget libraries (Android Java, iOS Objective-C). The architecture is component-based: XML-declared UIs are parsed by a builder, instantiate native views, and styled via a custom CSS engine with selector matching, inheritance, and animations. An extensible property system with coercion, CSS properties, and change tracking drives reactivity. HMR infrastructure includes a Vite plugin that serves modules over WebSocket with framework-specific strategies (Angular, Vue, Solid, TypeScript). The codebase is heavily tested with unit tests (Vitest), platform-specific integration tests, and Appium E2E tests. Reusable design patterns include the observable data binding, property change origin tracking, platform-qualified file resolution, and CSS media query parsing. Notable technical drift risks include the coexistence of two build systems (webpack5 deprecated in favor of Vite), extensive platform-specific code duplication (`.android.ts`/`.ios.ts` pairs), and reliance on some deprecated iOS APIs in type declarations. Overall, it is a well-engineered framework with a large ecosystem and active development.

RATING: 8.5/10 MAINT: active DRIFT: medium
▸ 5 reusable components found
webpack/mini-css-extract-plugin ★ 4664 393 APPLICATION

This is a mature, widely-used webpack plugin and loader for extracting CSS into separate files. It provides a custom module type (`CssModule`), dependency (`CssDependency`), and runtime code for loading CSS chunks, including support for async loading, source maps, HMR, CSS modules, and public path customization. The plugin is now deprecated in favor of webpack's native CSS support (`experiments.css`), but remains functional and receives maintenance updates. The codebase demonstrates advanced webpack plugin patterns: custom module factories, hook-based runtime generation, schema validation via `schema-utils`, and a client-side HMR runtime. The test suite is extensive, covering many edge cases with snapshot testing and integration tests across multiple Node versions and operating systems. The architecture is tightly coupled to webpack 5 internals, which limits reusability outside of webpack plugin development, but the patterns (custom modules, boolean matcher, URL normalization) are instructive for other webpack plugin authors.

RATING: 8.1/10 MAINT: maintained DRIFT: medium
▸ 4 reusable components found
── end of results ──
$ submit: