lmgallery reference
Reference tables for lmgallery CLI workflows, test flags, manifest schemas, host output conventions, featured host catalog, and exit codes.
Test and maintenance commands
| Command | Flags | Description |
|---|---|---|
| ./test.sh | (none) | Validate PNG/GIF headers, CRCs, decoded dimensions, preview size budgets, SHA-256 attribution, cross-host bindings, autorun captions, and local links |
| ./test.sh | --network | Also verify published HTTP links and raw GitHub URLs |
| ./test.sh | --run | Execute all 50 local composition scripts in fresh temporary directories |
| ./test.sh | --urls | Execute all 50 public raw GitHub URLs with lmctl in fresh temporary directories |
| ./examples/render-all.sh | (none) | Run all 50 compositions in temporary directories and copy outputs to docs/images/ |
| ./examples/render-all.sh | --only NN | Regenerate a single showcase preview by its two-digit number (01 to 50) |
| python3 scripts/build-readme.py | (none) | Regenerate README.md, examples/README.md, and docs/ATTRIBUTION.md from catalog.json and showcases.json |
Featured hosts in catalog.json
| Host | Domain | Upstream repository |
|---|---|---|
| lmplot | 2D and 3D plots, surfaces, and multiplot dashboards | https://github.com/lmctl-ai/lmplot |
| lmnum | Numerical computing, Eigen linear algebra, and SUNDIALS ODE/nonlinear solvers | https://github.com/lmctl-ai/lmnum |
| lmfinance | Financial models, yield curves, cashflows, and option pricing | https://github.com/lmctl-ai/lmfinance |
| lmspace | Orbital mechanics, Kepler propagation, and transfer maneuvers | https://github.com/lmctl-ai/lmspace |
| lmphysics | Rigid-body mechanics, constraints, and force balance simulations | https://github.com/lmctl-ai/lmphysics |
| lmbio | Biochemical reaction networks, enzyme kinetics, and pharmacokinetics | https://github.com/lmctl-ai/lmbio |
| lmfluid | Fluid dynamics and 2D finite-element PDE solvers | https://github.com/lmctl-ai/lmfluid |
| lmmolecule | OpenMM molecular dynamics, lattices, water models, and thermostats | https://github.com/lmctl-ai/lmmolecule |
| lmcell | Multicellular agent-based growth, division, and motility simulations | https://github.com/lmctl-ai/lmcell |
| lmparticle | Photon and particle radiation transport, attenuation, and shielding | https://github.com/lmctl-ai/lmparticle |
| lmweather | Shallow-water atmospheric dynamics, geostrophic adjustment, and gravity waves | https://github.com/lmctl-ai/lmweather |
| lmdraw | Annotated 2D vector diagrams and schematic rendering | https://github.com/lmctl-ai/lmdraw |
| lmcad | Parametric 3D OpenCASCADE solids, meshes, and shaded renders | https://github.com/lmctl-ai/lmcad |
| lmblender | Path-traced 3D scenes and materials | https://github.com/lmctl-ai/lmblender |
| lmimg | Procedural color and raster image processing (preview) | https://github.com/lmctl-ai/lmimg |
| lmaudio | Audio synthesis, filtering, and spectral analysis (preview) | https://github.com/lmctl-ai/lmaudio |
Additional composition hosts
| Host | Role in showcase compositions (01 to 50) |
|---|---|
| lmvideo | Renders charts, contact sheets, 3D scenes, terminal captures, and animations in compositions 02, 05, 11, 13, 14, 26-31, and 33-50 |
| lmoffice | Generates DOCX reports, XLSX workbooks, and PPTX slide decks in compositions 26-31 and 34-50 |
| lmpdf | Renders PDF documents and page raster previews in compositions 43-46, 49, and 50 |
| lmhtml | Audits HTML documents and link integrity in compositions 36 and 46 |
| lmssl | Inspects X.509 certificates and TLS inventories in compositions 37 and 46 |
| lmcloud | Evaluates infrastructure plans and applied state in composition 49 |
Cross-host tabular output formats
| Producer host | Method | Delimiter | Header row |
|---|---|---|---|
| lmnum | save_csv(path) | Space | None |
| lmspace | save_csv(path) | Comma | None |
| lmphysics | save_csv(path) | Comma | Yes (body.column names) |
| lmfluid | sample(...).save_csv(path) | Comma | None (x,y,0,value) |
Exit codes
| Code | Source | Meaning |
|---|---|---|
| 0 | test.sh / lmctl / native hosts | All checks or composition blocks succeeded |
| Nonzero | test.sh / scripts | Integrity check, link verification, or composition test failed |
| 2 | test.sh / native lmcode host | Unknown test.sh flag (usage message), or host CLI usage error or metadata flag query |
| 3 | Native lmcode host | Bytecode load error, runtime exception, or memory budget exceeded |
| 4 | Native lmcode host | Application assertion or output verification failure |