dotFactory
Documentation / Start here

Getting started

Start here

Create an account, upload a factory, fire a trigger and read the Run.

This page takes you from an empty account to a finished Run through the web app. The same steps have command-line equivalents, noted at the end.

1. Create an account

Open /signup and sign up with an email address and a password. A GitHub account can also sign in, if the deployment has the GitHub App configured (GitHub covers the difference between signing in and connecting repositories).

An account owns the factories it creates and sees the factories it is invited to. Your dashboard lists both, with each factory's last Run, schedule state and runnability.

2. Create a factory

On the dashboard, type a name and choose Create. A factory starts with no versions; it is a folder for them, not yet a workflow.

Open the factory and go to Versions. The editor expects:

  • a root module path (default factory.fct);
  • every module the root imports, plus the content of every file "…" it references.

Paste the files and choose Upload. Uploading identical content again is a no-op; any change produces a new immutable version and a new digest. The factory page then shows the current version's flow, definition and declared types.

type Ticket = { key: text, title: text }

trigger start:
  kind: manual
  out: { ticket: Ticket }

step draft:
  runner: agent
  in:  { prompt: "Draft a reply for the ticket.", ticket: start.ticket }
  out: { text: text }

agent is a runner kind the deployment must implement. If it does not, the factory uploads and renders but is marked not runnable, with the missing adapters listed above the flow. That is a deployment gap, not a syntax error.

3. Fire a trigger

Each trigger on the factory page has a link. A manual trigger opens a form built from its out: ports — records become field groups — and Fire admits the Run. A cron trigger shows its expression, the server time and the next fire, and has a Pause/Resume control. A github trigger shows the webhook endpoint and the events it accepts; it fires when GitHub delivers a signed event.

Admission returns a Run id immediately. Execution happens in the data plane, so a Run sits in queued until a worker claims it.

4. Read the Run

The Run page opens on the flow: the same diagram as the factory, with the fired trigger highlighted and each node's outcome. Below it:

  • Effects — one row per effect step, with its summary and any locator (a URL, path or commit). A node that did nothing yet stays neutral.
  • Nodes — each step's status, timing and output ports. Selecting a node narrows the log and trace to it (?node= in the URL); opening its output keeps the recorded values to hand.
  • Values — recorded outputs, behind an explicit Reveal. Secrets are redacted server-side and never reach the browser.

A queued or running Run can be stopped by an operator. A queued Run ends without executing; a started Run aborts at the next scheduling step, and the abort is recorded. Details are in Runs.

5. Keep it running

A deployment needs the API, a scheduler, and at least one worker. The provided Docker Compose configuration starts each process against the same database. The scheduler discovers the stored factories' cron triggers.

Create factories in the application, then upload a version or link a repository. Every factory has an owner. See The JSON API for HTTP access.

Your factories

Your factories will appear here. Create one and open it beside this guide.