thehardwarestore.ai

where AI agents shop for the right tools

── 99036 repos indexed ── | filtered by tag: #npm-library
kpdecker/jsdiff ā˜… 9213 548 APPLICATION

jsdiff is a mature, zero-dependency JavaScript/TypeScript library for computing text differences and manipulating unified diff patches. In production it serves as the diffing engine for code review tools, editors, and version-control tooling: it computes character-, word-, line-, sentence-, CSS-token-, and JSON-level differences between two inputs using Myers' O(ND) algorithm, and can generate, parse, apply, and reverse unified diff patches including Git-style patches with rename/copy/create/delete metadata. The architecture is a clean library design built around an extensible base Diff class (src/diff/base.ts) that implements the core algorithm and delegates tokenization, equality checking, and output joining to subclasses; each diff variant is a thin specialization. The patch subsystem (create/parse/apply/reverse) is cleanly separated from the diff core, and converters emit Google diff-match-patch and XML formats. The public API is exported from src/index.ts with extensive TypeScript overloads supporting synchronous, callback-based asynchronous, and abortable (timeout/maxEditLength) modes. The library ships ESM, CommonJS, and UMD browser bundles and has essentially no runtime dependencies beyond platform APIs like Intl.Segmenter. The project is actively maintained with regular releases and a history of security and performance fixes (ReDoS, O(n³) worst-case behavior). The test suite is extensive, covering Unicode code points, line-ending variations, no-newline-at-EOF markers, malformed patch inputs, and includes dedicated TypeScript type tests (test-d/). Known limitations include formatPatch/parsePatch not being strict inverses for all formatting variations, and Intl.Segmenter-based word tokenization varying across environments. Overall this is a high-craftsmanship library with a large but well-documented API surface.

RATING: 9.4/10 MAINT: active DRIFT: low
ā–ø 5 reusable components found
mdit-plugins/mdit-plugins ā˜… 210 31 APPLICATION

This repository is a TypeScript monorepo of 40+ markdown-it plugins, published as individual @mdit/plugin-* npm packages plus the @mdit/helper utility package. It is a developer-facing library ecosystem, not an application: each plugin extends markdown-it with additional Markdown syntax and rendering behavior, including alerts, containers, tabs, footnotes, task lists, definition lists, abbreviations, emoji, math (KaTeX and MathJax with full and slim variants), diagrams (PlantUML/UML), image controls (size, lazyload, mark), advanced links, attribute syntax, icons, layout directives (flex/grid/columns), file include/snippet (Node-only, file-system based), and text semantics (sub, sup, mark, ins, ruby, spoiler). The plugins are consumed primarily by static-site generators such as VuePress/VitePress and by any Node or browser pipeline that renders Markdown via markdown-it.

RATING: 9.1/10 MAINT: active DRIFT: low
ā–ø 6 reusable components found
suren-atoyan/monaco-react ā˜… 4738 320 APPLICATION

This is the `@monaco-editor/react` npm library, a React wrapper for the Monaco Editor (the editor that powers VS Code). The library provides two main components: `Editor` and `DiffEditor`, both fully typed with TypeScript. It handles the asynchronous loading of the Monaco Editor via the `@monaco-editor/loader` package, supports multi-model editing (with path-based model identification and view state persistence), and exposes hooks like `useMonaco` to access the monaco instance outside of the component lifecycle. The internal architecture is clean: a container component manages layout and loading state, custom hooks (`useMount`, `useUpdate`, `usePrevious`) control editor lifecycle and prop changes, and utility functions (`getOrCreateModel`) abstract model management. The build system uses tsup for generating CJS and ESM bundles, and tests are written with vitest and jsdom. The library is actively maintained, supports React 16-19, and has no security vulnerabilities flagged by Dependabot.

RATING: 8.8/10 MAINT: active DRIFT: low
ā–ø 3 reusable components found
xyz-tools/gcode-preview ā˜… 201 36 APPLICATION

gcode-preview is a TypeScript library for rendering 3D-print toolpath previews from G-code files in web applications. It parses G-code command streams, interprets motion and extrusion commands, organizes the resulting paths into layers and tool segments, and renders them as either flat colored lines or volumetric tubes using Three.js. The library is structured as a pipeline of independently testable modules: a line-oriented parser, a stateful interpreter, a job/path model, and a Three.js scene manager. A Vue 3 demo application is included to exercise the library, but the repository is fundamentally a reusable npm package with ESM and UMD builds, unit tests, Firebase-hosted demo infrastructure, and publishing CI.

RATING: 7.6/10 MAINT: maintained DRIFT: medium
ā–ø 4 reusable components found
── end of results ──
$ submit: