Skip to content
1 viewer
View

Fab reference

3 pages, 29 routes, 27 connections and 0 CLI commands, generated from the declarations of Fab without reading storage or running anything.

AboutCode

Code · 0 files

No ingested source sits in a crate named for this app. Either its crate has not been ingested, or the app's name does not match its crate.

Pages · 7

Declared views
PageView idRoleRouteOrderParentEntityNavigation
Listfab.indexlist/view/fab/list0FabJobin navigation
Job replayfab.itemdetail/view/fab/{job_id}10fab.indexFabJobhidden
Transparency & prooffab.proofdetail/view/fab/proof/{job_id}20fab.indexFabJobhidden
Machinefab.machinedetail/view/fab/machine/{machine_id}30fab.machinesFabMachinehidden
Machinesfab.machineslist/view/fab/machines30FabMachinein navigation
Print farmfab.farmlist/view/fab/farm40FabFarmin navigation
Farmfab.farmdetail/view/fab/farm/{farm_id}40fab.farmFabFarmhidden
7 rows

Connections · 27

Fab.FarmEnsure

Register a print farm: a row of simulated printers (16 by default), each on its own Transport `3d_print` station so any of them claims the next production job. A farm only grows, and only its operator changes it.

Fab.FarmEnsure input
FieldTypeRequiredDescriptionAllowed
farm_idoptional
nameoptional
baysoptional
actoroptional
4 rows
Calls and output
  • Output keyfab.result
  • Classificationreal
  • POST /fab/farmHTTP route

Fab.FarmOrder

Put a saved Shape design on sale at a print farm: list it on the local catalog, priced from its slicer estimate at the bays' declared rates, on the farm's shop, as the farm's operator. Returns the product page where a buyer pays and chooses a printed part shipped to them or a virtual part in their wallet.

Fab.FarmOrder input
FieldTypeRequiredDescriptionAllowed
shape_idrequired
farm_idoptional
actoroptional
3 rows
Calls and output
  • Output keyfab.result
  • Classificationreal
  • POST /fab/farm/orderHTTP route

Fab.FarmStatus

Read a farm and what each bay is printing, without advancing anything.

Fab.FarmStatus input
FieldTypeRequiredDescriptionAllowed
farm_idoptional
1 row
Calls and output
  • Output keyfab.result
  • Classificationreal
  • GET /fab/farm/statusHTTP route

Fab.FarmTick

Advance every bay of a farm by one production step (Fab.ProductionRun per bay) and report each bay's phase.

Fab.FarmTick input
FieldTypeRequiredDescriptionAllowed
farm_idoptional
wait_msoptional
settingsoptional
max_reprintsoptional
actoroptional
5 rows
Calls and output
  • Output keyfab.result
  • Classificationreal
  • POST /fab/farm/tickHTTP route

Fab.JobActivity

A job's metered plan (filament, energy, time, layers) and its fab.activity.v1 record: one leaf per command with its frames, inputs and the controller's acknowledgement. `line` returns that command's leaf with a Merkle inclusion proof.

Fab.JobActivity input
FieldTypeRequiredDescriptionAllowed
job_idrequired
offsetoptional
limitoptional
lineoptional
4 rows
Calls and output
  • Output keyfab.result
  • Classificationroute_handler
  • GET /fab/job/activityHTTP route

Fab.JobCreate

Run G-code through the provable CRE8VM gcode language; the resulting fab.motion.v1 frames stream to the CRE8VIRTUAL machine twin and the run books a Manufacture step (machine-linked, chain/ir hashes in metadata). A job for a registered CNC router or laser (machine_id, or dialect grbl | grblhal | fluidnc) starts from a state header in its controller's dialect with no axis placed; a printer job runs as written. A trace larger than one proving-grade run runs as chained slices whose chain hashes fold into the job's.

Fab.JobCreate input
FieldTypeRequiredDescriptionAllowed
gcoderequired
machine_idoptional
dialectoptional
titleoptional
actoroptional
5 rows
Calls and output
  • Output keyfab.result
  • Classificationreal
  • POST /fab/jobHTTP route

Fab.JobGet

Fetch one fab job including its full fab.motion.v1 frames.

Fab.JobGet input
FieldTypeRequiredDescriptionAllowed
job_idrequired
1 row
Calls and output
  • Output keyfab.result
  • Classificationroute_handler
  • GET /fab/job/getHTTP route

Fab.JobList

List fab jobs (newest first) with frame counts + hashes.

Calls and output
  • Output keyfab.result
  • Classificationroute_handler
  • GET /fab/jobsHTTP route

Fab.JobPreflight

Check a job's proven motion trace against a registered machine: every axis placed from the origin its frame names (the declared work offset, machine coordinates, or another work system's offset) inside the envelope, per-axis feed, spindle or laser S, tools against the tool table, and a run-time estimate. On CNC and laser it refuses every CRE8VM diagnostic code, moves to positions the trace cannot place, a trace not created for the controller, and canned cycles off grblHAL. The verdict is canonical JSON hashed to preflight_sha256, bound to the chain hash, machine id and revision. Owner-gated.

Fab.JobPreflight input
FieldTypeRequiredDescriptionAllowed
job_idrequired
machine_idrequired
work_offsetoptional
wcs_offsetsoptional
use_live_offsetoptional
actoroptional
6 rows
Calls and output
  • Output keyfab.result
  • Classificationreal
  • POST /fab/job/preflightHTTP route

Fab.JobProve

Bind a real Winterfell hash-chain + PIS STARK proof to each run of a fab job's motion trace (one per slice, on a worker thread). Requires the fab `stark-prove` feature (enables cre8-vm/zk-stark); without it the STARK tier reports unavailable and the always-on Fab.JobVerify replay-determinism check is the proof. Each bundle is re-verified in-process and written for offline `cre8vm verify-proof`.

Fab.JobProve input
FieldTypeRequiredDescriptionAllowed
job_idrequired
1 row
Calls and output
  • Output keyfab.result
  • Classificationreal
  • POST /fab/job/proveHTTP route

Fab.JobSend

Stream a fab job's G-code to a real machine over the device app's serial streamer (Marlin/GRBL ack flow control; simulator://gcode for the offline seam). Acked source lines mirror back onto the provable frames and drive a second in-world twin that tracks the REAL machine's progress. A registered CNC router or laser streams only after a passing Fab.JobPreflight for this chain hash and its current revision, a confirmed arming checklist, and a controller still in the job's start work system with the offsets the pre-flight placed it with; there is no override. The run seals a flat machine receipt (kind fab_gcode) on the job.

Fab.JobSend input
FieldTypeRequiredDescriptionAllowed
job_idrequired
machine_idoptional
endpointoptional
dialectoptional
baudoptional
fake_ack_msoptional
armingoptional
pause_onoptional
check_firstoptional
status_poll_msoptional
actoroptional
11 rows
Calls and output
  • Output keyfab.result
  • Classificationreal
  • POST /fab/job/sendHTTP route

Fab.JobVerify

Fab.JobVerify input
FieldTypeRequiredDescriptionAllowed
job_idrequired
1 row
Calls and output
  • Output keyfab.result
  • Classificationunclassified
  • POST /fab/job/verifyHTTP route

Fab.MachineControl

Hold, resume, stop or continue a live stream (by machine_id or job_id) through Device.GcodeStreamControl. Owner-gated. The web Stop is not an emergency stop.

Fab.MachineControl input
FieldTypeRequiredDescriptionAllowed
machine_idoptional
job_idoptional
controlrequired
actoroptional
4 rows
Calls and output
  • Output keyfab.result
  • Classificationreal
  • POST /fab/machine/controlHTTP route

Fab.MachineGet

Fetch one machine profile and its active job, if any.

Fab.MachineGet input
FieldTypeRequiredDescriptionAllowed
machine_idrequired
1 row
Calls and output
  • Output keyfab.result
  • Classificationroute_handler
  • GET /fab/machine/getHTTP route

Fab.MachineJog

One relative jog (at most 10 mm per axis, feed capped) through Device.GcodeJog, refused while a job streams. Owner-gated.

Fab.MachineJog input
FieldTypeRequiredDescriptionAllowed
machine_idrequired
dxoptional
dyoptional
dzoptional
axisoptional
stepoptional
directionoptional
feedoptional
actoroptional
9 rows
Calls and output
  • Output keyfab.result
  • Classificationreal
  • POST /fab/machine/jogHTTP route

Fab.MachineList

List registered machine profiles (the port only for its owner).

Calls and output
  • Output keyfab.result
  • Classificationroute_handler
  • GET /fab/machinesHTTP route

Fab.MachineStatus

The machine's live controller status for its owner (Device.GcodeMachineStatus, or the running stream); the last known status for anyone else.

Fab.MachineStatus input
FieldTypeRequiredDescriptionAllowed
machine_idrequired
1 row
Calls and output
  • Output keyfab.result
  • Classificationroute_handler
  • GET /fab/machine/statusHTTP route
  • POST /fab/machine/status/readHTTP route

Fab.MachineTwin

Register or update a printer's virtual twin ({machine_id}-twin: the same bed, feeds, nozzle, filament, kinematics, rates, spool and owner on simulator://printer) and say whether the real printer is connected now (a simulator always is, a serial port when the device scan lists it, a network endpoint is unknown until a send tries it).

Fab.MachineTwin input
FieldTypeRequiredDescriptionAllowed
machine_idrequired
1 row
Calls and output
  • Output keyfab.result
  • Classificationreal
  • POST /fab/machine/twinHTTP route

Fab.MachineUpsert

Register or edit a machine profile (kind, controller, port, envelope, feeds, spindle or laser maximum, tool table, station). Every change bumps the revision, which strands earlier pre-flights. A CNC router, laser or other strict machine needs an owner; edits are owner-gated.

Fab.MachineUpsert input
FieldTypeRequiredDescriptionAllowed
machine_idoptional
nameoptional
kindoptional
dialectoptional
endpointoptional
baudoptional
travel_mmoptional
envelope_min_mmoptional
max_feed_mm_minoptional
max_spindle_rpmoptional
laser_max_soptional
has_homingoptional
has_probeoptional
toolsoptional
tools_textoptional
station_idoptional
twin_processoptional
kinematicsoptional
meteroptional
materialoptional
filament_diameter_mmoptional
density_g_cm3optional
nozzle_diameter_mmoptional
cost_per_kg_minoroptional
laser_max_power_woptional
spindle_power_woptional
owneroptional
clearoptional
actoroptional
29 rows
Calls and output
  • Output keyfab.result
  • Classificationreal
  • POST /fab/machineHTTP route

Fab.MachineZero

Set work zero on the named axes through Device.GcodeSetZero, refused while a job streams; strands every earlier pre-flight on the machine. Owner-gated.

Fab.MachineZero input
FieldTypeRequiredDescriptionAllowed
machine_idrequired
axesrequired
actoroptional
3 rows
Calls and output
  • Output keyfab.result
  • Classificationreal
  • POST /fab/machine/zeroHTTP route

Fab.OrderRun

Print a build order's ready print jobs on a machine: read the order, slice the next ready job's print file, stream it, and settle the run onto the order from the Manufacture step the fab job booked. Each call does the next step that is ready and returns; a print still running is handed back as `fab_job_id` and `job` to pass in again. Only a simulated machine finishes inside one call.

Fab.OrderRun input
FieldTypeRequiredDescriptionAllowed
order_idrequired
machine_idrequired
printsoptional
fab_job_idoptional
joboptional
settingsoptional
max_reprintsoptional
wait_msoptional
actoroptional
9 rows
Calls and output
  • Output keyfab.result
  • Classificationreal
  • POST /fab/order/runHTTP route

Fab.ProductionRun

Make one local production job on a station's machine: claim it from the transport queue, slice (or take) its print file, create and stream the fab job, and advance the production job to qc with the fab_gcode machine receipt, which carries the activity root. Each call does the next step that is ready and returns; call again (or let the stream pump run) until `phase` is `made`. Only a simulated machine runs unattended.

Fab.ProductionRun input
FieldTypeRequiredDescriptionAllowed
production_job_idoptional
order_idoptional
station_idoptional
machine_idoptional
settingsoptional
max_reprintsoptional
actoroptional
7 rows
Calls and output
  • Output keyfab.result
  • Classificationreal
  • POST /fab/production/runHTTP route

Fab.Slice

Slice a closed mesh (a primitive spec such as cube:20, or an STL) into Marlin G-code: walls, 45/135 degree fill, solid floors and roofs. The build volume and nozzle come from the named machine. Creates a fab job from the G-code unless create_job is false. No supports, bridges or brims.

Fab.Slice input
FieldTypeRequiredDescriptionAllowed
meshoptional
stl_base64optional
stloptional
settingsoptional
machine_idoptional
titleoptional
create_joboptional
actoroptional
8 rows
Calls and output
  • Output keyfab.result
  • Classificationreal
  • POST /fab/sliceHTTP route

Fab.Status

Fab subsystem health: job count + trace schema.

Calls and output
  • Output keyfab.result
  • Classificationroute_handler
  • GET /fab/statusHTTP route

Fab.StreamPump

Fab.StreamPump input
FieldTypeRequiredDescriptionAllowed
job_idoptional
1 row
Calls and output
  • Output keyfab.result
  • Classificationunclassified
  • POST /fab/stream/pumpHTTP route

Fab.ViewPatch

Fab.ViewPatch input
FieldTypeRequiredDescriptionAllowed
actionoptional
job_idoptional
scopeoptional
machine_idoptional
4 rows
Calls and output
  • Output keyfab.result
  • Classificationunclassified
  • GET /fab/document/patchHTTP route

Fab.VirtualPrinterEnsure

Register the built-in virtual printer (a 220 x 220 x 250 mm Marlin machine on the device app's simulator://printer, metered as 1.75 mm PLA) if it is not registered, and return its profile. An existing profile is returned as it stands.

Calls and output
  • Output keyfab.result
  • Classificationreal
  • POST /fab/machine/virtual-printerHTTP route

Other routes · 1

Routes without a connection
MethodPathKind
GET/fab/twin/{file}raw handler
1 row

Schema and data model

Declared storage and kinds. Linked kinds open their app pages.

Declared storage
  • Authorityhyper
  • Preferred truthhyper
  • App ownerFab
  • SQL projectionnone · DDL declarations: 0
Hyper vertex kinds read
Hyper vertex kinds written
Hyper edge kinds written
  • None declared.
Asset namespaces read
  • None declared.
Asset namespaces minted
  • None declared.
Model warnings
  • No model warnings were reported.

Capabilities and dependencies

Depends on
  • Manufacture

Structure review · 4

Errors · 2
Warnings · 2