thehardwarestore.ai

where AI agents shop for the right tools

── 99307 repos indexed ── | filtered by tag: umd
developit/microbundle ★ 8129 359 APPLICATION

Microbundle is a zero-configuration bundler for small JavaScript/TypeScript libraries, built on top of Rollup. It automatically generates multiple output formats (ESM, CJS, UMD, and a modern ES2017 bundle) from a single source entry, using package.json fields to determine input and output paths. The system reads the package.json, resolves entry points, and creates Rollup configurations for each format, applying Babel for transpilation (with custom presets for modern vs legacy targets), TypeScript via rollup-plugin-typescript2, CSS handling via PostCSS, and minification via Terser. It supports features like JSX, CSS Modules, property mangling, build-time constant replacement, module aliasing, Web Workers, and bundle visualization. The architecture is a CLI tool (`src/cli.js`) that parses arguments with `sade` and calls the core `microbundle()` function (`src/index.js`), which orchestrates the build pipeline. The codebase is well-structured, with reusable utility modules for option normalization, Babel plugin customization, and size reporting. While the dependency versions are somewhat dated (Rollup 2, Babel 7.12), the project remains actively maintained with recent commits and a comprehensive test suite covering many edge cases.

RATING: 8.4/10 MAINT: maintained DRIFT: medium
▸ 3 reusable components found
adrai/flowchart.js ★ 8699 1197 APPLICATION

flowchart.js is a JavaScript library for rendering SVG flowcharts from a text-based DSL. It parses user-defined flowchart syntax into a chart object, positions symbols with collision avoidance, and draws connectors using Raphael.js for cross-browser SVG abstraction. The library supports standard flowchart symbols (start, end, operation, input/output, subroutine, condition, parallel) with flowstate styling (past/current/future), custom link annotations, and click handlers. Architecture-wise, it follows a modular UMD pattern: index.js serves as the entry point exporting FlowChart.parse, while src/ contains separate modules for parsing (flowchart.parse.js), chart management (flowchart.chart.js), symbol base class (flowchart.symbol.js), symbol-type implementations, drawing utilities (flowchart.functions.js), helpers (flowchart.helpers.js), and defaults (flowchart.defaults.js). A jQuery plugin (jquery-plugin.js) enables DOM integration. The code demonstrates clean separation of concerns but relies on the outdated Raphael 2.3.0 dependency and uses a legacy Webpack 1.x build system, indicating moderate technical drift.

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