Skip to content

Automated webhook server to update local schema as edits are made on the base. #2

@Squix

Description

@Squix

Overview

Add a new webhook-server command that automatically sets up and manages webhooks to track schema changes in Airtable bases. This feature will enable real-time schema tracking without manual polling.

Motivation

Currently, users need to manually run get-schema to capture base structure changes. An automated webhook system would:

  • Capture schema changes in real-time
  • Improve the Version-control workflow by automating schema version control

Proposed Implementation

New Command

./airtable-devops webhook-server --base-id <your_base_id> --port 3000 --output-dir <output_directory>

Key Features

  1. Automated Setup
    • Create ngrok tunnel automatically when server starts
    • Register webhook with Airtable API pointing to ngrok URL
    • Clean up resources on server shutdown
  2. Versioning
    • Use the existing timestamped files for each change, before we develop a git integration

Technical Requirements

  • Add new command to CLI
  • Add ngrok as a dependency
  • Implement Airtable webhook API integration
  • Create webhook server module
  • Update documentation

Questions to Resolve

  1. Can we really create free ngrok tunnels automatically ? Should the user register its ngrok API key ?
  2. Which system to handle versioning ? Should we start with the existing timestamped files for each change ? O

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions