🎯

bun-server-events

🎯Skill

from dangaogit/bun-server-skills

VibeIndex|
What it does

Enables event-driven communication and handling in Bun server applications through decorators and an event management system, allowing loose coupling between components via publish-subscribe patterns.

πŸ“¦

Part of

dangaogit/bun-server-skills(15 items)

bun-server-events

Installation

πŸ“‹ No install commands found in docs. Showing default command. Check GitHub for actual instructions.
Quick InstallInstall with npx
npx skills add dangaogit/bun-server-skills --skill bun-server-events
1Installs
-
AddedFeb 4, 2026

Skill Details

SKILL.md

Overview

# Bun Server Skills

Agent skills for the Bun Server framework - a high-performance, decorator-driven DI web framework running on Bun Runtime.

Available Skills

Index & Best Practices

| Skill | Description |

|-------|-------------|

| [best-practices](./best-practices/SKILL.md) | Start here - Index of all skills and best practices guide |

Core Framework

| Skill | Description |

|-------|-------------|

| [quickstart](./quickstart/SKILL.md) | Quick start guide for project setup and basic configuration |

| [dependency-injection](./dependency-injection/SKILL.md) | DI container, @Injectable, @Inject, scopes, Symbol+Interface pattern |

| [controller-routing](./controller-routing/SKILL.md) | Controllers, routing, HTTP methods, parameter binding |

| [module-system](./module-system/SKILL.md) | Module organization, imports/exports, forRoot pattern |

| [middleware](./middleware/SKILL.md) | Middleware pipeline, interceptors, built-in middleware |

| [validation](./validation/SKILL.md) | Data validation, DTOs, validation decorators |

| [error-handling](./error-handling/SKILL.md) | HttpException, exception filters, error responses |

Official Modules

| Skill | Description |

|-------|-------------|

| [security](./security/SKILL.md) | Authentication, authorization, JWT, OAuth2, guards, roles |

| [database](./database/SKILL.md) | Database connections, ORM, entities, repositories, transactions |

| [cache](./cache/SKILL.md) | Caching with @Cacheable, cache eviction, Redis cache |

| [queue](./queue/SKILL.md) | Job queues, background tasks, @Cron scheduled tasks |

| [session](./session/SKILL.md) | Session management, session stores, user state |

| [events](./events/SKILL.md) | Event-driven architecture, EventModule, @OnEvent decorator |

| [websocket](./websocket/SKILL.md) | WebSocket gateways, real-time communication |

| [swagger](./swagger/SKILL.md) | API documentation, OpenAPI, Swagger UI |

| [health-metrics](./health-metrics/SKILL.md) | Health checks, Prometheus metrics, monitoring |

| [logger](./logger/SKILL.md) | Logging, log levels, structured logging |

Microservices

| Skill | Description |

|-------|-------------|

| [microservice](./microservice/SKILL.md) | Service discovery, config center, load balancing, circuit breaker, tracing |

Troubleshooting

| Skill | Description |

|-------|-------------|

| [troubleshooting](./troubleshooting/SKILL.md) | Common issues, debugging techniques, error resolution |

Usage

These skills are designed to work with AI coding assistants (like Cursor) to provide context-aware help when developing with Bun Server.

When Skills Are Triggered

Skills are automatically suggested based on keywords and context:

  • quickstart: New project setup, initialization, tsconfig configuration
  • dependency-injection: @Injectable, @Inject, DI container, service registration
  • controller-routing: @Controller, @GET, @POST, routing, request handling
  • module-system: @Module, imports, exports, forRoot
  • middleware: Middleware, interceptors, CORS, rate limiting
  • validation: @IsString, @IsEmail, DTOs, validation errors
  • error-handling: HttpException, exception filters, error handling
  • security: Authentication, JWT, OAuth2, guards, roles
  • database: Database, ORM, Entity, Repository, Transaction
  • cache: @Cacheable, @CacheEvict, caching, Redis
  • queue: @Queue, @Cron, job queue, scheduled tasks
  • session: Session, session store, user state
  • events: @OnEvent, EventModule, event emitter
  • websocket: WebSocket, real-time, chat
  • swagger: Swagger, OpenAPI, API documentation
  • health-metrics: Health check, metrics, Prometheus, monitoring
  • logger: Logging, log levels, LoggerModule
  • microservice: Service discovery, config center, circuit breaker
  • troubleshooting: Errors, debugging, "not working", failures

