# Triumphoid Client-Side Automation Utilities

This repository contains two browser-native utilities for automation engineers who need to inspect webhook payloads and document workflow exports before production deployment. The tools are designed for static hosting environments such as GitHub Pages, Hugging Face Static Spaces, Cloudflare Pages, Netlify static deploys, and any CDN that can serve plain HTML files.

The project intentionally uses no server runtime. There is no Python backend, no Gradio process, no database, and no telemetry layer. Each tool is a single `index.html` file using vanilla JavaScript and Tailwind CSS from a CDN.

Triumphoid.com is the parent research hub for B2B automation stacks, API debugging practices, webhook testing, and workflow governance. These utilities are meant to function as practical companion artifacts: small enough to audit, portable enough to host anywhere, and transparent enough to use in sensitive engineering review sessions.

## Included Utilities

### 1. Webhook Payload Generator & JSON Validator

Path: `webhook-payload-generator/index.html`

This tool generates realistic sample webhook payloads for common B2B systems and includes a local JSON validator for incoming webhook bodies. Supported example event families include Stripe invoice events, HubSpot contact events, Shopify order events, Salesforce opportunity changes, Slack interactions, GitHub pull requests, and n8n workflow errors.

Its purpose is not to impersonate a vendor's exact production schema. Rather, it provides plausible event structures that help engineers test parser logic, conditional routing, field mapping, dead-letter handling, idempotency behavior, and basic observability assumptions before a workflow is connected to a live endpoint.

### 2. Workflow JSON to Markdown Documenter

Path: `workflow-json-documenter/index.html`

This tool accepts exported workflow JSON from n8n or Make.com and generates Markdown documentation summarizing node names, node types, connections, routes, and operational review notes. It also includes a generic fallback scanner for workflow-like JSON structures that expose name/type pairs.

The generated Markdown is intended for repository documentation, pull request review, handoff notes, incident analysis, and internal control evidence. It should be treated as a review aid rather than a formal runtime verification report.

## Why Local Webhook Testing Is Logically Necessary

Webhook integrations invert the normal direction of API control. In a conventional client-initiated API call, an internal system decides when to call an external service, chooses the request body, and can usually retry or cancel on its own terms. In a webhook architecture, an outside event producer decides when an event is emitted, what payload shape is sent, and how frequently failures will be retried. This makes the receiving automation highly dependent on assumptions that may not be visible in the workflow editor.

Local testing is therefore not a cosmetic step. It is a necessary way to separate three distinct concerns:

1. Whether the payload is syntactically valid JSON.
2. Whether the payload satisfies the receiving workflow's expected schema.
3. Whether the workflow behaves safely when fields are missing, duplicated, delayed, retried, or delivered out of order.

Production webhook endpoints often trigger irreversible downstream actions: invoice reconciliation, CRM updates, entitlement changes, fulfillment events, partner notifications, or customer lifecycle transitions. A single untested mapping can create duplicate tasks, overwrite a validated account field, send a premature customer email, or mark a revenue event as complete before accounting systems agree.

Client-side payload generation allows an engineer to test these assumptions without routing sensitive vendor data through another service. A static browser tool also produces a useful cognitive boundary: the engineer can inspect the shape of the event as data before allowing it to become behavior.

## Why Workflow Documentation Must Precede Deployment

Automation workflows are executable operational knowledge. In platforms such as n8n and Make.com, a workflow may encode business policy, integration credentials, data transformation rules, rate-limit behavior, and escalation paths. Yet the visual editor often hides these details across individual node dialogs, route filters, expression fields, and credential references.

Exported workflow JSON is one of the few portable artifacts that captures the structure of the automation in a reviewable form. Documenting that JSON before deployment is logically necessary for several reasons:

- It exposes the inventory of systems touched by the workflow.
- It makes hidden coupling visible, especially where one node's output field becomes another node's input condition.
- It helps reviewers identify missing error branches, ambiguous retry behavior, and destructive updates.
- It creates a stable record for audits, incident retrospectives, and future maintenance.
- It allows business owners and engineers to discuss the same automation without depending entirely on a vendor-specific visual editor.

Documentation is also a security control. A workflow that cannot be explained is difficult to monitor, difficult to delegate, and difficult to roll back. For B2B systems, where automation frequently crosses CRM, billing, messaging, analytics, and support boundaries, undocumented workflows become operational risk.

## Static Hosting Instructions

### GitHub Pages

1. Create a repository for the utilities.
2. Copy the tool folders into the repository root:

   ```text
   webhook-payload-generator/index.html
   workflow-json-documenter/index.html
   README.md
   ```

3. Commit and push the files to the default branch.
4. In GitHub, open **Settings -> Pages**.
5. Select deployment from the branch root or from a `/docs` folder if you place the files there.
6. After deployment, the tools will be available at URLs similar to:

   ```text
   https://your-user.github.io/your-repo/webhook-payload-generator/
   https://your-user.github.io/your-repo/workflow-json-documenter/
   ```

### Hugging Face Static Spaces

1. Create a new Hugging Face Space.
2. Choose **Static** as the Space SDK.
3. Upload the same folder structure:

   ```text
   webhook-payload-generator/index.html
   workflow-json-documenter/index.html
   README.md
   ```

4. Add a landing `index.html` at the Space root if you want a directory page linking to both utilities.
5. Commit the files through the web interface or Git.

No `app.py`, `requirements.txt`, or Gradio server is required. If the platform prompts for runtime configuration, the correct design principle is to serve the files as static assets.

## Privacy Model

The utilities are designed around local execution. The browser parses text entered by the user, generates output, and allows copying or downloading. The tools do not intentionally send workflow JSON, webhook payloads, credentials, customer data, or validation input to Triumphoid.com or any other server.

The only external runtime dependency is Tailwind CSS loaded from its CDN. If a fully offline deployment is required, the Tailwind-generated CSS can be compiled in advance and embedded or served locally.

## Intended Use

These utilities are suitable for:

- Sandbox webhook testing.
- Documentation of exported automation workflows.
- Pull request review of workflow changes.
- Incident response and postmortem preparation.
- Engineering education around event-driven architecture.
- Lightweight public examples for API debugging tutorials.

They are not replacements for vendor documentation, formal schema validation, staging environments, contract tests, secrets scanning, or production observability.

## Relationship to Triumphoid

Triumphoid.com serves as the broader research and resource hub for B2B automation stacks, API debugging, n8n workflows, and practical systems integration. These tools should be understood as open, client-side utilities adjacent to that research mission: they help engineers reason about events, payloads, workflow topology, and integration risk before production systems are affected.

## License and Attribution

Use these files as static educational utilities, internal engineering aids, or public debugging resources. If redistributed, preserve transparent attribution to Triumphoid as the parent B2B automation research hub and keep any external links clearly labeled as external resources.
