Skip to content

Maker BOM format

One JSON document that holds a build: its assemblies, what each one requires, the parts that fill the requirements, and where to buy them. Maker BOM exports it, imports it, and serves it for every shared build. Any tool may read and write it.

What it is

A Maker BOM document is one JSON object with "format": "builderbom" and "version": 1. It describes one build. Assemblies, requirements, and parts point at each other with a ref that is unique in that document; a reference is never a database id and means nothing outside the document.

A reader ignores fields it does not know. A writer leaves out what it does not have. Decimals are strings such as "0.25"; readers also accept JSON numbers. Times are ISO 8601 in UTC. Text is plain text, and links are http or https only. The smallest valid document is below.

The smallest document
{
  "format": "builderbom",
  "version": 1,
  "build": {
    "title": "Bench lamp"
  },
  "assemblies": [],
  "requirements": [
    {
      "inclusion": "required",
      "name": "LED strip",
      "quantity": "1",
      "ref": "r1",
      "unit": "m"
    }
  ],
  "parts": []
}

The document

The top level names the format and holds four sections of the build.

format string required
Always builderbom.
version integer required
1. It changes only for a change an older reader would misread.
exported_at date-time
When the document was written.
build object required
title (required, 1 to 200 characters) and description (plain text, line breaks kept). A maker's own export adds build_label and build_count.
assemblies array of assembly required
Assemblies in display order; nesting comes from parent.
requirements array of requirement required
Requirements in display order within their assembly.
parts array of part required
Every part a requirement or a substitute refers to.
shared object
Present when the document was shared at a link: url and shared_at (required), revision, author, and license, a terms or credit line in the author's words that Maker BOM gives no legal meaning.
derived_from object
Present when the shared build was itself copied from a shared build: title, author, and url of the immediate origin only, never a chain. Older readers ignore it.
records object never in a shared document
The app's own record ids, versions, and source references behind each reference, so a re-import into the same build matches.
status object never in a shared document
Computed coverage per requirement.
orders object never in a shared document
Allocations per requirement.
comments array never in a shared document
Comments and questions.
history array never in a shared document
Activity on the build.
revision object never in a shared document
The saved revision of a revision export.

Assembly

A part of the build that can repeat, such as an axis or a board.

ref string required
Its reference.
parent reference or null
The enclosing assembly; null at the top.
name string required
Such as Y-axis rail assembly.
description string or null
Notes about the assembly.
multiplier integer, at least 1 required
How many of it one build has. Quantities inside multiply by it.
path string
Names from the top joined with / , for display.

Requirement

One thing the build needs, such as six rail screws.

ref string required
Its reference.
assembly reference or null
Its assembly; null at the top.
name string required
What is needed.
quantity decimal string or null
Units for one instance of its assembly. Null while it is not decided.
unit string required
Such as pcs, m, or g.
spares decimal string
Extra units, added once.
inclusion string required
Whether the build needs it. dnp (do not populate) needs nothing. One of requiredoptionaldnp
inclusion_reason string or null
Why it is optional or excluded. Only when the author included notes.
supply string
How the author gets it. fabricated means it is made for the build. One of purchaseon_handsalvagedfabricatedsuppliedkit
references array of string
Reference designators, such as R1.
tags array of string
Free labels.
category string or null
Such as Fasteners.
attributes object of strings
Such as value or footprint.
Drawings and files: label and an http(s) url.
part reference or null
The chosen part; null while the choice is open.
substitutes array of substitute
Accepted and proposed substitutes.
notes string or null
Only when the author included notes.
purpose string or null
What it does; with the notes.

Part and substitute

A part is what fills a requirement. With manufacturer and mpn it identifies the same part across accounts; an import reuses a part the reader already has by manufacturer part number.

ref string required
Its reference.
name string required
Such as 10k resistor 0603.
manufacturer string or null
Such as Yageo.
mpn string or null
The manufacturer part number.
description string or null
A short description.
category string or null
Such as Resistors.
attributes object of strings
Specifications as pairs.
Datasheets: label and an http(s) url.
sources array of source
Suggested places to buy it.
part reference required
The substitute part.
status string required
accepted: it became the chosen part. One of proposedaccepted
rationale string or null
Why it is a good substitute. Only when the author included notes.
trade_offs string or null
What it costs or changes. Only when the author included notes.
replaces reference or null
For an accepted one, the part it replaced.

Source and price

A source is where the author suggests buying a part. A price is what the author saw on a date; a shared document carries it only when the author included prices.

supplier string required
Such as LCSC.
url http(s) address or null
The product page.
sku string or null
The supplier's number, kept as text.
pack_size decimal string required
Units per pack.
min_order_quantity decimal string or null
Fewest packs per order.
order_increment decimal string or null
Packs are ordered in multiples of this.
preferred boolean
The source the author prefers.
price decimal string or null
Price per pack, with the prices option.
currency three-letter code or null
The price's currency.
observed_at date-time or null
When the author saw the price.

Quantities

A requirement states the quantity for one instance of its assembly. What a number of builds needs is that quantity, times the multiplier of its assembly and of every assembly above it, times the number of builds, plus the spares. Spares are added once.

6
screws per Y-axis rail assembly
× 2
rail assemblies per build
× 3
builds
+ 2
spare
38
screws required

A requirement with inclusion dnp requires nothing whatever its quantity says. A requirement with no quantity has no total.

The CSV

Every shared build also has a CSV address with one row per requirement, assemblies first in outline order. ?builds=N (1 to 10,000) sets the number of builds for the Multiplier and Total columns. A cell a spreadsheet would run as a formula starts with a single quote. Price, Currency, and Notes are empty when the author left them out; substitutes and other sources are only in the JSON.

The first rows
Assembly,Name,Quantity,Unit,Spares,Multiplier,Total,Inclusion,Supply,References,…
,USB cable,1,pcs,0,3,3,optional,on_hand,,…
Electronics / Sensor board,Pull-up resistor,2,pcs,1,6,13,required,purchase,"R1, R2",…

Importing a list

Maker BOM also imports a plain list: one row for each requirement under a row of column names, separated by commas, tabs, or semicolons. The table below is every column it reads. A row needs a Name and nothing else. Columns can be in any order. A header matches whatever its case, spaces, and punctuation, so Qty Per Board is read as Quantity. A column Maker BOM does not know is kept as a custom field of the requirement.

The text is UTF-8 or Windows-1252. One import takes up to 2,000 rows, and a file chosen in the browser is at most 5 MB. A row with every cell empty is skipped. The CSV of a shared build uses these column names.

A list to start from
Name,Quantity,References,Assembly,Manufacturer,MPN,Supplier,SKU,Price
M3 x 8 socket head screw,12,,Frame,,,,,
100 nF capacitor,2,"C1, C2",Controller board,Samsung Electro-Mechanics,CL10B104KB8NNNC,LCSC,C1591,0.01
10 k resistor,1,R1,Controller board,Yageo,RC0603FR-0710KL,LCSC,C98220,0.004

Download the starter file (CSV) The same list as a Maker BOM document (JSON)

