Eco-Faker

•

Generates stateful, relationally-consistent fake e-commerce data that accurately simulates real store histories.

Eco-Faker is a powerful tool designed to create synthetic, yet highly realistic, e-commerce datasets. Unlike simple random JSON generators, it meticulously simulates user interactions, carts, orders, shipments, and returns based on an underlying state machine. This ensures that the generated data maintains strong relational consistency, reading like an authentic store's transactional history, complete with product catalogs, inventory, and even synthetic recommendation data. It provides various interfaces including a CLI, an MCP server, and adapters for REST, GraphQL, tRPC, and MSW, making it versatile for diverse development and testing needs.

Key Features

01Stateful and relationally-consistent e-commerce data generation with a shared product catalog and inventory simulation.
02Event Sourcing Mode generating a chronologically-ordered stream of 18 different aggregate events (e.g., user.created, order.created).
030 GitHub stars
04Comprehensive Mock API with support for REST, GraphQL, tRPC, and MSW, including filtering, sorting, and pagination.
05Integrated Fraud Simulation Engine for tagging orders with realistic fraud risk signals like stolen cards and refund abuse.
06OpenTelemetry export providing real OTLP/JSON distributed traces for checkout and shipment fulfillment.

Use Cases

01Training and testing machine learning models for fraud detection, recommendation engines, and natural language processing (NLP) on support tickets.
02Creating interactive demos and presentations for e-commerce applications, analytics dashboards, and distributed tracing systems.
03Populating development and testing databases with realistic, consistent e-commerce data for various scenarios.