AC
feat: Add Netlify integration piece
activepieces/activepieces#8983

πŸš€ Feature: Netlify Integration

This PR implements a comprehensive integration piece for Netlify, a platform for building, deploying, and managing static websites and frontend applications, addressing the feature request in issue #8974.

πŸ“‹ What’s Implemented

πŸ” Authentication

  • Personal Access Token Authentication with validation
  • Secure token storage and usage
  • Authentication validation with error handling
  • Support for Netlify API v1

✏️ Write Actions (4 total)

Deployment Management:

  • Start Deploy - Trigger new deployments for sites with optional cache clearing
  • Get Site - Retrieve comprehensive site information including build settings and published deploy details
  • List Site Deploys - Get filtered lists of deployments with status, context, and pagination
  • List Files - Browse deployment files with path filtering and size information

πŸ”” Webhook Triggers (4 total)

Deployment Triggers:

  • New Deploy Started - Fires when deployments begin building
  • New Deploy Succeeded - Fires when deployments complete successfully
  • New Deploy Failed - Fires when deployments fail with error details

Form Triggers:

  • New Form Submission - Fires when forms are submitted on sites with form filtering

πŸ› οΈ Additional Features

  • Custom API Call Action - Allows arbitrary API calls to any Netlify endpoint
  • Comprehensive Error Handling - Proper error messages for authentication, rate limits, API errors
  • Site Dropdown - Dynamic site selection with real-time loading
  • Deploy Status Formatting - Human-readable status and context formatting
  • File Size Formatting - Readable file size display with proper units
  • Webhook Management - Automatic webhook creation and cleanup

🎯 Addresses Issue Requirements

This implementation fully addresses the requirements outlined in issue #8974:

  • βœ… Complete Netlify platform integration
  • βœ… Personal Access Token authentication with validation
  • βœ… All requested write actions and triggers
  • βœ… Webhook support for real-time event handling
  • βœ… Follows Activepieces coding standards and patterns
  • βœ… Comprehensive error handling and field validation

πŸ“ Files Added

packages/pieces/community/netlify/
β”œβ”€β”€ package.json
β”œβ”€β”€ project.json
β”œβ”€β”€ tsconfig.json
β”œβ”€β”€ tsconfig.lib.json
β”œβ”€β”€ README.md
└── src/
β”œβ”€β”€ index.ts
└── lib/
β”œβ”€β”€ common/
β”‚ β”œβ”€β”€ auth.ts # Personal Access Token authentication
β”‚ β”œβ”€β”€ client.ts # API client with error handling
β”‚ └── utils.ts # Utility functions and dropdowns
β”œβ”€β”€ actions/
β”‚ β”œβ”€β”€ start-deploy.ts # Deployment triggering
β”‚ β”œβ”€β”€ get-site.ts # Site information retrieval
β”‚ β”œβ”€β”€ list-site-deploys.ts # Deployment listing
β”‚ └── list-files.ts # File browsing
└── triggers/
β”œβ”€β”€ new-deploy-started.ts
β”œβ”€β”€ new-deploy-succeeded.ts
β”œβ”€β”€ new-deploy-failed.ts
└── new-form-submission.ts

πŸ§ͺ Testing Instructions

Prerequisites

  1. Netlify Account - Sign up for free at netlify.com
  2. Personal Access Token - Generate token from User Settings > Applications > Personal Access Tokens
  3. Test Site - Deploy a test site with forms for comprehensive testing

Authentication Testing

  1. Configure Personal Access Token in Activepieces
  2. Test authentication validation with valid/invalid tokens
  3. Verify proper error messages for authentication failures

Action Testing

Write Actions:

  1. Test Start Deploy with cache clearing options
  2. Test Get Site with various site types and configurations
  3. Test List Site Deploys with different filters (status, context, limit)
  4. Test List Files with path filtering and wildcard patterns
  5. Verify error handling for non-existent sites/deploys

Triggers:

  1. Set up webhook triggers in test flows
  2. Trigger deployments to verify deploy started/succeeded/failed events
  3. Submit forms to verify form submission triggers
  4. Verify payload structure matches expected format
  5. Test webhook cleanup on trigger disable

Error Handling Testing

  1. Test with invalid Personal Access Tokens
  2. Test with malformed API requests
  3. Test rate limiting scenarios
  4. Verify proper error messages are displayed

πŸ” Code Quality

  • βœ… TypeScript Compilation - No compilation errors
  • βœ… Code Standards - Follows Activepieces patterns and conventions
  • βœ… Error Handling - Comprehensive error handling throughout
  • βœ… Documentation - Inline comments and README documentation
  • βœ… Type Safety - Proper TypeScript types and interfaces
  • βœ… Modularity - Clean separation of concerns and reusable components
  • βœ… Validation - Input validation and data sanitization

πŸ“š API Documentation

This integration is built against the official Netlify API v1:

πŸ“Š Implementation Statistics

  • Total Files: 17 new files
  • Lines of Code: ~1,350 lines
  • Actions: 5 total (4 write + 1 custom API)
  • Triggers: 4 webhook triggers
  • Authentication: Personal Access Token with validation
  • Error Handling: Comprehensive throughout
  • Documentation: Complete README and inline comments

Closes #8974

/claim #8974

Claim

Total prize pool $50
Total paid $0
Status Pending
Submitted August 29, 2025
Last updated August 29, 2025

Contributors

VI

Vishwanath Martur

@vishwamartur

100%

Sponsors

AC

Activepieces (YC S22)

@activepieces

$50