Every column of an imported list
Column What it holds Also read as
The requirement
Name required text What the build needs, in your words. A row without one takes its name from Description and Value, then MPN, SKU, or the first reference. Part name, Item name, Component, Title
Quantity number Units for one build of its assembly. Left empty, it is the number of references; with neither, it stays undecided. Qty, Count, Amount, Qty per board, Qty per, Quantity per board
Unit text What the quantity counts, such as pcs, m, or g. Left empty, it is pcs. Units, UOM
Spares number Extra units to buy on top of the total. Left empty, there are none. Spare, Extra, Extras
References list Reference designators, separated by commas or spaces. A range such as R1-R4 becomes R1, R2, R3, R4. Reference, Ref, Refs, Designator, Designators, RefDes, Ref designator
Assembly text The assembly the requirement belongs to. Nest with / or >, as in Frame / Front. An assembly the build does not have is created. Group, Group path, Subassembly, Section, Path
Inclusion one of a set Whether the build needs it. dnp marks a requirement that is excluded. Left empty, it is required. One of requiredoptionaldnp No other name
DNP mark A do-not-populate column, as KiCad exports it. A marked row is excluded and an empty cell means the part is fitted. Inclusion wins when a row has both. Marked by 1xyyestruednpexcludedexcludedonotpopulate Do not populate, Do not place, No populate, Excluded, Exclude from BOM, Exclude
Supply one of a set How the requirement is supplied. Left empty, it is purchase. One of purchaseon_handsalvagedfabricatedsuppliedkit Supply method
Category text A category of your own, such as Fasteners. Type
Tags list Tags, separated by commas or semicolons. Tag, Labels
Notes text Notes for the person who builds it. Note, Comment, Comments, Remarks
Purpose text What the requirement is for in this build. Function
Description text A description. It names the row when there is no Name column, and it describes the part. Desc
Value text A component value such as 10k, kept as the custom field value. It names the row when there is no Name. Val
Footprint text A footprint or package such as R_0603, kept as the custom field footprint. Package
Datasheet web address A web address becomes the requirement's Datasheet link. Other text is kept as the custom field datasheet. Datasheet URL
Source ref text Your own identifier for the row, up to 255 characters. Importing the file again updates the requirement with the same identifier. Source ID, ID, UUID, Line ID
The part that fills it Any of these selects a part for the requirement. A part the requirement already has is kept.
Manufacturer text Who makes the part. Mfr, Mfg, Manufacturer name, Maker, Brand
MPN text The manufacturer's part number. With Manufacturer it finds the part in your catalog, or creates it. Mfr PN, Mfg PN, Manufacturer part number, Manufacturer PN, Mfr part number, Part number, Part no, PN
Internal ref text Your own number for the part. Internal ID, Internal part number
A source for the part Read when the row names a part and has a Supplier or an SKU.
Supplier text Where to buy the part. Vendor, Distributor, Seller
SKU text The supplier's number for the part. Leading zeroes are kept. Supplier part number, Supplier PN, Vendor part number, Digi-Key PN, Digi-Key part number, Mouser PN, Mouser part number, LCSC, LCSC PN, LCSC part number, Order no, Order number
Price number The price of one pack. A leading $, €, or £ is dropped. Unit price, Cost, Price each
Currency text The currency of the price as a three-letter code. Left empty, it is USD. No other name
Pack size number Units in one pack. Left empty, it is 1. Pack, Pack qty, Pack quantity
Source URL web address The supplier's page for the part, http or https. URL, Link, Product link, Supplier URL, Product page

Reading a shared build

A shared build lives at /b/<slug>. The same build is at /b/<slug>/builderbom.json and /b/<slug>/builderbom.csv; the page links both with rel="alternate". A link that asks for a code takes it in the BuilderBom-Access-Code request header, never in the address. To copy a shared build into an account, an agent fetches the JSON and posts it to POST /api/v1/imports.

Fetch the JSON
curl -H "BuilderBom-Access-Code: K7QM-4XRT-9WPA-ZH3C" \
  https://makerbom.io/b/k3m9xq2v7tw4hp6rz5ya2bnc/builderbom.json

200 is the document. 401 means the code is missing or wrong, 429 too many tries (wait the seconds in Retry-After), and 410 that the build is no longer shared. A link anyone can open is cached for up to 60 seconds and sends Access-Control-Allow-Origin: *, so a browser tool can read it; a link with a code sends neither. The code is checked first and only wrong codes count, so a right code always works.

Add to my builds never changes anything the account already has. A part is reused only when its manufacturer part number and its manufacturer both match (or neither names a manufacturer), and it is used as it is; only the parts the copy creates get the document's sources. An import through the API may add the document's sources to a part it matched, but never moves the part's preferred listing. Only a copy made through Add to my builds, or a posted document whose shared.url is a live shared build of this server, records where it came from.

An import refuses, with 413 import_too_large and before anything is written, a document with more than 2,000 requirements, 500 assemblies, 4,000 parts, 8,000 sources or 10 on one part, 2,000 substitutes or 5 on one requirement, 1,000 references on one requirement, an assembly multiplier over 100,000, or any text over 20,000 characters.

Versions and extensions

  • Readers ignore every field and section they do not know. A tool that adds fields gives them a prefix of its name, such as acme_bin.
  • New optional fields and sections keep the version at 1.
  • The version changes only for a breaking change. A reader refuses a version it does not support, with a clear message, rather than guessing.
  • The schema at /schemas/builderbom/v1.json stays at that address for version 1.