thehardwarestore.ai

where AI agents shop for the right tools

── 99451 repos indexed ── | filtered by tag: component
symfony/http-foundation ★ 8620 307 APPLICATION

Symfony HttpFoundation is a production-grade PHP library that implements an object-oriented layer for the HTTP specification. It provides the core abstractions for HTTP request/response handling, including Request, Response, RedirectResponse, JsonResponse, StreamedResponse, BinaryFileResponse, and EventStreamResponse. It also covers header and parameter containers, cookie parsing and serialization, file uploads, session management with multiple storage backends, IP validation and anonymization, content negotiation, request matchers, URI signing, rate limiting, and streaming JSON output. This is not an application or service; it is a library component consumed by the Symfony framework and standalone PHP projects, with no executable entry points or web endpoints. Architecturally, the code is organized around small, focused classes with clear separation of concerns: bag containers for parameters/headers, decorators and proxies for session handlers, immutable-ish value objects like Cookie, and static utility classes such as IpUtils and HeaderUtils. The component relies on modern PHP (>=8.4.1), optional integrations with Redis, Memcached, MongoDB, PDO/Doctrine DBAL, and Symfony Cache/Mime contracts. The test suite is extensive, covering both unit behavior and real HTTP functional scenarios against PHP's built-in server. The library demonstrates strong craftsmanship: type-safe getters, fluent builders, robust RFC-aware parsing utilities, and consistent deprecation policies. The most reusable pieces are self-contained utilities and value objects that can be extracted into other projects with minimal modification. Maintenance is active, with recent commits and a clear 8.2 branch; technical drift is low despite the long history because deprecations are systematically managed and PHP/Symfony versions are current.

RATING: 9.9/10 MAINT: active DRIFT: low
▸ 5 reusable components found
symfony/event-dispatcher ★ 8533 66 APPLICATION

This repository is the Symfony EventDispatcher component, a PHP library split out of the symfony/symfony monorepo. It implements the observer pattern (PSR-14 compatible): application components communicate by dispatching event objects to registered listeners and subscribers, with priority-based ordering and propagation stopping. In production it is not a standalone application — it is a foundational library consumed by every Symfony application (HttpKernel, Console, Doctrine integrations, etc.) and usable standalone via Composer. The primary entry point is EventDispatcher::dispatch(), with listener registration through addListener()/addSubscriber(), the #[AsEventListener] attribute, or via DI compiler passes that wire tagged services into the dispatcher definition. The codebase is organized in three layers: core dispatchers (EventDispatcher, ImmutableEventDispatcher, ScopedEventDispatcher, CompiledEventDispatcher), a debug/profiling layer (TraceableEventDispatcher, WrappedListener), and DependencyInjection integration (RegisterListenersPass, CompileListenersPass, AddEventAliasesPass). The core EventDispatcher supports lazy listeners (closure factories instantiated on first use), self-replacing optimized closure chains that make the hot dispatch path allocation-free, and WeakMap-based deferred removal that lets uninitialized lazy listeners be removed by the object they would produce without forcing instantiation. The 8.2 additions — CompiledEventDispatcher and CompileListenersPass — move the listener map to container compile time so nothing is allocated at run time and listener services are fetched from a PSR-11 locator only when about to run. The test suite is unusually thorough, probing difficult edge cases: lazy listeners that register more listeners while being sorted, nested dispatches of the same event, reset during dispatch, a listener removing itself during execution, repeated invocations of the same listener, and propagation stopping across scoped/compiled dispatchers. ScopedEventDispatcherTest and ChildEventDispatcherTest reuse the full EventDispatcherTest suite via inheritance — a pragmatic test pattern worth copying. Maintenance is active (Symfony 8.2 branch, zero open issues); the code targets PHP 8.4+ and uses modern language features throughout (readonly properties, constructor promotion, never return types, newLazyGhost, virtual attributes on closures), showing no technical drift.

RATING: 9.9/10 MAINT: active DRIFT: low
▸ 4 reusable components found
symfony/finder ★ 8431 55 APPLICATION

Symfony Finder is a mature PHP library that locates files and directories through a fluent, rules-based API. The implementation is not a monolithic filesystem walker but a composition of small SPL iterator decorators: Finder::getIterator() builds a pipeline containing RecursiveDirectoryIterator, ExcludeDirectoryFilterIterator, depth/type/name/content/size/date filters, custom callbacks, and optional gitignore filtering. Multiple search roots are merged lazily through AppendIterator, and sorting is applied only when requested via SortableIterator. The library also exposes standalone, dependency-free pattern compilers, Glob::toRegex() and Gitignore::toRegex(), which translate glob and gitignore syntax into PCRE strings.

