Skip to content

Repository files navigation

TriggerHive 🐝

Visual Workflow Automation Platform β€” Connect APIs, AI, and services with a drag-and-drop interface

Status Next.js TypeScript License

✨ What is TriggerHive?

TriggerHive is an open-source workflow automation platform that lets you visually connect triggers, APIs, AI models, and messaging services. Similar to n8n, Zapier, and Make, but built with a modern tech stack and fully customizable.

🎬 Demo Workflows

Workflow Description
LinkedIn Post Generator Fetches trending tech articles β†’ AI creates engaging post β†’ Generates hashtags β†’ Posts to Discord/Slack
Customer Feedback Analyzer Google Form submission β†’ AI sentiment analysis β†’ Action items generation β†’ Multi-channel alerts
Payment Celebration Engine Stripe payment webhook β†’ Fetch customer data β†’ AI personalized thank-you β†’ Team notifications

πŸš€ Features

Visual Workflow Builder

  • Drag-and-drop editor powered by React Flow
  • Real-time canvas with live node connections
  • Node configuration dialogs with dynamic forms
  • Variable interpolation β€” Pass data between nodes with {{nodeName.field}}

Trigger Nodes

Trigger Description
πŸ“ Google Form Receive form submissions via secure webhooks
πŸ’³ Stripe Listen to payment events (payment_intent.succeeded, etc.)
▢️ Manual Execute workflows on-demand

Action Nodes

Node Description
🌐 HTTP Request Make GET/POST/PUT/PATCH/DELETE API calls
πŸ€– OpenAI Generate text with GPT-4, GPT-4o, GPT-4o-mini
🧠 Anthropic Use Claude models for AI processing
✨ Google Gemini Access Gemini 2.0 Flash and Pro models
πŸ’¬ Discord Send messages via webhooks
πŸ“’ Slack Post to Slack channels

Execution Engine

  • Background processing with Inngest
  • Real-time status updates via WebSocket channels
  • Execution history with detailed logs and output data
  • Error tracking with Sentry integration
  • Secure credential management for API keys

πŸ›  Tech Stack

Frontend

Technology Purpose
Next.js 16 React framework with App Router
React 19 UI library
TypeScript Type safety
React Flow Visual workflow canvas
Tailwind CSS Styling
Radix UI Accessible UI primitives
shadcn/ui Component library

Backend

Technology Purpose
tRPC End-to-end typesafe APIs
Prisma Database ORM
Inngest Event-driven background jobs
Better Auth Authentication
Polar Payments & subscriptions

AI & Integrations

Technology Purpose
Vercel AI SDK Unified AI model interface
OpenAI GPT models
Anthropic Claude models
Google AI Gemini models
Handlebars Template interpolation

Infrastructure

Technology Purpose
Neon Serverless Postgres
Vercel Deployment
Sentry Error tracking
Stripe Payment webhooks

πŸ“¦ Installation

Prerequisites

  • Node.js 18+
  • PostgreSQL database (or Neon)
  • npm or pnpm

Quick Start

# Clone the repository
git clone https://github.com/swayamyadav05/TriggerHive.git
cd TriggerHive

# Install dependencies
npm install

# Set up environment variables
cp .env.example .env
# Edit .env with your credentials

# Run database migrations
npx prisma migrate dev

# Generate Prisma client
npx prisma generate

# Start development server
npm run dev

Environment Variables

# Database
DATABASE_URL="postgresql://..."

# App
NEXT_PUBLIC_APP_URL="http://localhost:3000"

# Authentication (Better Auth)
BETTER_AUTH_SECRET="your-secret-key"

# Stripe (for payment triggers)
STRIPE_SECRET_KEY="sk_..."

# Inngest (background jobs)
INNGEST_EVENT_KEY="..."
INNGEST_SIGNING_KEY="..."

# Sentry (error tracking)
SENTRY_AUTH_TOKEN="..."

# Optional: AI Providers (users add their own keys)
# These are stored encrypted per-user in the credentials system

Development Scripts

# Start all services (Next.js + Inngest Dev Server)
npm run dev:all

# Start Next.js only
npm run dev

# Start Inngest Dev Server
npm run inngest:dev

# Start ngrok tunnel (for webhooks)
npm run ngrok:dev

# Build for production
npm run build

# Run linting
npm run lint

🎯 Usage

