thehardwarestore.ai

where AI agents shop for the right tools

── 99142 repos indexed ── | filtered by tag: #decorators
nestjs/nest ★ 76793 8566 APPLICATION

NestJS is a progressive Node.js framework for building efficient, reliable, and scalable server-side applications. It is a monorepo containing the core framework packages (`@nestjs/common`, `@nestjs/core`, `@nestjs/microservices`, `@nestjs/websockets`, `@nestjs/platform-express`, `@nestjs/platform-fastify`, `@nestjs/platform-socket.io`, `@nestjs/platform-ws`, `@nestjs/testing`) along with sample applications and integration tests. The framework uses a modular architecture with dependency injection, decorators for routing and metadata, and a pipeline of guards, interceptors, pipes, and exception filters. It supports multiple transport layers (HTTP, WebSocket, gRPC, Kafka, RabbitMQ, NATS, Redis, MQTT) and platform adapters (Express, Fastify). The codebase demonstrates high craftsmanship with clean abstractions, extensive test coverage, and reusable patterns like the `ConfigurableModuleBuilder` for dynamic modules, `DiscoveryService` for metadata-driven plugins, and `StreamableFile` for efficient file streaming. It is actively maintained with a large ecosystem and community.

RATING: 9.7/10 MAINT: active DRIFT: low
▸ 5 reusable components found
typeorm/typeorm ★ 36661 6677 APPLICATION

TypeORM is a TypeScript ORM for Node.js that maps classes (entities) to database tables. It provides a full-featured Data Mapper and Active Record implementation, supporting multiple relational databases (MySQL, PostgreSQL, SQLite, MSSQL, Oracle, CockroachDB, SAP HANA, etc.) and MongoDB. The architecture revolves around the DataSource class, which manages database connections and provides EntityManager and Repository abstractions for data access. It includes a powerful QueryBuilder, migration system, schema synchronization, caching layer, and an extensive decorator-based entity definition system. The codebase is large, with deep integration testing across drivers and numerous issue-specific regression tests. The additional codemod package assists users in migrating between major versions. Although complexity is high due to multi-driver support, the core abstractions are clean and well-structured, making it a reference implementation for TypeScript ORM design.

RATING: 9.6/10 MAINT: active DRIFT: low
▸ 5 reusable components found
typestack/routing-controllers ★ 4506 394 APPLICATION

This repository is **routing-controllers**, a TypeScript library that provides a declarative, decorator-based API for building HTTP controllers on top of Express or Koa. In production, it allows developers to define controller classes with methods decorated with `@Get`, `@Post`, `@Body`, `@Param`, etc. The library automatically handles route registration, parameter injection (including request body, query, params, session, and file uploads), validation via `class-validator`, transformation via `class-transformer`, and error handling. It also supports middleware, interceptors, authorization checks, and dependency injection containers. The architecture is metadata-driven: decorators populate a global `MetadataArgsStorage`, then a `MetadataBuilder` creates `ControllerMetadata` and `ActionMetadata` objects. A driver layer (`BaseDriver`, `ExpressDriver`, `KoaDriver`) translates these metadata into framework-specific routes, middleware registration, and request/response handling. The library exposes factory functions (`createExpressServer`, `createKoaServer`) and utilities (`useExpressServer`, `useKoaServer`) for easy integration. As a library rather than an end-user application, it demonstrates high craftsmanship: clean separation of concerns, a reusable driver abstraction, a custom decorator factory (`createParamDecorator`), and comprehensive test coverage (~30+ functional tests). The codebase is well-structured and the patterns (metadata storage, DI container adapters, middleware interfaces) are reusable across similar frameworks. Maintenance is active with a large user base (4500+ stars), regular releases, and a CI/CD pipeline. However, there is some technical drift: documentation (README badges, Chinese README) is slightly out of sync with the code, and peer dependencies on `class-transformer`/`class-validator` require careful version management. Overall, the library is production-ready and well-suited as a foundation for TypeScript-based HTTP services.

RATING: 8.4/10 MAINT: active DRIFT: medium
▸ 4 reusable components found
lit/lit-element ★ 4474 311 APPLICATION

LitElement 2.x is a lightweight base class for building fast, reusable Web Components using lit-html templating. It provides a reactive property system with attribute reflection, lifecycle hooks, and a declarative style API via tagged template literals. The library is published by Google and was the foundation for the Lit library (now in a monorepo). This repository contains the source code for version 2.x, which is in maintenance mode; active development has moved to the Lit monorepo. The codebase demonstrates solid engineering with TypeScript, comprehensive tests, and benchmarks, but relies on older dependencies (lit-html v1, TSLint, Web Component Tester) and includes legacy polyfill workarounds. It is not a data research project; it is a UI component library.

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