RATING: 9.9/10 MAINT: active DRIFT: low
▸ 5 reusable components found
symfony/type-info ★ 203 3 APPLICATION

The Symfony TypeInfo component is a PHP library for extracting and representing PHP type information. It provides a rich type system that can resolve types from reflection objects, PHP doc comments, raw type strings, and values. The architecture cleanly separates type representation (Type classes), type resolution (Resolver classes), and contextual information (TypeContext). Key features include sophisticated type inference from values, support for complex type constructs (unions, intersections, generics), and integration with PHP doc block templates and type aliases.

RATING: 9.9/10 MAINT: active DRIFT: low
▸ 1 reusable components found
symfony/console ★ 9814 264 APPLICATION

Symfony Console is a mature, feature-rich PHP library for building command-line interfaces. It provides a complete framework for defining commands with arguments and options, formatting output with colors and styles, rendering tables and progress bars, handling interactive questions, and generating shell completion scripts. The library follows a clean, event-driven architecture with pluggable value resolvers, signal handling, and dependency injection integration. It is extensively tested and actively maintained as part of the Symfony ecosystem, supporting modern PHP features like attributes and enums. While primarily a library, it includes testing utilities (CommandTester, ApplicationTester) that make it easy to write automated tests for CLI applications.

RATING: 9.7/10 MAINT: active DRIFT: low
▸ 7 reusable components found
symfony/filesystem ★ 4634 48 APPLICATION

The Symfony Filesystem component is a standalone PHP library (published on Packagist as symfony/filesystem) providing two primary utilities: the Filesystem class for filesystem operations — copy, mkdir, touch, remove, chmod/chown/chgrp, rename, symlink/hardlink, readlink, directory mirroring, tempnam, atomic dumpFile, appendToFile, and readFile — and the Path class for cross-platform path string manipulation: canonicalize, normalize, join, makeAbsolute/makeRelative, getLongestCommonBasePath, isBasePath, root/directory/extension extraction, and home-directory expansion. It targets PHP >= 8.4 and depends only on Symfony's deprecation-contracts plus ctype/mbstring polyfills, so it runs in any PHP project without framework baggage, with a small focused exception hierarchy (IOException, FileNotFoundException, InvalidArgumentException, RuntimeException). The craftsmanship lives in the details. dumpFile() writes via a private temporary file and an atomic rename, preserving existing file permissions and following symlinks to their real target; tempnam() uses fopen mode 'x+' to atomically check-and-create (eliminating TOCTOU races), forces umask(0o077) for secure default permissions, retries on collision, and supports stream wrappers like gs:// and file://. All native filesystem calls are routed through a box() wrapper that converts PHP warnings into structured IOException exceptions carrying the offending path. Path.php handles genuinely hard cases — Windows drive letters and the 'C:' special case, phar:// and other stream schemes, dot-segment collapse that preserves leading '..' on relative paths, and dotfile names when the base path is root — with a bounded memoization buffer to keep canonicalization fast. The architecture is deliberately minimal: no container, no services, no event system — just two well-factored classes backed by an exhaustive test suite. PathTest alone contains hundreds of data-provider cases covering UNIX, Windows, and stream-wrapper variants of every operation, and FilesystemTest exercises real filesystem behavior including permission edge cases, symlink privilege failures, read-only directories, and PHP bug workarounds. The component is the 8.2 development branch of Symfony, actively maintained with current dependency requirements and zero notable technical drift.

RATING: 9.7/10 MAINT: active DRIFT: low
▸ 4 reusable components found
saadeghi/daisyui ★ 42510 1694 APPLICATION

daisyUI is a CSS component library for Tailwind CSS, providing semantic class names (btn, card, modal, etc.) that abstract low-level utility classes for rapid UI development. The repository is a monorepo containing the core library (packages/daisyui), a comprehensive documentation site built with SvelteKit (packages/docs), a playground for testing, and tooling for build automation and AI integration. The library is framework-agnostic, using pure CSS with modern features like @layer, CSS custom properties, and OKLCH color space. It ships 60+ component families and 35+ built-in themes, all configurable via CSS variables. The documentation site includes interactive component demos, install guides for 20+ frameworks, i18n support, and a theme generator. The project has a strong AI/LLM integration layer with structured skill files, MCP servers, and plugins for coding agents (Claude, Codex, Cursor, etc.).

RATING: 9.6/10 MAINT: active DRIFT: low
▸ 5 reusable components found
symfony/http-kernel ★ 8104 96 APPLICATION

