smithery/ngxtm

NestJS Microservices

gRPC, RabbitMQ standards and Monorepo contracts.

Installation

$ npx skills add smithery/ngxtm --skill nestjs-microservices

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery/ngxtm · top by installs.

npx skills add smithery/ngxtm

Browse all from smithery/ngxtm

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Skill metadata

Parsed from SKILL.md frontmatter.

More metadata
labels
["nestjs","microservices","grpc","rabbitmq"]
triggers
{"files":["main.ts","**\/*.controller.ts"],"keywords":["Transport.GRPC","Transport.RMQ","MicroserviceOptions"]}

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,686 B
  • docs SUMMARY.md 76 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

Microservices & Transport Standards

Transport Strategies

  • Synchronous (RPC): Use gRPC for low-latency, internal service-to-service calls.

- Why: 10x faster than REST/JSON, centralized .proto contracts.

  • Asynchronous (Events): Use RabbitMQ or Kafka for decoupling domains.

- Pattern: Fire-and-forget (emit()) for side effects (e.g., "UserCreated" -> "SendEmail").

Monorepo Architecture

  • Contracts:

- Pattern: Store all DTOs, .proto files, and Interfaces in a Shared Library (libs/contracts). - Rule: Services never import code from other services. They only import from contracts.

  • Versioning: Semantic versioning of messages is mandatory. Never change a field type; add a new field.

Exception Handling

  • Propagation: Standard HttpException is lost over Rpc/Tcp.
  • Standard: Use RpcException and generic Filters.

``typescript // Global RPC Filter @Catch() export class RpcExceptionFilter implements RpcExceptionFilter<RpcException> { catch(exception: RpcException, host: ArgumentsHost): Observable<any> { return throwError(() => exception.getError()); } } ``

Serialization

  • Message DTOs: Use class-validator just like HTTP.

- Config: Apply useGlobalPipes(new ValidationPipe({ transform: true })) in the MicroserviceOptions setup, not just HTTP app setup.