CommunityCodierung & Entwicklunggithub.com

waynesutton/convex-http-actions

Integration externer APIs und Webhook-Verarbeitung inklusive HTTP-Endpunkt-Routing, Anfrage-/Antwortbehandlung, Authentifizierung, CORS-Konfiguration und Webhook-Signaturvalidierung.

Was ist convex-http-actions?

Dieses Skill ermöglicht die Integration externer APIs und die Verarbeitung von Webhooks in Convex. Es bietet ein vollständiges Framework für HTTP-Endpunkt-Routing, das Analysieren und Behandeln von HTTP-Anfragen und -Antworten sowie die Konfiguration von CORS (Cross-Origin Resource Sharing) und Authentifizierungsmechanismen. Besonders nützlich ist die integrierte Unterstützung für die Validierung von Webhook-Signaturen, um sicherzustellen, dass eingehende Anfragen von vertrauenswürdigen Quellen stammen. Es ist für den Einsatz in Convex-basierten Anwendungen konzipiert und erleichtert die nahtlose Anbindung externer Dienste sowie die Implementierung von Echtzeit-Kommunikation über Webhooks. Entwickler können dieses Skill nutzen, um robuste API-Gateways innerhalb ihrer Convex-Projekte aufzubauen, ohne sich um die niedrigen Details des HTTP-Handlings kümmern zu müssen.

Funktioniert mit~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/waynesutton/convexskills/tree/main/skills/convex-http-actions

Installed? Explore more Codierung & Entwicklung skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

In Ihrer bevorzugten KI fragen

Öffnet einen neuen Chat, in dem dieser Agent-Skill bereits geladen ist.

Dokumentation

Was macht convex-http-actions?

Integration externer APIs und Webhook-Verarbeitung inklusive HTTP-Endpunkt-Routing, Anfrage-/Antwortbehandlung, Authentifizierung, CORS-Konfiguration und Webhook-Signaturvalidierung.

Funktionen

  • HTTP-Endpunkt-Routing: Definiere benutzerdefinierte HTTP-Endpunkte, die Anfragen entgegennehmen und verarbeiten können.
  • Anfrage-/Antwortbehandlung: Analysiere eingehende HTTP-Anfragen und sende strukturierte Antworten zurück.
  • Authentifizierung: Implementiere Authentifizierungslogik für geschützte Endpunkte.
  • CORS-Konfiguration: Lege fest, welche Ursprünge (Origins) auf deine API zugreifen dürfen.
  • Webhook-Signaturvalidierung: Überprüfe Signaturen eingehender Webhooks von Diensten wie Stripe, GitHub oder Slack.

Installation

npx convex dev

Verwendung

Grundlegendes HTTP-Routing

import { httpRouter } from "convex-http-actions";

const router = httpRouter();

router
  .get("/api/hello", (req) => {
    return new Response("Hello World!");
  })
  .post("/api/data", async (req) => {
    const body = await req.json();
    return Response.json({ received: true, data: body });
  });

export default router;

CORS-Konfiguration

const router = httpRouter({
  origins: ["https://example.com", "https://app.example.com"],
  methods: ["GET", "POST"],
  headers: ["Content-Type", "Authorization"],
});

Webhook-Signaturvalidierung

router.post("/webhooks/stripe", async (req) => {
  const signature = req.headers.get("stripe-signature");
  if (!validateStripeSignature(signature, await req.text())) {
    return new Response("Unauthorized", { status: 401 });
  }
  // Webhook-Daten verarbeiten
  return new Response("OK");
});

Konfiguration

OptionTypBeschreibung
originsstring[]Zulässige Ursprünge für CORS
methodsstring[]Zulässige HTTP-Methoden
headersstring[]Zulässige HTTP-Header
allowedHeadersstring[]Zusätzliche Header, die vom Client gesendet werden dürfen

Lizenz

MIT

Individual skills in this repo

This repo contains 13 individual skills — each has its own dedicated page.

waynesutton/avoid-feature-creep

Prevent feature creep when building software, apps, and AI-powered products. Use this skill when planning features, reviewing scope, building MVPs, managing backlogs, or when a user says "just one more feature." Helps developers and AI agents stay focused, ship faster, and avoid bloated products.

waynesutton/convex

Umbrella skill for all Convex development patterns. Routes to specific skills like convex-functions, convex-realtime, convex-agents, etc.

waynesutton/convex-agents

Building AI agents with the Convex Agent component including thread management, tool integration, streaming responses, RAG patterns, and workflow orchestration

waynesutton/convex-best-practices

Guidelines for building production-ready Convex apps covering function organization, query patterns, validation, TypeScript usage, error handling, and the Zen of Convex design philosophy

waynesutton/convex-component-authoring

How to create, structure, and publish self-contained Convex components with proper isolation, exports, and dependency management

waynesutton/convex-cron-jobs

Scheduled function patterns for background tasks including interval scheduling, cron expressions, job monitoring, retry strategies, and best practices for long-running tasks

waynesutton/convex-file-storage

Complete file handling including upload flows, serving files via URL, storing generated files from actions, deletion, and accessing file metadata from system tables

waynesutton/convex-functions

Writing queries, mutations, actions, and HTTP actions with proper argument validation, error handling, internal functions, and runtime considerations

waynesutton/convex-migrations

Schema migration strategies for evolving applications including adding new fields, backfilling data, removing deprecated fields, index migrations, and zero-downtime migration patterns

waynesutton/convex-realtime

Patterns for building reactive apps including subscription management, optimistic updates, cache behavior, and paginated queries with cursor-based loading

waynesutton/convex-schema-validator

Defining and validating database schemas with proper typing, index configuration, optional fields, unions, and migration strategies for schema changes

waynesutton/convex-security-audit

Deep security review patterns for authorization logic, data access boundaries, action isolation, rate limiting, and protecting sensitive operations

waynesutton/convex-security-check

Quick security audit checklist covering authentication, function exposure, argument validation, row-level access control, and environment variable handling

Verwandte Skills