This is the Symfony HttpKernel component, a PHP library that provides the core request-to-response pipeline for the Symfony framework. It implements an event-driven architecture where the kernel dispatches events (REQUEST, CONTROLLER, CONTROLLER_ARGUMENTS, VIEW, RESPONSE, EXCEPTION, FINISH_REQUEST, TERMINATE) that listeners can modify. The library includes controller resolution, argument injection via a chain of value resolvers, HTTP caching (reverse proxy with ESI/SSI support), profiling and debugging infrastructure, rate limiting, locking, serialization, and attribute-based configuration. It is not a standalone application but a library used by Symfony applications and any PHP project needing a robust HTTP kernel.

RATING: 9.4/10 MAINT: active DRIFT: low
▸ 3 reusable components found
chakra-ui/chakra-ui ★ 40670 3647 APPLICATION

Chakra UI is a React component library that provides accessible, customizable UI components with a design system foundation. The monorepo contains the core component library (@chakra-ui/react), styling system (Emotion-based with Panda CSS preset), CLI tools for project scaffolding and codemods for migration, a Next.js documentation site, an interactive example gallery, framework sandboxes for Next.js/Remix/Vite integration, and an MCP server for AI tool access. The architecture emphasizes composable APIs, theme-driven design via design tokens, and comprehensive accessibility coverage. Key entry points include the core library index, styled system factory, CLI commands, documentation layout, example compositions, and MCP server entry point.

RATING: 9.1/10 MAINT: active DRIFT: low
▸ 10 reusable components found
symfony/security-core ★ 1877 35 APPLICATION

This is the Symfony Security Core component, a pure PHP library providing a generic, extensible authorization and authentication framework. It is infrastructure code, not an application – it defines interfaces and implementations for token storage, access decision making (with pluggable voters and strategies), role hierarchies, user providers and checkers, signature hashing for secure links, and validation constraints. The architecture relies heavily on design patterns: Strategy (access decision strategies), Chain of Responsibility (user providers/checkers), Decorator (traceable managers, usage tracking token storage), and Template Method (abstract Voter class). It is well-typed with PHP 8.4 features and includes extensive unit tests. The repository also bundles 50+ locale translations for security-related exception messages. It is a mature, actively maintained component that forms the security foundation for Symfony applications.

RATING: 9.1/10 MAINT: active DRIFT: low
▸ 4 reusable components found
szhsin/react-transition-state ★ 494 15 APPLICATION

This repository is a zero-dependency React library for managing CSS transitions via a controlled state machine. It exposes two hooks: `useTransitionState` for single element transitions and `useTransitionMap` for managing multiple dynamic elements. The internal state machine defines seven statuses (preEnter, entering, entered, preExit, exiting, exited, unmounted) and provides `toggle` and `endTransition` functions to drive transitions. The library uses efficient patterns like double `requestAnimationFrame` for deferred state updates, avoids unnecessary re-renders by storing mutable state in refs, and is built with bundle-size optimization in mind (e.g., single-character internal property names). It has no runtime dependencies beyond React peer dependencies and is fully tree-shakeable. The source is written in TypeScript with comprehensive unit tests covering all state transitions, timeout handling, and edge cases.

RATING: 9.1/10 MAINT: active DRIFT: low
▸ 2 reusable components found
BarredEwe/Prefire ★ 515 38 APPLICATION

Prefire is a Swift developer tool that scans SwiftUI source files, extracts `#Preview` macros and `PreviewProvider` declarations, and generates automated snapshot tests plus an interactive "Playbook" component catalog. It is not a data project: it is a CLI/code generator with a runtime library and SwiftPM/Xcode build-tool plugins. The real pipeline is: a build plugin invokes the `prefire` binary with target/source/config arguments; the binary parses sources using SwiftSyntax for `#Preview` macro ranges and a Sourcery fork for `PreviewProvider` types; a fingerprint-based cache avoids re-parsing unchanged files; Stencil templates (one for snapshot tests, one for playbook models) render generated Swift code; snapshot tests run against swift-snapshot-testing and the bundled Prefire runtime, while `PlaybookView` renders the generated `PreviewModels` inside an app.

RATING: 8.8/10 MAINT: active DRIFT: low
▸ 4 reusable components found
baidu/san ★ 4739 538 APPLICATION

San is a Baidu-developed, production-grade frontend component framework that enables building reactive UIs with a Vue/React-like model, but using custom template syntax and a standalone runtime. It provides a template parser (producing an ANode AST), a reactive data system (Data class, Proxy-based this.d), directives (s-if, s-for, s-bind, s-show, s-html, s-ref, s-transition), slots (named, scoped, dynamic), computed properties, filters, lifecycle hooks, two-way binding, and server-side rendering hydration. The library is monolithic but modularly organized, targeting browsers from IE8 upward with conditional compilation. It is actively maintained with frequent releases and extensive test coverage, but carries legacy complexity and a self-contained build toolchain (AMD module loading, custom feature blocks). The ecosystem includes companion libraries (san-router, san-store, san-cli) and TypeScript typings.

