Skip to content

Getting started

Weftra is a visual builder for agent and RAG flows. It imports and exports flows as JSON, runs them on a Rust engine, and serves them over a REST API. Everything is stored in one SQLite file.

Weftra is pre-alpha. There are no release packages yet, so you build it from source.

  • A Rust toolchain. The workspace declares Rust 1.85 as its minimum. CI builds with 1.100.
  • Node.js and npm, to build the web studio. The Docker build uses Node 22.
  • Git.

You do not need Python.

git clone https://github.com/Liceron/weftra && cd weftra
(cd weftra/web && npm ci && npm run build)
cargo run --release -p weftra-server --bin weftra -- --static-dir weftra/web/dist --starters-dir weftra/fixtures/starters
  • --static-dir serves the studio you just built. The server does not embed the web assets in the binary.
  • --starters-dir loads the 27 starter flows as templates.

The server listens on 127.0.0.1:7860. Open http://localhost:7860.

  • On a loopback address, auto-login is on. You act as the superuser and there is no login screen.
  • Data goes to ~/.weftra/. That folder holds the database weftra.db, uploaded files/, and secret.key, which encrypts stored credentials and signs session tokens. Use --data-dir to put all three somewhere else.
  • The full built-in component catalog is registered (the default builtin-components feature).

Add --fake-models to route every model and embedding component through Weftra’s offline fake provider. This is useful for trying templates and checking wiring before you add real keys.

cargo run --release -p weftra-server --bin weftra -- --static-dir weftra/web/dist --starters-dir weftra/fixtures/starters --fake-models
  1. On the home page, under Start something new, pick a template card. Show all 27 templates expands the list. You can also start from a Blank flow, or use Import Langflow JSON.
  2. The flow opens in the editor. Components come from the palette on the left, and the canvas is in the middle.
  3. If a model component needs an API key, store the key as a variable first. Go to Variables & API keys in the home navigation and add a variable of type Credential. Name it as the field expects, for example OPENAI_API_KEY. In the component, use the field’s Use a global variable picker. Credential values are encrypted and never shown again.
  4. Press Run in the top bar, or Ctrl+Enter.

Each component shows a status chip: queued, running, the server-measured duration when it finishes, or an error. Click a chip to see that component’s output next to it.

Open Playground in the top bar. The panel sends your message to the flow’s Chat Input and streams the reply back. The flow needs a Chat Input component.

Sessions are listed at the top of the panel. Default session uses the flow id. The + button starts a new session. See Playground and sessions.

Open Run log in the top bar. It opens by itself on every run. The Run tab is a waterfall with one bar per component, positioned by the server’s own timestamps. Outputs shows what the selected component produced. Logs shows errors and log lines. See Running and debugging.

The API button in the editor shows curl, Python and JavaScript snippets for your flow. The curl version looks like this:

curl -X POST 'http://localhost:7860/api/v1/run/<flow id>' \
-H 'Content-Type: application/json' \
-d '{"input_value": "Hello", "input_type": "chat", "output_type": "chat", "session_id": "my-session"}'

Weftra is open source under Apache-2.0. Made by Liceron.