Web Application / REST API

FPay Freight Payment Platform

A comprehensive freight payment processing platform managing the complete payment lifecycle. Innovatively integrates Claude AI to auto-generate realistic freight shipment data and EDI 210 files, eliminating manual data entry for development and testing.

40
Commits
5
Data Models
10
Shipment Types
10+
Admin Pages

Freight payments, modernized

FPay manages the complete freight payment lifecycle from invoice creation through approval, payment, and reconciliation. The platform handles carrier management, shipment tracking, and full EDI 210 document processing with ANSI X12 compliance.

What sets FPay apart is its innovative use of Claude AI to auto-generate realistic freight shipment data and complete EDI 210 files. This eliminates hours of manual data entry during development and testing, supporting all 10 shipment types with authentic weights, charges, and carrier details.

Built for reliability

A focused stack designed for secure payment processing and EDI compliance.

Runtime
Node.js 24
Express.js 4.18
Database
MongoDB Atlas
Mongoose 8.0
AI
Claude AI
SDK 0.32
Security
Helmet.js
CORS protection
Infrastructure
Azure Web App
Cloud hosting
CI/CD
Azure DevOps
Automated pipelines
EDI
ANSI X12 210
Freight invoice standard
Frontend
HTML5 / CSS3
Server-rendered pages

Key capabilities

01

AI-Powered EDI Generation

Claude AI generates realistic freight data and complete EDI 210 files. Supports all 10 shipment types with authentic weights, charges, and carrier details.

02

EDI 210 Processing

Full ANSI X12 implementation — ISA/IEA headers, GS/GE groups, B3 carrier segments, N1-N4 address loops, LX line items, L0/L1/L3 weight and charges.

03

Payment Lifecycle Management

Secure processing with complete lifecycle from invoice creation through approval, payment, and reconciliation.

04

Carrier Management

Comprehensive carrier tracking with contact information, performance metrics, and onboarding workflows.

05

Error Tracking System

Custom middleware-based error logging to MongoDB with admin dashboard for monitoring and resolution.

06

Admin Panel

PIN-protected multi-page admin interface for system configuration, data management, and operational oversight.

System design

A layered architecture built for secure payment processing and EDI compliance.

Client
Admin Dashboard Mobile UI API Consumers
API
Express.js Auth Middleware Error Logger
Services
Claude AI EDI Parser Payment Engine Carrier Service
Data
MongoDB Atlas EDI Document Store Error Log

EDI 210 generation

Claude AI generates realistic freight data which is assembled into compliant ANSI X12 210 documents.

edi210-generator.js
const generateEDI210 = async (shipment) => {
  // Claude generates realistic freight data
  const freightData = await claude.generate({
    type: shipment.type, // LTL, FTL, Hazmat...
    origin: shipment.origin,
    destination: shipment.destination
  });

  // Build ANSI X12 210 document
  const segments = [
    `ISA*00*          *00*          `,
    `GS*IM*${freightData.carrier.scac}`,
    `ST*210*${transactionId}`,
    `B3*${freightData.invoiceNumber}`,
    ...buildAddressLoops(freightData),
    ...buildLineItems(freightData.items),
    `L3*${freightData.totalWeight}*G*`,
  ];

  return segments.join('~\n');
};
Back to all projects