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.
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:
contracts/erp-formats).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).In review:
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.
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):
sftp-gateway service). 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.
Evaluate jsonata 2.3
https://github.com/imapanda/libredi/issues/409
Labels: dependencies, area: mapping
Write the review rules for pull requests from outside contributors
https://github.com/imapanda/libredi/issues/403
Labels: documentation, security, area: ci
Encrypt and verify backups and the archive, and alert before storage fills up
https://github.com/imapanda/libredi/issues/402
Labels: security, area: infra
Validate every job against its JSON Schema when a service reads it
https://github.com/imapanda/libredi/issues/401
Labels: security, area: worker, area: connectors
Decide what an error may quote of a partner document, and whether logs are customer data
https://github.com/imapanda/libredi/issues/400
Labels: question, security
Prove that a partner's SFTP account cannot reach another partner's folder
https://github.com/imapanda/libredi/issues/399
Labels: security, area: sftp
Limit what a partner can send: file size, rate and quotas per partner
https://github.com/imapanda/libredi/issues/398
Labels: security, area: connectors, area: sftp
Store endpoint secrets sealed, and open them only in the connectors
https://github.com/imapanda/libredi/issues/397
Labels: security, area: api, area: connectors
Harden the proxy and the api before the first exposure: rate limits, timeouts, HSTS
https://github.com/imapanda/libredi/issues/396
Labels: security, area: infra
Quarantine remote and drop-folder files that fail on every poll
https://github.com/imapanda/libredi/issues/275
Labels: 없음
Thanks for your interest! Libredi is in early design, so the most useful contributions right now are ideas, feedback and real-world EDI requirements in Discussions. Questions are welcome too: see SUPPORT.md. GOVERNANCE.md explains how decisions are made and how to become a maintainer.
git commit -s. The Signed-off-by: line certifies the
Developer Certificate of Origin: you wrote the change
or have the right to submit it under the project licence (AGPL-3.0). There is no CLA
(ADR 9). The DCO check fails on a
commit without a sign-off: see Sign off your commits.mainDiscuss first. Open or pick an issue so that the approach is agreed before you spend time on code. A significant change starts as an RFC in Discussions instead (how decisions are made).
Branch. Fork the repository (or create a branch if you have write access) and work
on a topic branch. To bring in changes from main, merge it into your branch.
Open a draft pull request early. Its title must follow Conventional Commits:
| Title | Meaning | Release |
|---|---|---|
feat: add EANCOM ORDERS parser | New feature | minor |
fix(sftp): retry on timeout | Bug fix | patch |
perf: stream large interchanges | Faster | patch |
feat!: rename mapping file format | Breaking change | major (minor before 1.0) |
Use docs:, test:, refactor:, build:, ci: or chore: for changes that users do
not see: they stay in the history but not in the changelog.
The title becomes the commit message on main and the changelog entry, so describe the
change for a user, in lowercase, without a final period.
Pass the checks. Every pull request must pass the required checks (CI result,
PR title, DCO and CodeQL, see CI/CD) and have all review conversations
resolved.
Mark it ready for review. A maintainer reviews it and squash-merges it.
Releases are automated: merged changes accumulate in a release pull request, and merging that pull request publishes the version.
Add -s when you commit:
git commit -s -m "fix(sftp): retry on timeout"
Git appends a line such as Signed-off-by: Ada Lovelace <ada@example.com>. By adding it you
certify the Developer Certificate of Origin. In VS Code,
turn on the setting git.alwaysSignOff; commits made in GitHub's web editor are signed off
for you.
The DCO check looks at every commit of your pull request. Each one needs a Signed-off-by:
line whose e-mail is the e-mail of the commit's author (git config user.email); upper and
lower case do not matter. The line must be in the trailer block at the end of the message,
where git commit -s puts it. Merge commits and pull requests opened by bots (Dependabot,
release automation) are not checked.
The check lists the commits without a matching sign-off. Sign off all the commits of your
branch, then push again. Below, origin is the remote that points at imapanda/libredi; if
you cloned your own fork, that remote is usually called upstream.
git fetch origin
git rebase --signoff origin/main
git push --force-with-lease
To fix only the last commit:
git commit --amend --no-edit --signoff
git push --force-with-lease
The sign-off uses your current user.name and user.email, but the check compares it with the
e-mail of each commit's author. If the check still fails, some commits were made with another
e-mail: compare git log --format='%h %ae' origin/main..HEAD with git config user.email.
For your own commits, rewrite the author as well:
git rebase -f --exec 'git commit --amend --no-edit --reset-author --signoff' origin/main
git push --force-with-lease
To set up the development environment (Node.js, pnpm, Go, Docker Compose) and run the code
checks (pnpm verify, Go tests, image and Compose smoke tests), see
docs/development.md. The documentation and workflow checks are below.
The CI tools all run without installing anything permanently. Where a version is given, it is
the one of ci.yml:
npx markdownlint-cli2 "**/*.md"
uvx typos@1.51.1
docker run --rm -v "$PWD:/check" -w /check mstruebing/editorconfig-checker:4.0.2
docker run --rm -v "$PWD:/repo" -w /repo lycheeverse/lychee --offline --include-fragments --no-progress "./**/*.md"
uvx zizmor@1.31.1 .
docker run --rm -v "$PWD:/repo" -w /repo rhysd/actionlint:1.7.12
Before you push, check your sign-offs the way the DCO check does (after git fetch origin):
bash .github/scripts/check-dco.sh origin/main HEAD
If you change the checker itself, run its tests with bash .github/scripts/test-check-dco.sh.