Data mapping, open source.
The engine that turns one shape of JSON into another inside every SpanFlow pipeline is open source. Use it in your own .NET code from NuGet, run the visual mapping designer on your own machine, or try it right now in the hosted playground and its JSON mapping API.
The playground and the mapping API
No account, no key, nothing to install. Both run on our own server, with fair-use limits per caller.
Design in the browser
Open mapping.spanflow.app and draw the mapping: Source, Target, Transform, Filter, Join, For Each, Group By and more, all built in. Paste a sample, run it and see every node's output. Your work stays in your browser; Save Pipeline writes it to a file.
- The same designer as the Studio's Mapping tab
- The mapping it produces is the JSON the engine runs
- Nothing to sign in to
Call it from code
POST a mapping and its input to https://mapping.spanflow.app/ and get the output back:
curl -X POST https://mapping.spanflow.app/ \
-H "Content-Type: application/json" \
-d '{
"mapping": { "target": { "type": "object", "mappings": [
{ "target": "employeeId", "from": "input.id" },
{ "target": "name", "from": "input.fullName" },
{ "target": "annualSalary", "from": "input.salary" }
] } },
"inputObject": { "id": 101, "fullName": "Alice Smith", "salary": 75000 }
}' { "employeeId": 101, "name": "Alice Smith", "annualSalary": 75000 }
Calls are limited per caller (per minute and per hour) and in size. A refusal answers with
{ "error", "reason" }, a Retry-After when you are over the rate, and
RateLimit-* headers on every answer.
The engine in your own .NET code
MIT-licensed. Targets .NET Standard 2.0, .NET 8, 9 and 10, so it also runs on .NET Framework 4.7.2 and later.
SpanFlow.Mapping.Core
The mapping model and its validation.
dotnet add package SpanFlow.Mapping.Core SpanFlow.Mapping.Engine
Runs a mapping: turns one shape of JSON into another.
dotnet add package SpanFlow.Mapping.Engine Run a mapping
using System.Text.Json;
using System.Text.Json.Nodes;
using SpanFlow.Mapping.Core.Models;
using SpanFlow.Mapping.Engine;
var options = new JsonSerializerOptions { PropertyNameCaseInsensitive = true };
var mapping = JsonSerializer.Deserialize<MappingDefinition>(File.ReadAllText("mapping.json"), options)!;
var input = JsonNode.Parse(File.ReadAllText("input.json"));
JsonNode output = new MappingEngine().Execute(mapping, input);
Console.WriteLine(output.ToJsonString()); The designer on your own machine
One Docker image: the mapping designer and its API. No database, no sign-in, nothing else to install.
Run it
docker run -p 8080:8080 ghcr.io/spanflow/mapping-designer Then open http://localhost:8080. Every endpoint is open, so keep it on your machine or behind your own sign-in.
Read the source
The engine, its tests, the designer API and the designer page are on GitHub. The two mapping libraries are MIT-licensed; the rest of the repository is under the Functional Source License, which becomes Apache 2.0 after two years.
github.com/SpanFlow/spanflowStop moving data by hand.
Start free with three projects, or talk to us about running it across your organisation.