One self-contained library that translates, validates, acknowledges and rebuilds X12 - at native speed

Everything you need to work with X12 and HIPAA files, in a single library file you ship next to your own binary, and it is included in every plan.
Native performance

Compiled to native code with zero-copy UTF-8 buffers and streaming split/merge for high-throughput EDI processing.

Zero dependencies

A single self-contained shared library per platform. Copy that one file to the target machine and call it.

EDI to JSON and back

Translate between EDI data and structured JSON: a whole X12 interchange to JSON in one call with parse, and back again with build.

Streaming split & merge

Process one transaction set or segment at a time with flat, low memory use - ideal for very large interchange files.

Built-in validation

Validate transaction sets with configurable SNIP levels, regex, date/time formats, and error limits, for a detailed report.

Acknowledgments

Automatically generate 999, 997, and TA1 acknowledgments from validated interchanges in a single operation mode.

Translate EDI to JSON in a few lines

The official bindings wrap the C ABI, so buffer growth and error codes are handled for you. Each tab uses a real binding you can clone.
import json
import edifabric_x12 as ef

serial = "YOUR_SERIAL_KEY"
ef.load_library()
ef.ensure_token(serial, 3600)
ef.set_map(json.dumps({"default": serial, "maps": {}}))

edi = open("837P_Claim.txt", "rb").read()
output, offset = ef.parse(edi, ef.ParseMode.JSON_VALIDATE)
transactions = output[:offset]
report = json.loads(output[offset:])
print(report["errors_count"])
using EdiFabric.Native.X12;

const string serial = "YOUR_SERIAL_KEY";
EdiFabricX12.Load();
EdiFabricX12.EnsureToken(serial, seconds: 3600);
EdiFabricX12.SetMap($$"""{"default": "{{serial}}", "maps": {}}""");

var edi = File.ReadAllBytes("837P_Claim.txt");
var result = EdiFabricX12.Parse(edi, ParseMode.JsonValidate);
Console.WriteLine(result.Transactions);
Console.WriteLine(result.Report);
import com.edifabric.nativex12.EdiFabricX12;
import com.edifabric.nativex12.ParseMode;
import com.edifabric.nativex12.ParseResult;

String serial = "YOUR_SERIAL_KEY";
EdiFabricX12.loadLibrary();
EdiFabricX12.ensureToken(serial, 3600);
EdiFabricX12.setMap("{\"default\":\"" + serial + "\",\"maps\":{}}");

String edi = Files.readString(Path.of("837P_Claim.txt"));
ParseResult result = EdiFabricX12.parse(edi, ParseMode.JSON_VALIDATE);
System.out.println(result.getTransactions());
System.out.println(result.getReport());
const fs = require("fs");
const ef = require("edifabric-x12");

const serial = "YOUR_SERIAL_KEY";
ef.loadLibrary();
ef.ensureToken(serial, 3600);
ef.setMap(JSON.stringify({ default: serial, maps: {} }));

const edi = fs.readFileSync("837P_Claim.txt");
const { output, offset } = ef.parse(edi, ef.ParseMode.JSON_VALIDATE);
const transactions = output.slice(0, offset);
const report = JSON.parse(output.slice(offset));
console.log(report.errors_count);
import ef "github.com/EdiFabric/edifabric-go-bindings"
import _ "github.com/EdiFabric/edifabric-go-bindings/native"

serial := "YOUR_SERIAL_KEY"
ef.LoadLibrary("")
ef.EnsureToken(serial, 3600)
ef.SetMap([]byte(`{"default": "` + serial + `", "maps": {}}`))

edi, _ := os.ReadFile("837P_Claim.txt")
output, offset, err := ef.Parse(edi, ef.ParseJSONValidate, nil)
if err != nil {
    log.Fatal(err)
}
fmt.Println(string(output[:offset]))
fmt.Println(string(output[offset:]))
use edifabric_x12 as ef;

let serial = "YOUR_SERIAL_KEY";
ef::load_library(None)?;
ef::ensure_token(serial, 3600)?;
ef::set_map(&format!(r#"{{"default": "{serial}", "maps": {{}}}}"#))?;

let edi = std::fs::read("837P_Claim.txt")?;
let (output, offset) = ef::parse(&edi, ef::ParseMode::JsonValidate, None)?;
let transactions = &output[..offset];
let report = &output[offset..];
println!("{transactions}");
println!("{report}");
#include "edifabric_x12.h"

const char *serial = "YOUR_SERIAL_KEY";
ef_parse_result result;

if (ef_load_library(NULL) != 0)
    return 1;
ef_ensure_token(serial, 3600);
ef_set_map("{\"default\":\"YOUR_SERIAL_KEY\",\"maps\":{}}");

char *edi = read_file("837P_Claim.txt", NULL);   /* helper in example_all_functions.c */
if (ef_parse(edi, EF_PARSE_JSON_VALIDATE, NULL, &result) == 0) {
    /* transactions = output[0 .. offset), report = output[offset .. length) */
    fwrite(result.output.data, 1, (size_t)result.output.length, stdout);
    ef_free(result.output.data);
}

Official bindings for your language

Thin, idiomatic wrappers over the same C entry points, with the foreign function interface (FFI) code already written. Install one from your package manager and start translating X12 to JSON.
LanguageInstallBindingRepository
PythonPyPI: pip install edifabric-x12ctypes, handles the grow-and-retry bufferGitHub repository: edifabric-python-bindings
Node.jsnpm: npm install edifabric-x12koffi, Node.js 18+, TypeScript types, CommonJS or ES modulesGitHub repository: edifabric-nodejs-bindings
JavaMaven Central: com.edifabric:edifabric-x12-nativeJNA, plain Java methodsGitHub repository: edifabric-java-bindings
GoGo modules: go get github.com/EdiFabric/edifabric-go-bindingspurego, no cgo or C compiler, iterators for split and mergeGitHub repository: edifabric-go-bindings
Rustcrates.io: cargo add edifabric-x12Safe crate over libloading, returns ResultGitHub repository: edifabric-rust-bindings
C# and .NETNuGet: dotnet add package EdiFabric.Native.X12P/InvokeGitHub repository: edifabric-csharp-bindings
C and C++Download the library and include edifabric_x12.hThe reference header and the ABI every binding wrapsGitHub repository: edifabric-c-bindings

The packages bundle the library for Windows x64, Linux x64 and arm64, and macOS arm64, so one install command is all you need. Working in C++, PHP, Ruby, Swift, Kotlin or something else? Every binding calls the same handful of C entry points, so the C bindings document contains everything you need. Tell us which language you are on and we will help you wire it up.


Use it from Claude, Cursor and Copilot

The free ediFabric MCP server gives AI assistants the tools of ediFabric Native, running on your machine, so your EDI files never leave it. It works with Claude, Cursor, GitHub Copilot, Codex and any other client that supports the Model Context Protocol (MCP), and with the serial from any plan, including Community.
What your assistant can do
  • validate_edi: validate X12 and HIPAA files up to SNIP level 4 and explain each error
  • parse_edi and build_edi: convert EDI to JSON and back, to read or change a file
  • acknowledge_edi: generate a 999 or 997, with a TA1 when the interchange asks for one
  • split_edi: split a batch into one file per transaction
  • describe_spec: show any transaction's loops, segments, elements and codes, or a JSON skeleton to fill in
  • get_status: show the license, the models and the folders it may use
Add it to your assistant

In Claude Code, run:

claude mcp add edifabric -- npx -y @edifabric/mcp

In Cursor, VS Code and other clients, add it to the MCP settings:

{
  "mcpServers": {
    "edifabric": {
      "command": "npx",
      "args": ["-y", "@edifabric/mcp"],
      "env": { "EDIFABRIC_SERIAL": "YOUR_SERIAL" }
    }
  }
}

Needs Node.js 18 or later. Claude Desktop installs it from a one-click bundle without Node.js. Without a serial, it uses the demo serial.


ediFabric Native comes with every plan

Every plan includes ediFabric .NET, ediFabric Native and ediFabric Cloud. Choose Native when a C FFI suits your stack; the price is the same whichever product you use.
Included in every plan
Free forever to start

Community costs nothing and never expires, giving you unlimited operations for the first 14 days, then 250 a day, and three leased seats for non-production work. Need more time? Ask support to extend the unlimited period. Developer and Enterprise lift the quota, Enterprise lifts the seat count, and all three include the same library.

X12 and HIPAA today
More standards to follow

Native is the newest of the three and covers X12 and HIPAA, with the remaining standards being released one at a time. If you need EDIFACT, HL7, NCPDP or flat files right now, use ediFabric .NET or ediFabric Cloud — your plan already includes them.

Your EDI data is safe
Data stays with you

Every operation runs inside your own process, on your own hardware. EDI data and PHI stay on your systems, so Native sits entirely within the controls you already have in place for HIPAA or SOC 2.

Start translating X12 today

Drop the library next to your binary, authorize it with your serial key, and translate your first interchange in minutes. The free Community plan needs no credit card, never expires, and has unlimited operations for the first 14 days. To try it without an account, use the demo serial key bd96a836feca45cb91c86ee65d281f52.