Skip to content
imapandaPublic

About

Open-source EDI gateway: receive, translate and send EDIFACT, X12 and more over SFTP, AS2 and APIs, with an MCP server to draft partner mappings from spec sheets.

Topics

Resources

Contributing

Security policy

Accessibility

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

189 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Libredi

CI CodeQL OpenSSF Scorecard License: AGPL-3.0

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.

What works today

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 inspect checks a file, libredi test runs a mapping's fixtures, libredi convert turns an EDIFACT file into the files of an ERP and back through a flow, and libredi compare compares 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.

Why

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.

Planned features

  • 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).

Contributing

See CONTRIBUTING.md for how changes are proposed, checked and released, and SECURITY.md to report a vulnerability privately.

Third-party components

Libredi runs some proven open-source servers unmodified, as their own containers, under their own licences (ADR 3):

License

Libredi is free software, licensed under the GNU Affero General Public License v3.0.

About

Open-source EDI gateway: receive, translate and send EDIFACT, X12 and more over SFTP, AS2 and APIs, with an MCP server to draft partner mappings from spec sheets.

Topics

Resources

Contributing

Security policy

Accessibility

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages