Verifiable enterprise workflows for supply-chain claims.
Eco Trace is a collaborative enterprise verification architecture demo built to show how modern engineering teams can make supply-chain sustainability claims trustworthy, auditable, and consumer-verifiable using React 19, Vue 3.5 Vapor, Go/WebAssembly, Cloudflare D1, and deterministic governance.
In 2026, the hard problem is not generating another interface. The hard problem is making enterprise data trustworthy, verifiable, governable, and usable across different actors. Eco Trace demonstrates how to solve this challenge through a role-specific, cryptographically verified supply-chain architecture.
Note
- A portfolio-grade architecture showcase.
- A two-app ecosystem: Admin Workstation (React 19) + Consumer Verification App (Vue 3.5 Vapor).
- A proof of engineering judgment across frontend frameworks, edge computing, cryptography, and UX.
- A recruiter-friendly technical case study.
Warning
- Not a production ESG compliance company.
- Not a blockchain project.
- Not a SaaS billing or multi-tenant product.
- Not an AI wrapper.
- Not a claim of real ISO certification, real customers, or real enterprise deployment. All metrics, certifications, and compliance logs shown in the app are seeded for demo purposes.
Experience the live deployments running on Cloudflare's Edge Network:
- π Unified Demo Hub Entry Point β The central landing page explaining the ecosystem and routing users.
- π₯οΈ Auditor Workstation (Admin App) β Secure, authenticated dashboard for managing entities and inspecting supply chain integrity.
- π± Consumer Verification App β High-performance scanner and product transparency viewer (pre-loaded with the demo asset).
- π Technical Case Study β Architectural write-up detailing business problems, trade-offs, and verification methodologies.
To evaluate the system quickly, choose one of the following structured paths:
- Start at the Hub: Open the Unified Demo Hub.
- Audit the Claim: Click Audit the Claim to go to the Auditor Workstation login. Click the Use Demo Auditor button to automatically pre-fill credentials, and sign in.
- Verify Integrity: Go to Integrity Events in the sidebar. Look at
ASSET-COFFEE-2026-001. Expand Event 4 (INVALID) to see how the system flags a retroactively tampered carbon payload, and Event 5 (UNAUTHORIZED) to see an unregistered supplier key block. - Open Consumer View: Go to Compliance Export, select the coffee asset, and click the View in Consumer App link.
- Review Provenance: On the Consumer transparency page, see the green Authenticity Badge and the detailed carbon footprint calculation calculated by Go/WebAssembly.
- Inspect Trust boundaries: Read the Case Study explaining how the Go/Wasm sandbox isolates cryptographic operations from browser-based XSS.
- Verify Edge RBAC: Check the Next.js Middleware configuration that protects
/dashboard/*routes and verifies session tokens stored in Cloudflare KV at the edge. - Examine Vue 3.5 Vapor: Review the Consumer codebase to see compile-time reactive signals rendering raw DOM nodes without virtual-DOM overhead.
- Export Compliance Evidence: Go to
/dashboard/complianceand download the client-side generated PDF containing Ed25519 signatures and public keys to verify offline auditable evidence. - Run Local Validation: Follow the local commands below to verify that the entire test suite and compiler gates pass.
Eco Trace separates user interfaces into two distinct applications to match the access control, runtime, and latency requirements of different surfaces:
| Surface | Stack | Purpose |
|---|---|---|
| Admin Workstation | React 19, Next.js (App Router), Cloudflare Pages | Internal Auditor Workspace: Write-heavy, authenticated, governed by Next.js Middleware RBAC. Features RSC data streaming and Server Actions targeting D1. |
| Consumer App | Vue 3.5 Vapor Mode, Vite, Workers Native Static Assets | Public Verification Surface: Read-only, unauthenticated, mobile-first scanner. Vapor mode eliminates virtual-DOM overhead to achieve sub-100ms loading speeds. |
| Shared Engine | Go 1.22+, WebAssembly (Go/Wasm) | Shared Trust boundary: Executes identical Ed25519 signature checks and deterministic carbon calculations inside a browser WebWorker sandbox on both platforms. |
graph TD
subgraph Edge Network [Cloudflare Global Network]
API["Cloudflare Workers & Pages API"]
DB[("Cloudflare D1 (SQLite Edge)")]
end
subgraph User Interfaces
Admin[React 19 Admin Dashboard]
Consumer[Vue 3.5 Consumer App]
end
subgraph Cryptographic Engine [Go WebAssembly Sandbox]
Wasm[Go Verification Engine]
end
Admin <-->|JSON Payloads & Server Actions| API
Consumer <-->|Read-only Provenance APIs| API
API <-->|SQL Queries| DB
Admin -->|Client-Side Verification| Wasm
Consumer -->|Client-Side Verification| Wasm
Every supply chain event undergoes cryptographic verification using Ed25519 keys prior to database persistence and client presentation:
sequenceDiagram
participant User as Auditor (Admin UI)
participant Wasm as Go Engine (Wasm)
participant API as Edge Route
participant D1 as Cloudflare D1
User->>Wasm: Submits Event Data (or attempts modification)
Wasm-->>User: Recalculates Hash & Validates Signature
alt Signature Matches & Actor is Trusted
User->>API: POST /api/events (Includes Payload + Signature + Status)
API->>D1: INSERT INTO events
D1-->>User: Confirms Persistence
else Signature Fails (Tampered Payload)
Wasm-->>User: Status: INVALID (Integrity Alert)
else Signature Matches but Actor Untrusted
Wasm-->>User: Status: UNAUTHORIZED (Identity Alert)
end
- Edge Authentication: Session state managed via Next.js Middleware and Cloudflare Workers KV.
- Granular RBAC: Role gates enforcing routes and mutations for
ADMIN,AUDITOR, andVIEWERroles. - Streaming Overview Analytics: PROGRESSIVE loading of dashboard counters via React Server Components (RSC) and Suspense boundaries.
- Entity Management: Onboard trusted suppliers, register trackable SKUs, and associate Ed25519 public keys.
- Wasm-Backed Verification Log: Visual audit trail demonstrating interactive tamper and unauthorized key testing.
- Evidence Export: Client-side generated compliance PDFs and CSV extracts carrying raw signatures and keys.
- Unified Navigation: Guided demo stepper providing recruiters with step-by-step UI assistance.
- Vapor Rendering: Zero virtual-DOM overhead compiled to vanilla JS for lightning-fast mobile loading.
- QR Scanner: Direct HTML5 camera scanner running in a separate WebWorker thread.
- No-Camera Fallback: A "Use Demo Product" bypass button enabling instant evaluation on any device.
- SWR Data Hydration: Reactive composables fetching read-only event histories from edge endpoints.
- Product Transparency Screen: Green authenticity badge, plain-English carbon formula breakdowns, and a chronological history timeline.
-
Deterministic Math: Precision aggregation of carbon calculations (
$CF_{total} = \sum E_i \times EF_i$ ). - Signature Security: Ed25519 verification using internal registry public keys.
- Sandboxed Execution: Isolated JS bridge allowing standard browser worker scripts to interact with compiled Go binaries.
All live and local demo scenarios revolve around a single, pre-seeded supply chain flow:
| Element | Seeded Value |
|---|---|
| Asset ID | ASSET-COFFEE-2026-001 (Andes Trace Coffee Lot 001) |
| Trusted Supplier | Andes Organic Cooperative (Harvest Origin) |
| Processing Node | Veridian Processing Node (Milling/Packaging) |
| Logistics Actor | NorthStar Logistics (Global Freight) |
| Demo Auditor | Eco Trace Demo Auditor (Final Inspection) |
- Event 4 (INVALID): Veridian Processing Node attempts to modify the carbon emissions payload retroactively. The signature verification fails.
- Event 5 (UNAUTHORIZED): An unrecognized transporter logs a delivery event using an intact Ed25519 signature from a key not listed in the Go registry.
- Node.js: v22.x (LTS)
- Go: v1.22+ (required to compile Go to WebAssembly)
- pnpm:
npm install -g pnpm
git clone git@github.com:h-builds/eco-trace.git
cd eco-trace
pnpm installBuild the Go cryptography engine and copy the binary to the static assets:
cd packages/engine
./build.sh
cd ../..Initialize the local SQLite simulation database and seed it with the demo scenario:
cd apps/admin
# Create schema
npx wrangler d1 execute eco-trace-events --local --file=./schema.sql
# Generate actor key pairs and seed SQL
npx tsx lib/seed.ts
# Seed the database
npx wrangler d1 execute eco-trace-events --local --file=./seed.sql
cd ../..Start all dev servers concurrently from the monorepo root:
pnpm devIndividual ports are mapped as:
- Demo Hub: http://localhost:5173 (or
5174depending on port availability) - Consumer App: http://localhost:5173
- Admin Workstation (Edge Proxy): http://localhost:8788 (Run
pnpm --filter admin run dev:edgewithinapps/admin)
Maintain codebase health by executing the verification suite:
# Build all workspaces
pnpm build
# Run all vitest unit/integration tests
pnpm test
# Lint the monorepo
pnpm lintcd packages/engine
go test -v ./...Project governance and system context are stored in a structured workspace intelligence layer:
- Context: Active state history and session memory (CONTEXT.md).
- Rules: Strict engineering guidelines, zero-hallucination policies, and commenting rules (rules/).
- Knowledge: System architecture specifications, evaluation gates, and data dictionaries (knowledge/).
- Prompts: Versioned system instructions for agent workflows (prompts/).
The following capabilities are architecturally designed but not implemented in the current demo:
- πΆ PWA / Offline Support: Service worker caching for auditors logging events in rural farms with poor connectivity.
- π Dynamic Locales (i18n): Translation mapping for global logistics and farming cooperatives.
- π‘ Live IoT Cold Chain Telemetry: Continuous streaming of GPS and temperature sensor data rather than static D1 snapshots.
- π Enterprise ERP Connectors: Direct outbound webhooks sending verified logs to SAP or Oracle NetSuite.
Designed and engineered for portfolios, edge execution, and technical reviews: