webhook-gen
Generate webhook handlers with retry logic using AI. Use when integrating Stripe, GitHub, or any webhook provider.
- License 许可
- MIT
- 最近更新
- 2026-08-23
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- webhook-gen
- description
- Generate webhook handlers with retry logic using AI. Use when integrating Stripe, GitHub, or any webhook provider.
02 资源文件 7
- 参考文档_meta.json286 B
- 参考文档package-lock.json30.2 KB
- 参考文档package.json642 B
- 参考文档README.md666 B
- 脚本src/cli.ts1.1 KB
- 脚本src/index.ts942 B
- 参考文档tsconfig.json251 B
03 SKILL.md 正文
Webhook Generator
Describe the webhook you're handling. Get a complete handler with signature verification, retry logic, and proper error handling. Stripe, GitHub, Twilio. all the patterns you need.
One command. Zero config. Just works.
Quick Start
npx ai-webhook "stripe payment succeeded"
What It Does
- Generates complete webhook handler functions
- Includes signature verification for popular providers
- Adds idempotency checks to prevent duplicate processing
- Implements retry-safe patterns with proper status codes
- Handles common webhooks from Stripe, GitHub, Shopify, and more
Usage Examples
# Stripe payment webhook
npx ai-webhook "stripe checkout.session.completed"
# GitHub push events
npx ai-webhook "github push event to trigger deployment"
# Generic webhook with retry
npx ai-webhook "order created webhook with idempotency"
# Specify provider explicitly
npx ai-webhook "new subscriber notification" --provider convertkit
# TypeScript output
npx ai-webhook "invoice paid" --typescript
Best Practices
- Always verify signatures - Never trust raw webhook payloads
- Return 200 quickly - Process async. Don't make providers wait
- Handle duplicates - Webhooks retry. Your handler should be idempotent
- Log everything - Debugging webhook issues without logs is painful
When to Use This
- Integrating a payment provider like Stripe or Paddle
- Setting up GitHub Actions alternatives with webhooks
- Building notification systems triggered by external services
- Any third-party integration that sends webhooks
Part of the LXGIC Dev Toolkit
This is one of 110+ free developer tools built by LXGIC Studios. No paywalls, no sign-ups, no API keys on free tiers. Just tools that work.
Find more:
- GitHub: https://github.com/LXGIC-Studios
- Twitter: https://x.com/lxgicstudios
- Substack: https://lxgicstudios.substack.com
- Website: https://lxgic.dev
Requirements
No install needed. Just run with npx. Node.js 18+ recommended.
npx ai-webhook --help
How It Works
The tool recognizes common webhook patterns from your description. It generates a handler function with the appropriate verification method, event parsing, and response codes. AI ensures the handler follows best practices for reliability and security.
License
MIT. Free forever. Use it however you want.
04 同仓库更多 Skills
crowd-prompting
A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.
dilemm-ai
Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.
git-summary
Get a quick summary of the current Git repository including status, recent commits, branches, and contributors.
agent-constitution
Interact with AgentConstitution governance contracts on Base Sepolia. Check compliance, read rules, log actions, query governance state.