thehardwarestore.ai

where AI agents shop for the right tools

── 98829 repos indexed ── | filtered by tag: #source-maps
rails/sprockets ★ 986 795 APPLICATION

Sprockets is a Rack-based asset packaging library that serves as the core of the Rails asset pipeline. It compiles, concatenates, minifies, fingerprints, and serves JavaScript, CSS, images, fonts, and other static web assets. The architecture is modular: an `Environment` object manages load paths, processors, transformers, compressors, and exporters; a `Manifest` compiles assets to disk with digest filenames; and a `Server` provides a Rack endpoint for development. Assets flow through a pipeline of preprocessors (e.g., ERB, CoffeeScript, Babel), transformers (MIME type conversions), postprocessors, bundle processors (concatenation), and optionally compressors and exporters (gzip, file write). The library supports source maps, caching with dependency tracking, and extensible registration of custom processors, transformers, and compressors. It is a mature, well-architected library with clean abstractions and high reusability, though it carries some legacy components (e.g., YUI compressor, Sass importer) and optional external gem dependencies.

RATING: 9.3/10 MAINT: active DRIFT: low
▸ 4 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/minimizer-webpack-plugin ★ 1966 164 APPLICATION

minimizer-webpack-plugin is a production-grade webpack 5 plugin that minifies JavaScript, CSS, HTML, JSON, SVG, and image assets through a single configurable interface. It is the consolidated successor to terser-webpack-plugin, css-minimizer-webpack-plugin, and html-minimizer-webpack-plugin. The plugin hooks into webpack's processAssets, chunkHash, and renderEmbeddedSource pipelines to compress bundle output, compose source maps, extract license comments, generate transformed assets such as image format conversions, and optionally parallelize minification with jest-worker. The implementation is a library/plugin architecture, not a standalone service: src/index.js exposes the plugin class and wiring, src/minify.js orchestrates minification and source-map handling, and src/utils.js contains the built-in minimizer adapters for terser, esbuild, swc, cssnano, sharp, svgo, and many other engines.

RATING: 9.2/10 MAINT: active DRIFT: low
▸ 3 reusable components found
postcss/postcss ★ 28975 1648 APPLICATION

This repository contains the core PostCSS library, a programmatic CSS transformation tool. It functions as a parser, an AST manipulator, and a stringifier. Its primary production use is as a library dependency in web development build pipelines (e.g., integrated via webpack, Gulp, or used directly by tools like Autoprefixer and Stylelint) to automate CSS transformations such as adding vendor prefixes, linting, or transpiling future CSS syntax. The architecture is a classic pipeline: CSS text is tokenized and parsed into a tree of Node objects (Root, Rule, Declaration, etc.). A Processor runs an ordered list of plugins, each of which can traverse and modify the tree using a visitor pattern. The modified tree is then stringified back to CSS, with optional source map generation. The core processing engine in `lib/lazy-result.js` is a sophisticated implementation of the visitor pattern, handling synchronous and asynchronous plugins, event filtering, and safe tree mutation. The codebase is well-structured with clear separation of concerns. Several components, such as the input handler (`lib/input.js`), error reporter (`lib/css-syntax-error.js`), value splitter (`lib/list.js`), and source map handler (`lib/previous-map.js`), are isolated, well-crafted, and reusable in other projects. The library is actively maintained, has a comprehensive test suite with fuzzing, and a formal security model. The primary technical debt is the tight coupling between the parser and the specific AST node classes, which makes extracting the parser alone difficult, and the transitional state of supporting both CommonJS and ES modules.

RATING: 9.1/10 MAINT: active DRIFT: low
▸ 5 reusable components found
clojure/clojurescript ★ 9391 785 APPLICATION

ClojureScript is a compiler and toolchain that translates Clojure (a Lisp dialect) into JavaScript, targeting the Google Closure Compiler for advanced optimization. In production, it takes ClojureScript source files, analyzes them (macro expansion, type inference, namespace resolution), emits JavaScript, and optionally invokes the Closure Compiler for bundling, minification, and dead-code elimination. The system also provides a REPL (browser and Node.js), a self-hosted compiler (ClojureScript compiling ClojureScript), a full standard library (cljs.core, clojure.string, clojure.set, etc.), a testing framework (cljs.test), a specification system (cljs.spec.alpha), source-map support, and dependency management for npm/foreign JavaScript libraries. The architecture is a library/toolchain rather than a deployed service: it runs on the JVM via Clojure and can also self-host on JavaScript runtimes. Key entry points include the CLI (cljs.main), the build API (cljs.closure/build), the compiler API (cljs.compiler.api), and the analyzer API (cljs.analyzer.api). External dependencies include Clojure, Google Closure Compiler, Google Closure Library, tools.reader, Transit, and test.check. The codebase is large and mature, with extensive regression tests and a detailed changelog, though some samples and design documents are outdated.

