Toolverse
All skills

emitting-api-events

by jeremylongshore

Build event-driven APIs with webhooks, Server-Sent Events, and real-time notifications.\nUse when building event-driven API architectures.\nTrigger with phrases like \

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Category
Backend
Views
2

About this skill

Build event-driven APIs with webhooks, Server-Sent Events, and real-time notifications.\nUse when building event-driven API architectures.\nTrigger with phrases like \

How to use

  1. Przygotuj infrastrukturę: upewnij się, że masz dostęp do brokera wiadomości (Redis Pub/Sub, RabbitMQ, Apache Kafka lub AWS SNS/SQS), bazy danych do przechowywania dziennika zdarzeń i rejestracji subskrybentów (PostgreSQL, MongoDB) oraz system dostarczania webhooków z obsługą ponowień (Bull, Celery lub usługa zarządzana).

  2. Zidentyfikuj operacje emitujące zdarzenia: użyj Grep i Read do przeanalizowania kodu API i wylistowania wszystkich mutacji (POST, PUT, PATCH, DELETE), które powinny emitować zdarzenia. Nazwij typy zdarzeń według konwencji zasób.akcja (np. order.created, user.updated).

  3. Zdefiniuj schematy zdarzeń dla każdego typu: każdy schemat powinien zawierać eventId (UUID), eventType, version, timestamp (ISO 8601), source (identyfikator usługi) i data (ładunek specyficzny dla typu).

  4. Wdrożyć usługę emitującą zdarzenia: skonfiguruj publikowanie zdarzeń do brokera wiadomości po pomyślnych mutacjach API, używając wzorca transactional outbox aby zapobiec utracie zdarzeń w przypadku awarii aplikacji.

  5. Zbuduj system zarządzania subskrypcjami webhooków: pozwól klientom rejestrować adresy URL, obsługuj logikę ponawiania dostaw z backoffem eksponencjalnym i prowadź historię prób dostarczenia.

  6. Skonfiguruj Server-Sent Events dla klientów przeglądarki: zaimplementuj endpoint SSE do przesyłania zdarzeń w czasie rzeczywistym do połączonych klientów, opcjonalnie z filtrowaniem po typach zdarzeń.

Related skills

fastapi-templates

by wshobson

Create production-ready FastAPI projects with async patterns, dependency injection, and comprehensive error handling. Use when building new FastAPI applications or setting up backend API projects.

Backend
327582

supabase-operations

by elevanaltd

Supabase operational knowledge for migrations, RLS optimization, MCP tool benchmarks, and ADR-003 compliance. Use when validating database migrations, optimizing Row-Level Security policies, checking MCP tool performance, or ensuring Supabase operational standards. Triggers on:

Backend
27109

context-optimizer

by openclaw

Advanced context management with auto-compaction and dynamic context optimization for DeepSeek's 64k context window. Features intelligent compaction (merging, summarizing, extracting), query-aware relevance scoring, and hierarchical memory system with context archive. Logs

Backend
2964

clickup

by civitai

Interact with ClickUp tasks and documents - get task details, view comments, create and manage tasks, create and edit docs. Use when working with ClickUp task/doc URLs or IDs.

Backend
2483

humanizer

by davila7

Remove signs of AI-generated writing from text. Use when editing or reviewing\ntext to make it sound more natural and human-written. Based on Wikipedia's\ncomprehensive \

Backend
2873

supabase-developer

by daffy0208

Build full-stack applications with Supabase (PostgreSQL, Auth, Storage, Real-time, Edge Functions). Use when implementing authentication, database design with RLS, file storage, real-time features, or serverless functions.

Backend
78170