Open-source EDI gateway: receive, translate and send business messages, reliably.
Libredi receives EDI messages from your trading partners, translates them into the formats your ERP understands (CSV, JSON, XML…), and sends your own documents back the other way. It is built as a set of Docker services that you can run yourself, for free.
Status: early development, not ready for production. The command line and the libraries work, and the services of the stack run; processing messages end to end is in review. Follow the roadmap and the discussions to see where we are going.
On main:
- EDIFACT engine: tokenizer, parser and validator against the UN/EDIFACT directories, with positioned errors in plain language (validation errors). The directories are built on your machine from the official UN/ECE files (registry generator); partner rules go in overrides.
- Mappings: declarative JSONata files, with fixtures as tests, run in a sandbox (mapping reference).
- ERP formats: CSV, fixed width, JSON and XML, described once and read and written by the
same code (
contracts/erp-formats). - Command line:
libredi inspectchecks a file,libredi testruns a mapping's fixtures,libredi convertturns an EDIFACT file into the files of an ERP and back through a flow, andlibredi comparecompares the ERP files of two tools (CLI). - Connectors: SFTP and FTP servers, drop folders, mail (IMAP and SMTP) and webhooks, and an SFTP gateway for partners (SFTPGo) (connectors).
- API and console: API tokens and roles, the intake of files (archived first, recorded once), partners, endpoints, flows and their promotion from test to production, messages, and a mapping editor that runs the fixtures in the browser.
- Local MCP server: an AI assistant can inspect and validate files, run a mapping's tests and explain errors, on your machine (local MCP server).
- Remote MCP server: an AI assistant reads the messages, partners and flows of a running instance, read-only, with an API token (remote MCP server).
In review:
- Processing end to end on PostgreSQL: the worker that takes a received message through parsing, validation, mapping and delivery, its queues and its database schema.
Start with the installation, then read the architecture and the rest of the documentation.
Small and mid-sized companies often pay an EDI provider for every message they exchange (orders, despatch advices, invoices…). The open-source alternatives exist but are hard to configure. Libredi aims to be the simple, reliable one.
- Formats: UN/EDIFACT and EANCOM first, then ANSI X12; CSV, JSON and XML on the ERP side.
- Transports: SFTP/FTP folders, HTTP API, AS2, email; more later.
- Reliability first: every raw message archived, idempotent processing, retries, replay, acknowledgements (CONTRL, APERAK), full audit trail.
- Environments: separate test and production setups per partner, so you can validate a new flow before going live.
- AI-assisted onboarding: an MCP server that lets an AI assistant read a partner's specification sheet (message implementation guide) and draft the matching mapping.
- Self-hosted or hosted: run it on your own server with Docker Compose, or use a managed instance (not available yet).
See CONTRIBUTING.md for how changes are proposed, checked and released, and SECURITY.md to report a vulnerability privately.
Libredi runs some proven open-source servers unmodified, as their own containers, under their own licences (ADR 3):
- SFTPGo serves file transfers over SFTP and FTPS (the
sftp-gatewayservice). SFTPGo is by Nicola Murino and contributors, licensed under the GNU AGPL v3.0 with additional terms. Libredi is not affiliated with or endorsed by the SFTPGo project. Source code of the SFTPGo version in use: https://github.com/drakkan/sftpgo/tree/v2.7.6. See the SFTP gateway.
Libredi is free software, licensed under the GNU Affero General Public License v3.0.