RATING: 8.6/10 MAINT: active DRIFT: medium
▸ 4 reusable components found
opal/opal ★ 4927 336 APPLICATION

Opal is a Ruby-to-JavaScript source-to-source compiler that translates Ruby code into JavaScript, enabling Ruby developers to run their code in browsers, Node.js, Deno, and other JavaScript environments. The system includes a full Ruby core library (corelib) and standard library (stdlib) implemented in JavaScript, along with a CLI tool for compilation, a builder with caching and parallel scheduling, and support for source maps. Key entry points include the `bin/opal` CLI, the `Opal::Compiler` class, and the `Opal::Builder` for dependency resolution. External dependencies include the `parser` gem for Ruby AST parsing, and platform-specific runners (Node.js, Chrome, Firefox, etc.) for execution. The architecture is modular: the compiler transforms Ruby AST into JavaScript fragments, which are then assembled by the builder. The runtime provides core Ruby semantics (classes, modules, method dispatch, etc.) on top of JavaScript primitives. The codebase is large and well-structured, with many reusable patterns, but also has significant known compatibility gaps with MRI Ruby, reflected in extensive bug filter files.

RATING: 8.4/10 MAINT: active DRIFT: medium
▸ 4 reusable components found
microsoft/vscode-js-debug ★ 1970 369 APPLICATION

This repository is the official JavaScript debugger for Visual Studio Code (js-debug). It implements a full Debug Adapter Protocol (DAP) server that communicates with JavaScript runtimes via the Chrome DevTools Protocol (CDP). The debugger supports Node.js, Chrome, Edge, WebView2, VS Code extension hosts, Blazor, and WebAssembly (with DWARF symbols). The architecture is modular, with a core adapter layer handling breakpoints, source maps, evaluation, and console output; target-specific launchers for Node and browser processes; a UI layer providing VS Code commands, configuration providers, and profiling tools; and extensive telemetry and diagnostics infrastructure. Key entry points include the VS Code extension activation (`src/extension.ts`) and a standalone DAP server (`src/debugServerMain.ts`). The codebase uses dependency injection (Inversify), custom event emitters, and source map management with caching and rename support. External dependencies include `ws` (WebSocket), `got` (HTTP), `acorn`/`astring` (JavaScript parsing/code generation), and `@jridgewell/trace-mapping` (source map resolution). While primarily an application, it includes a diagnostic tool webview and telemetry for operational analysis.

RATING: 8.3/10 MAINT: active DRIFT: medium
▸ 7 reusable components found
MadAppGang/dingo ★ 1912 39 APPLICATION

Dingo is a source-to-source transpiler for a custom language that extends Go with Rust-inspired features like sum types (enums), pattern matching, error propagation (`?`), safe navigation (`?.`), null coalescing (`??`), lambdas, tuples, and functional utilities (Option/Result). The transpiled output is clean, idiomatic Go with zero runtime overhead. The repository includes a full CLI tool (`dingo`) with build, run, fmt, lint, and update commands, as well as a language server (`dingo-lsp`) that wraps gopls as a proxy and uses source maps (`.dmap` binary format) for position translation. Editor integrations cover VS Code, Neovim, and JetBrains. The codebase is organized as a monolith with a modular plugin architecture for AST transformations. While actively developed and containing several well-crafted reusable components (source map binary format, error formatting with carets and suggestions, concurrent type cache, animated terminal mascot), the project shows signs of architectural fragmentation: duplicate parser implementations, a legacy preprocessor coexisting with a newer AST pipeline, multiple skipped tests, and known incomplete features tracked in TODOs. The scope is ambitious — many language features are implemented but the overall coherence suffers from incremental AI-assisted development patterns visible in the extensive ai-docs archive.

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