Skip to content

v1.0.0 - Initial Stable Release

Latest

Choose a tag to compare

@hanoak hanoak released this 27 Jun 19:01
· 4 commits to main since this release

GitHub Release Summary - v1.0.0

πŸŽ‰ contentstack-webhook-verify v1.0.0 - Initial Release

A secure Node.js library for verifying Contentstack webhook authenticity

πŸš€ Key Features

  • βœ… Cryptographic Signature Verification using Contentstack's public keys
  • βœ… Replay Attack Prevention with configurable time windows
  • βœ… Multi-Region Support (NA, EU, AZZURE-NA, AZZURE-EU, GCP-NA, GCP-EU)
  • βœ… Full TypeScript Support with comprehensive type definitions
  • βœ… Zero Dependencies for minimal footprint
  • βœ… Modern ES Module architecture

πŸ”’ Security First

  • Validates webhook signatures against Contentstack's public keys
  • Prevents replay attacks with timestamp validation
  • Comprehensive input validation and error handling
  • Production-ready security measures

πŸ› οΈ Developer Experience

  • TypeScript with strict type checking
  • Framework Agnostic - works with Express.js, Next.js, AWS Lambda
  • Comprehensive Documentation with real-world examples
  • Professional Build Pipeline with ESLint, Prettier, Husky

πŸ“¦ Installation

npm install contentstack-webhook-verify

⚑ Quick Start

import verify from 'contentstack-webhook-verify';

app.post('/webhook', async (req, res) => {
  try {
    await verify(req.headers['x-contentstack-request-signature'], req.body);
    res.status(200).send('βœ… Verified');
  } catch (error) {
    res.status(401).send('❌ Unauthorized');
  }
});

πŸ“š Documentation

🌍 Multi-Framework Support

  • Express.js - Middleware integration
  • Next.js - API route examples
  • AWS Lambda - Serverless compatibility
  • Any Node.js framework - Framework agnostic design

🎯 Perfect For

  • Content management systems
  • Webhook-driven workflows
  • Real-time content synchronization
  • Enterprise security compliance
  • Serverless webhook processors

Ready to secure your Contentstack webhooks? Get started now! πŸš€

npm install contentstack-webhook-verify