Creating Your First Workflow

  1. Sign up and create your account
  2. Create a new workflow from the dashboard
  3. Add a trigger node (Manual, Google Form, or Stripe)
  4. Connect action nodes (HTTP Request, AI, Discord, Slack)
  5. Configure each node with required parameters
  6. Execute and watch real-time status updates!

Using Variables

Pass data between nodes using Handlebars syntax:

# Access HTTP response data
{{nested httpNode "httpResponse.data.title"}}

# Access AI generated text
{{aiNode.text}}

# Access Google Form responses
{{response "Question Name"}}

# Access Stripe payment data
{{stripe.data.amount}}

# Pretty print JSON
{{json someObject}}

Webhook Configuration

For Google Form Trigger:

  1. Open node settings β†’ Copy webhook URL
  2. Copy the generated Apps Script
  3. Paste in Google Forms β†’ Extensions β†’ Apps Script
  4. Add trigger: On form submit

For Stripe Trigger:

  1. Open node settings β†’ Copy webhook URL
  2. Go to Stripe Dashboard β†’ Webhooks β†’ Add endpoint
  3. Paste URL and select events (e.g., payment_intent.succeeded)
  4. Copy signing secret β†’ Paste in TriggerHive

πŸ“ Project Structure

TriggerHive/
β”œβ”€β”€ prisma/                    # Database schema & migrations
β”‚   └── schema.prisma
β”œβ”€β”€ public/                    # Static assets
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ app/                   # Next.js App Router
β”‚   β”‚   β”œβ”€β”€ (auth)/           # Auth pages
β”‚   β”‚   β”œβ”€β”€ (dashboard)/      # Dashboard pages
β”‚   β”‚   └── api/              # API routes & webhooks
β”‚   β”œβ”€β”€ components/           # UI components
β”‚   β”‚   β”œβ”€β”€ ui/              # shadcn/ui primitives
β”‚   β”‚   └── react-flow/      # Workflow canvas components
β”‚   β”œβ”€β”€ features/            # Feature modules
β”‚   β”‚   β”œβ”€β”€ auth/            # Authentication
β”‚   β”‚   β”œβ”€β”€ credentials/     # API key management
β”‚   β”‚   β”œβ”€β”€ editor/          # Workflow editor
β”‚   β”‚   β”œβ”€β”€ executions/      # Execution nodes & logic
β”‚   β”‚   β”œβ”€β”€ triggers/        # Trigger nodes
β”‚   β”‚   └── workflows/       # Workflow management
β”‚   β”œβ”€β”€ inngest/             # Background job functions
β”‚   β”‚   β”œβ”€β”€ channels/        # Real-time channels
β”‚   β”‚   └── functions.ts     # Workflow executor
β”‚   β”œβ”€β”€ lib/                 # Utilities
β”‚   β”‚   β”œβ”€β”€ handlebars-helpers.ts  # Template helpers
β”‚   β”‚   └── encryption.ts    # Credential encryption
β”‚   └── trpc/               # tRPC router & client
└── docs/                   # Documentation

πŸ”’ Security

  • Credential Encryption β€” All API keys stored encrypted (AES-256)
  • Webhook Verification β€” HMAC-SHA256 signature validation
  • Stripe SDK Verification β€” Native Stripe webhook signature verification
  • Per-user Isolation β€” Credentials and workflows scoped to users
  • Secure Sessions β€” Better Auth with HTTP-only cookies

πŸ—Ί Roadmap

Completed βœ…

  • Visual workflow editor with React Flow
  • Multiple trigger types (Manual, Google Form, Stripe)
  • AI integration (OpenAI, Anthropic, Gemini)
  • Messaging nodes (Discord, Slack)
  • HTTP Request node with all methods
  • Real-time execution tracking
  • Execution history with filtering
  • Secure credential management
  • Variable interpolation system
  • Webhook security (HMAC-SHA256)

Can be added 🚧

  • Email nodes (SendGrid, Resend)
  • Database nodes (Postgres, MongoDB)
  • Conditional logic nodes (If/Else, Switch)
  • Loop nodes (For Each, While)
  • Workflow templates gallery
  • Team collaboration features
  • Workflow versioning
  • Scheduled triggers (Cron)
  • File storage nodes (S3, Google Drive)

🀝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ™ Acknowledgments


TriggerHive β€” Automate Everything 🐝
Built with ❀️ by Swayam Yadav

Last updated: December 20, 2025

About

A complete workflow automation platform with visual drag-drop canvas, AI integrations, and full SaaS business layer.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages