Import existing flows
You can import flow files into Weftra and export them again. Weftra reads JSON and ZIP files, including flows saved as Langflow JSON.
Import flows
Section titled “Import flows”In the studio, use Import Langflow JSON on the home page. It accepts .json and .zip files, and you can pick several files at once.
The same import is available over the API:
POST /api/v1/flows/upload/(multipart fieldfile) takes a JSON file with{flow}or{flows}, a bare graph, a component, or a ZIP of such files.POST /api/v1/projects/upload/takes a project ZIP or JSON.
ZIP uploads are limited to 100 entries and 50 MiB uncompressed. Only .json entries are read, and absolute or .. paths are refused.
What is kept
Section titled “What is kept”- The whole flow file. Layout, notes, component settings and wires are kept. Keys Weftra does not know are kept too and written back on export. Explicit
nulls staynull. - Component keys. Each node’s type key (
data.type) selects the component. Older keys, such asPrompt,parserorIf-Else, are accepted as aliases. - Node icons. The studio resolves each node’s own
iconfield, so imported flows keep their icons. - Group nodes. Groups in imported flows are expanded by the engine before a run. The studio cannot create groups yet.
Export flows
Section titled “Export flows”In the editor, use Export as Langflow JSON. Over the API, use POST /api/v1/flows/download/. One id returns the flow JSON. Several ids return a ZIP.
What happens with an unknown component
Section titled “What happens with an unknown component”Weftra does not run the Python code stored in a flow. A node whose type Weftra does not have still imports, and still exports unchanged. When you run the flow, that node fails with:
component 'X' is not available in WeftraThe message may also include the component’s module. In the studio, a run continues around the failure: the failing component ends only its own branch, and the other components still run. POST /api/v1/run stops at the first failure and returns the error.
To see which components are available, check the component list. It has about 265 built-in components.
Replace a missing component
Section titled “Replace a missing component”You have two ways to fix a node that fails this way:
- Replace the node. Delete it in the editor, add a built-in component that does the same job, and reconnect its wires.
- Add the component yourself. Write a compiled Rust component, register an external component worker, or turn on the opt-in Python bridge (
WEFTRA_PYTHON_COMPONENTS) to run the Python code stored in the node. The Python bridge is off by default and is not a sandbox. See Custom components.
Limits
Section titled “Limits”- Weftra stores data in SQLite only.
POST /api/v1/validate/codealways answers “not supported” unless the Python bridge is on.
See Status and roadmap for the full list of gaps.
Weftra is open source under Apache-2.0. Made by Liceron.