Toolverse
All skills

groq-webhooks-events

by jeremylongshore

Implement Groq webhook signature validation and event handling.\nUse when setting up webhook endpoints, implementing signature verification,\nor handling Groq event notifications securely.\nTrigger with phrases like \

Installation

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

Installation

Quick info

Category
Security

About this skill

Implement Groq webhook signature validation and event handling.\nUse when setting up webhook endpoints, implementing signature verification,\nor handling Groq event notifications securely.\nTrigger with phrases like \

How to use

  1. Zainstaluj zależności: upewnij się, że masz zainstalowany pakiet groq-sdk oraz system kolejkowania (BullMQ, Redis lub SQS) do wzorców przetwarzania wsadowego. Ustaw zmienną środowiskową GROQ_API_KEY z Twoim kluczem API Groq.

  2. Skonfiguruj endpoint SSE do streamingu: utwórz endpoint POST (np. /api/chat/stream) w Express.js, który przyjmuje wiadomości i model jako parametry. Endpoint powinien zwrócić nagłówki Server-Sent Events (Content-Type: text/event-stream) i wyłączyć buforowanie (X-Accel-Buffering: no dla nginx).

  3. Utwórz strumień z Groq: użyj groq.chat.completions.create() z parametrem stream: true. Iteruj po chunkach streamu i wysyłaj każdy token do klienta w formacie data: {JSON}\n\n.

  4. Obsługuj zdarzenia w kolejce: dla wzorców wsadowych połącz Groq z systemem kolejkowania — dodawaj zadania do kolejki, a worker procesy wysyłają żądania do Groq i obsługują odpowiedzi asynchronicznie.

  5. Testuj endpoint: wyślij żądanie POST z tablicą messages i opcjonalnym modelem (domyślnie llama-3.3-70b-versatile). Klient powinien odbierać tokeny w czasie rzeczywistym przez SSE.

Related skills

payload

by payloadcms

Use when working with Payload CMS projects (payload.config.ts, collections, fields, hooks, access control, Payload API). Use when debugging validation errors, security issues, relationship queries, transactions, or hook behavior.

Security
50171

obsidian

by gapmiss

Comprehensive guidelines for Obsidian.md plugin development including all 27 ESLint rules, TypeScript best practices, memory management, API usage (requestUrl vs fetch), UI/UX standards, and submission requirements. Use when working with Obsidian plugins, main.ts files,

Security
14111

openapi-spec-generation

by wshobson

Generate and maintain OpenAPI 3.1 specifications from code, design-first specs, and validation patterns. Use when creating API documentation, generating SDKs, or ensuring API contract compliance.

Security
18109

reverse-engineering-tools

by gmh5225

Guide for reverse engineering tools and techniques used in game security research. Use this skill when working with debuggers, disassemblers, memory analysis tools, binary analysis, or decompilers for game security research.

Security
3168

backend-security-coder

by sickn33

Expert in secure backend coding practices specializing in input validation, authentication, and API security. Use PROACTIVELY for backend security implementations or security code reviews.

Security
1133

google-analytics

by davila7

Analyze Google Analytics data, review website performance metrics, identify traffic patterns, and suggest data-driven improvements. Use when the user asks about analytics, website metrics, traffic analysis, conversion rates, user behavior, or performance optimization.

Security
1260