Directory Structure

```

bun-server-skills/

β”œβ”€β”€ README.md

β”œβ”€β”€ best-practices/

β”‚ └── SKILL.md

β”œβ”€β”€ quickstart/

β”‚ └── SKILL.md

β”œβ”€β”€ dependency-injection/

β”‚ └── SKILL.md

β”œβ”€β”€ controller-routing/

β”‚ └── SKILL.md

β”œβ”€β”€ module-system/

β”‚ └── SKILL.md

β”œβ”€β”€ middleware/

β”‚ └── SKILL.md

β”œβ”€β”€ validation/

β”‚ └── SKILL.md

β”œβ”€β”€ error-handling/

β”‚ └── SKILL.md

β”œβ”€β”€ security/

β”‚ └── SKILL.md

β”œβ”€β”€ database/

β”‚ └── SKILL.md

β”œβ”€β”€ cache/

β”‚ └── SKILL.md

β”œβ”€β”€ queue/

β”‚ └── SKILL.md

β”œβ”€β”€ session/

β”‚ └── SKILL.md

β”œβ”€β”€ events/

β”‚ └── SKILL.md

β”œβ”€β”€ websocket/

β”‚ └── SKILL.md

β”œβ”€β”€ swagger/

β”‚ └── SKILL.md

β”œβ”€β”€ health-metrics/

β”‚ └── SKILL.md

β”œβ”€β”€ logger/

β”‚ └── SKILL.md

β”œβ”€β”€ microservice/

β”‚ └── SKILL.md

└── troubleshooting/

└── SKILL.md

```

Coverage

This skills collection covers the complete Bun Server framework including:

  • Core: Application, Context, DI Container, Router, Controllers
  • Modules: Config, Logger, Security, Database, Cache, Queue, Session, Events, Health, Metrics, Swagger
  • Microservices: Config Center, Service Registry, Service Client, Load Balancing, Circuit Breaker, Tracing
  • Features: Validation, WebSocket, Interceptors, Guards, Exception Filters

Related Documentation

  • [Bun Server README](https://github.com/dangaogit/bun-server/blob/main/README.md)
  • [API Documentation](https://github.com/dangaogit/bun-server/blob/main/docs/api.md)
  • [Best Practices](https://github.com/dangaogit/bun-server/blob/main/docs/best-practices.md)
  • [Problem Solutions](https://github.com/dangaogit/bun-server/blob/main/skills/README.md)

Contributing

To add a new skill:

  1. Create a new directory with a descriptive name
  2. Add a SKILL.md file following the skill format
  3. Include YAML frontmatter with name and description
  4. Update this README with the new skill

More from this repository10

🎯
bun-server-best-practices🎯Skill

Provides comprehensive guidelines, coding standards, and recommended architectural patterns for building efficient and maintainable web applications using the Bun server framework.

🎯
bun-server-quickstart🎯Skill

Provides a quick start guide and template for setting up a new Bun server project with basic configuration and initial project structure.

🎯
bun-server-cache🎯Skill

Skill

🎯
bun-server-health-metrics🎯Skill

Skill

🎯
bun-server-database🎯Skill

Provides database integration capabilities for the Bun Server framework, offering ORM support, entity management, repository patterns, and database connection handling.

🎯
bun-server-logger🎯Skill

Provides structured logging capabilities for Bun server applications, enabling configurable log levels, log formatting, and output management for enhanced application observability and debugging.

🎯
bun-server-security🎯Skill

Provides robust authentication, authorization, JWT token management, OAuth2 integration, role-based access controls, and security middleware for Bun server applications.

🎯
bun-server-middleware🎯Skill

Skill

🎯
bun-server-di🎯Skill

Provides dependency injection (DI) capabilities for the Bun Server framework, enabling developers to use decorators like @Injectable and @Inject for managing service dependencies and implementing i...

🎯
bun-server-microservice🎯Skill

Enables building distributed microservices with service discovery, configuration management, load balancing, circuit breaking, and distributed tracing capabilities for Bun server applications.