lifecycle

Installation
SKILL.md

NestJS Lifecycle Events

When to Use This Skill

Use this skill when:

  • Implementing initialization logic for providers or modules
  • Setting up database connections at startup
  • Cleaning up resources at shutdown
  • Running code after application bootstrap
  • Gracefully shutting down services
  • Managing connection pools, caches, or external services
  • Implementing health checks on startup
  • Registering event listeners or schedulers
  • Pre-warming caches or performing initial data loads
  • Handling application lifecycle in microservices

What are Lifecycle Events?

Lifecycle events (hooks) are methods that are called at specific points during the application lifecycle. They allow you to run initialization, cleanup, and shutdown logic at the appropriate times.

Related skills
Installs
2
GitHub Stars
1
First Seen
Mar 29, 2026