All kits

Car parts kit

Examplev2.0.0

A small teaching catalog of parts, vehicles and fitments. The Cruxible guides use it for every worked example.

$ cruxible kit add car-parts
Source on GitHub Quickstart

It previews first and writes nothing. Add --commit --at ID with the id it prints to propose the kit.

4kinds19fields1named queryNames under catalog.

Ontology

4 kinds, 19 fields
decision5 fieldsnote3 fieldspart7 fieldsvehicle4 fields

A field on one kind names a Subject of anotherSelect a kind to open its fields

In the Python SDK

update_catalog.py
from cruxible_client import Cruxible

cx = Cruxible.connect()
w = cx.world()  # the accepted vocabulary, as Python objects

part = w.catalog.part["bp-1142"]
part.set(title="Front brake pads, semi-metallic", because="Acme's corrected box label.")

# a new part and the link to it land as one change set
rotor = w.catalog.part.define("rt-500", title="Front brake rotor", category="brakes")
w.write(rotor, part.edit().add(replaces=rotor), because="New rotor line from Acme's 2026 list.")

# which parts fit one car
fits = cx.query(name="catalog.parts_for_vehicle", params={"vehicle": "honda-civic-2019"})

Questions to ask it first

  • Which parts fit this car?

    catalog.parts_for_vehicle

  • What is a part, and what does it replace?

    cruxible query catalog.part --select title,category,replaces

  • Which notes are about a part?

    cruxible query catalog.part --follow-in catalog.note.about:note --select title,note.title

Full manifest reference