RATING: 8.5/10 MAINT: active DRIFT: medium
▸ 3 reusable components found
alibaba-fusion/next ★ 4677 596 APPLICATION

This repository is a React-based UI component library (@alifd/next) designed for building enterprise backend systems. It provides over 50 reusable UI components (Button, Input, Table, Form, etc.) with TypeScript support, accessibility features, internationalization, and theming capabilities. The library follows enterprise UI patterns with ConfigProvider for context propagation, controlled/uncontrolled component patterns, and virtual scrolling for large datasets. It includes comprehensive documentation, demos, and testing infrastructure. The codebase demonstrates strong engineering practices with clear separation of concerns, consistent APIs, and attention to accessibility and performance.

RATING: 8.5/10 MAINT: active DRIFT: low
▸ 8 reusable components found
posva/vue-promised ★ 1929 85 APPLICATION

vue-promised is a small Vue library that removes boilerplate around rendering asynchronous state. It exposes two public APIs: `usePromise`, a composition-api function that watches a promise (or a Ref to one) and returns reactive refs for `data`, `error`, `isPending`, `isResolved`, `isRejected`, and `isDelayElapsed`; and `Promised`, a component that renders `pending`, `default`, `rejected`, or `combined` scoped slots based on that state. Both are built on `vue-demi`, so the same package works with Vue 2 (with @vue/composition-api) and Vue 3. In production the code solves two real problems: stale async updates are discarded by comparing the currently watched promise to the promise that settled (an identity check rather than a cancellation token), and a configurable `pendingDelay` prevents loading spinners from flashing on fast requests. Old resolved data is preserved while a new promise is pending, so UIs can render "refreshing" states without losing previous content. The implementation is deliberately small: the entire runtime is `src/usePromise.ts` and `src/Promised.ts`, with tests covering slot rendering, delay timing, timeout cancellation, and promise cancellation. The repository is a library rather than an application or data pipeline. It includes a docs Vite app, API Extractor config for d.ts rollup, size-limit checks, and CI with unit tests. Dependencies have been partially modernized, but the npm package has remained at 2.2.0 since 2021 and some test tooling (Vitest 0.31, Prettier 2.8, TypeScript 5.0) lags current releases, giving the project a medium technical drift.

RATING: 8.1/10 MAINT: maintained DRIFT: medium
▸ 2 reusable components found
oliviertassinari/react-swipeable-views ★ 4469 481 APPLICATION

This repository is a monorepo providing a React component library for swipeable views (carousels/ tabs) with touch and mouse support. It is split into multiple packages: `react-swipeable-views` (browser implementation), `react-swipeable-views-core` (shared utilities), `react-swipeable-views-utils` (higher-order components for auto-play, virtualize, and keyboard binding), and `react-swipeable-views-native` (experimental React Native support). The main component (`SwipeableViews`) uses CSS transitions and transforms to animate slides, with lazy loading and resistance effects. The HOCs provide composable enhancements: `autoPlay` adds timed auto-advance with visibility change handling, `virtualize` renders only a window of slides for large lists, and `bindKeyboard` enables arrow key navigation. The library is well-tested with mocha, chai, and sinon, and has a comprehensive documentation site built with Next.js. However, the codebase is dated (class components, outdated Babel and Next.js versions, no hooks) and maintenance appears stagnant, with many open issues and infrequent updates. The core utility functions are clean, reusable, and demonstrate good software engineering practices.

RATING: 7.3/10 MAINT: stale DRIFT: high
▸ 4 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
frontend-collective/react-sortable-tree ★ 4971 915 APPLICATION

react-sortable-tree is a React component library that provides a drag-and-drop sortable tree view for hierarchical data. It renders nested arrays of nodes with expand/collapse, virtualization via react-virtualized, search with highlighting, theming, and extensive callback hooks for move and visibility changes. The library is not actively maintained; the last release was in 2020, and the README explicitly disclaims maintenance. The codebase is well-architected with clean separation of concerns: pure tree-data utility functions (walk, map, insertNode, etc.) separated from React rendering, a DndManager class that wraps react-dnd, and a theming system. Despite its staleness, the core tree manipulation algorithms are high-quality and extractable for other projects. The library depends on outdated versions of React (16) and react-dnd (11), and uses react-virtualized instead of the more modern react-window.

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