Línea de comandos

npx craftquantities · sin conexión

Cantidades de construcción desde la línea de comandos

craftquantities ejecuta en una terminal o un script las calculadoras del sitio, las cuantificaciones de obras, los croquis de habitaciones, la revisión de presupuestos y los alcances de obra. El motor corre dentro del proceso, así que las respuestas son las de las páginas, y cada una termina con un enlace a la página con sus cifras ya cargadas.

  • 1.9.1Versión del paquete
  • 15Comandos
  • 20.12+Node.js
  • Sin conexiónRed

Instalar

Ejecútelo sin instalar, o instálelo una vez para usar el comando corto:

Sin instalar
npx craftquantities --help
Instalado
npm install -g craftquantities
craftquantities --version
  • Node.js 20.12 o posterior, en Windows, macOS o Linux. Sin dependencias propias.
  • Sin conexión: cada cálculo corre en el proceso. Solo update se conecta a internet, y solo cuando usted lo ejecuta.
  • La versión es la del motor. Una instalación más antigua da respuestas más antiguas, y cada respuesta JSON nombra la versión de su motor.

Inicio rápido

Una losa de 6 por 4 metros y 10 centímetros de espesor. La calculadora se nombra con una palabra, las entradas con una palabra de su etiqueta, y una longitud acepta cualquier unidad: 6m, 600cm, 19ft 6in o 5' 3-7/8".

Ejecútelo
npx craftquantities calc concrete --length 6m --width 4m --thickness 10cm
Salida
Concrete Calculator  [metric] [v1.2.0]
Estimate how much concrete a slab needs — in cubic yards or cubic metres,
and as a count of premix bags.

╭─────────────────────────────────────────╮
│ Result  2.64 m³  (3.45 yd³)  +10% waste │
│ Estimated concrete needed               │
╰─────────────────────────────────────────╯

Breakdown
┌────────────────────────────────────┬──────────────────┬──────────────────┐
│ Item                               │           Metric │     US customary │
├────────────────────────────────────┼──────────────────┼──────────────────┤
│ Estimated concrete needed          │          2.64 m³ │         3.45 yd³ │
│ Volume (no waste)                  │           2.4 m³ │         3.14 yd³ │
│ Volume with waste factor           │          2.64 m³ │         3.45 yd³ │
│ Cubic feet                         │        93.23 ft³ │        93.23 ft³ │
│ 80 lb bags needed                  │         156 bags │         156 bags │
│ Smaller premix bags: 25 kg         │         226 bags │                  │
│ Smallest premix bags: 20 kg        │         282 bags │                  │
│ Edge forms, the run round the slab │             20 m │         65.62 ft │
│ Edge form face, run by thickness   │             2 m² │      21.53 sq ft │
│ Form boards stacked to the slab's  │            1 row │            1 row │
│ depth                              │                  │                  │
│ Form boards to buy, whole boards   │ 6 x 4.8 m boards │ 8 x 12 ft boards │
│ each side                          │                  │                  │
│ Sub-base under the slab, compacted │           2.4 m³ │         3.14 yd³ │
│ Sub-base stone to order, loose     │          2.88 m³ │         3.77 yd³ │
│ Sub-base stone by weight, loose    │           4.46 t │        4.92 tons │
│ crushed stone                      │                  │                  │
│ Smaller premix bags: 60 lb         │                  │         208 bags │
│ Smallest premix bags: 40 lb        │                  │         311 bags │
└────────────────────────────────────┴──────────────────┴──────────────────┘

Your inputs (11 more at the page's opening values: --all-inputs)
┌────────────────┬──────────────────┬─────────────────┐
│ Input          │ Id               │ Value           │
├────────────────┼──────────────────┼─────────────────┤
│ Slab Length    │ --slab-length    │ 6 m (19.69 ft)  │
│ Slab Width     │ --slab-width     │ 4 m (13.12 ft)  │
│ Slab Thickness │ --slab-thickness │ 10 cm (3.94 in) │
└────────────────┴──────────────────┴─────────────────┘

A professional must decide
! This is a volume take-off, not a structural decision. It accepts
  whatever thickness you type without sizing it, and says nothing about mix
  strength, aggregate size, air entrainment or fibre.
! Structure: sizes, thicknesses, spans, reinforcement and bearing are a
  structural engineer's or the building official's decision. This is a
  quantity, not a design.

Sources
1. Standard formula: cubic yards = length (ft) x width (ft) x thickness
   (ft) / 27
2. An 80 lb bag of pre-mixed concrete yields approximately 0.6 cubic feet
   once mixed; 60 lb about 0.45 and 40 lb about 0.30 cubic feet — 0.0075
   cubic feet per pound of dry mix, which puts 20, 25 and 30 kg bags at
   about 9.4, 11.7 and 14.0 litres
3. Reinforcing bar mass from its nominal diameter, 7850 kg/m³ x π d² / 4:
   10 mm 0.617 kg/m, 12 mm 0.888 kg/m (BS 4449 tables); #4 0.668 lb/ft, #5
   1.043 lb/ft (ASTM A615 Table 1); bars counted as floor(clear span /
   spacing) + 1 each way
4. Sub-base stone weighed loose at 1,550 kg/m³ (97 lb/ft³), crushed stone
   in the site's bulk-density table (lib/materials/bulk-density.ts);
   compaction allowances of 15 to 25% are common supplier and specification
   practice for crushed stone and hardcore

Craft Quantities. Concrete Calculator. Version 1.2.0. Sources checked
2026-10-31.
https://craftquantities.com/calculators/materials-quantities/concrete-calcul
ator/ · CC BY 4.0

Edit visually, see the drawing, or add it to a project and export (Excel/PDF):
https://craftquantities.com/calculators/materials-quantities/concrete-calculator/#slabLength=6&slabWidth=4&slabThickness=0.1&wasteFactorPercent=10&subBaseDepth=0.1&subBaseCompaction=20&formBoardDepth=0.15&reinforcement=none&meshSheet=10x5ft&meshLap=0.2&barSize=0.0127&barSpacing=0.3&barCover=0.05&barLap=0.5&cq.u=metric

Un nombre que no reconoce se detiene con las coincidencias más cercanas en lugar de adivinar, y sale con el código 2 o 3:

Una opción mal escrita
Using concrete-calculator (Concrete Calculator) for "concret".
Error --lenght matches no input.

See every input: craftquantities info <name>
exit 2

El enlace en cada respuesta

Cada respuesta, en la terminal y en JSON como interactive_url, termina con la página de craftquantities.com que ya tiene las cifras: la calculadora con sus entradas, la cuantificación con sus medidas y complementos, el croquis tal como se dio, la revisión con el presupuesto y las medidas, el proyecto compartido. Ábrala para ver el dibujo, cambiar una cifra, abrir la obra en el Lienzo o exportar a Excel, CSV, PDF o DXF donde la página lo ofrece.

Cuando un agente de IA muestra una respuesta de la CLI en un chat, el enlace le da a la persona una forma de comprobarla y seguir trabajando en ella, sin volver a escribir una cifra.

Comandos

Quince comandos. Cada uno acepta --help, las opciones globales --units metric|imperial, --market, --json, --csv, --md y --quiet, y un comando o una opción mal escritos se responden con los más cercanos. Las salidas de abajo se obtuvieron con --quiet, que omite las fuentes y la cita.

La vista general enumera todos los comandos:

craftquantities --help
craftquantities 1.9.1  construction quantities from the command line — offline, cited, no prices

Usage  craftquantities <command> [arguments] [options]

Commands
  Quantities
    calc         Run any of the 1,257 calculators with your figures
    takeoff      Work a whole job: the three-part bill and labour bands
    sketch       A room from its corners: areas, walls and the bill
    tape         Tape-measure arithmetic in feet, inches, fractions and mm
    convert      Convert a value with the site's exact factors
  Find and read
    search       Find calculators, takeoffs, worked examples and diagnoses
    info         Inputs, formula and sources of a calculator or a job
  Documents and links
    quote-check  Read a builder's quote against your own job
    scope        Write a job's scope of work (Markdown and PDF)
    share        Make a share link to a whole project
  AI and shell
    mcp          Start the stdio MCP server (the same as craftquantities-engine)
    init         Print (or --write) the MCP config for Claude, Cursor, VS Code, Codex
    completion   Shell completion for bash, zsh, fish and PowerShell
    update       Check npm for a newer version (the only command that uses the network)
    help         Help for a command, the exit codes, the JSON schema or units

Examples
  $ craftquantities calc concrete --length 6m --width 4m --thickness 10cm
  $ craftquantities takeoff concrete-slab --length 20ft --width 12ft --units imperial
  $ craftquantities tape "5' 3-7/8\" + 1200mm"
  $ craftquantities search "how much tile for a floor" --json

Every answer ends with interactive_url: the page on craftquantities.com with your figures filled in.
Global options: --json --csv --md --format --units --market --lang --color --ascii --quiet --raw
--all-sources
Help for one command: craftquantities help <command> · Docs:
https://craftquantities.com/developers/cli/

calc

Ejecuta cualquier calculadora por su slug, su título o unas palabras. Las entradas van por su id o por una palabra de su etiqueta, en cualquier unidad; las que omita toman los valores con que abre la página.

Ejecútelo
npx craftquantities calc concrete --length 6m --width 4m --thickness 10cm
Salida
Concrete Calculator  [metric] [v1.2.0]
Estimate how much concrete a slab needs — in cubic yards or cubic metres,
and as a count of premix bags.

╭─────────────────────────────────────────╮
│ Result  2.64 m³  (3.45 yd³)  +10% waste │
│ Estimated concrete needed               │
╰─────────────────────────────────────────╯

Breakdown
┌────────────────────────────────────┬──────────────────┬──────────────────┐
│ Item                               │           Metric │     US customary │
├────────────────────────────────────┼──────────────────┼──────────────────┤
│ Estimated concrete needed          │          2.64 m³ │         3.45 yd³ │
│ Volume (no waste)                  │           2.4 m³ │         3.14 yd³ │
│ Volume with waste factor           │          2.64 m³ │         3.45 yd³ │
│ Cubic feet                         │        93.23 ft³ │        93.23 ft³ │
│ 80 lb bags needed                  │         156 bags │         156 bags │
│ Smaller premix bags: 25 kg         │         226 bags │                  │
│ Smallest premix bags: 20 kg        │         282 bags │                  │
│ Edge forms, the run round the slab │             20 m │         65.62 ft │
│ Edge form face, run by thickness   │             2 m² │      21.53 sq ft │
│ Form boards stacked to the slab's  │            1 row │            1 row │
│ depth                              │                  │                  │
│ Form boards to buy, whole boards   │ 6 x 4.8 m boards │ 8 x 12 ft boards │
│ each side                          │                  │                  │
│ Sub-base under the slab, compacted │           2.4 m³ │         3.14 yd³ │
│ Sub-base stone to order, loose     │          2.88 m³ │         3.77 yd³ │
│ Sub-base stone by weight, loose    │           4.46 t │        4.92 tons │
│ crushed stone                      │                  │                  │
│ Smaller premix bags: 60 lb         │                  │         208 bags │
│ Smallest premix bags: 40 lb        │                  │         311 bags │
└────────────────────────────────────┴──────────────────┴──────────────────┘

Your inputs (11 more at the page's opening values: --all-inputs)
┌────────────────┬──────────────────┬─────────────────┐
│ Input          │ Id               │ Value           │
├────────────────┼──────────────────┼─────────────────┤
│ Slab Length    │ --slab-length    │ 6 m (19.69 ft)  │
│ Slab Width     │ --slab-width     │ 4 m (13.12 ft)  │
│ Slab Thickness │ --slab-thickness │ 10 cm (3.94 in) │
└────────────────┴──────────────────┴─────────────────┘

A professional must decide
! This is a volume take-off, not a structural decision. It accepts
  whatever thickness you type without sizing it, and says nothing about mix
  strength, aggregate size, air entrainment or fibre.
! Structure: sizes, thicknesses, spans, reinforcement and bearing are a
  structural engineer's or the building official's decision. This is a
  quantity, not a design.

Sources
1. Standard formula: cubic yards = length (ft) x width (ft) x thickness
   (ft) / 27
2. An 80 lb bag of pre-mixed concrete yields approximately 0.6 cubic feet
   once mixed; 60 lb about 0.45 and 40 lb about 0.30 cubic feet — 0.0075
   cubic feet per pound of dry mix, which puts 20, 25 and 30 kg bags at
   about 9.4, 11.7 and 14.0 litres
3. Reinforcing bar mass from its nominal diameter, 7850 kg/m³ x π d² / 4:
   10 mm 0.617 kg/m, 12 mm 0.888 kg/m (BS 4449 tables); #4 0.668 lb/ft, #5
   1.043 lb/ft (ASTM A615 Table 1); bars counted as floor(clear span /
   spacing) + 1 each way
4. Sub-base stone weighed loose at 1,550 kg/m³ (97 lb/ft³), crushed stone
   in the site's bulk-density table (lib/materials/bulk-density.ts);
   compaction allowances of 15 to 25% are common supplier and specification
   practice for crushed stone and hardcore

Craft Quantities. Concrete Calculator. Version 1.2.0. Sources checked
2026-10-31.
https://craftquantities.com/calculators/materials-quantities/concrete-calcul
ator/ · CC BY 4.0

Edit visually, see the drawing, or add it to a project and export (Excel/PDF):
https://craftquantities.com/calculators/materials-quantities/concrete-calculator/#slabLength=6&slabWidth=4&slabThickness=0.1&wasteFactorPercent=10&subBaseDepth=0.1&subBaseCompaction=20&formBoardDepth=0.15&reinforcement=none&meshSheet=10x5ft&meshLap=0.2&barSize=0.0127&barSpacing=0.3&barCover=0.05&barLap=0.5&cq.u=metric

takeoff

Calcula una obra completa: la lista en tres partes (materiales, accesorios y los complementos que active) y la mano de obra en horas-persona con la confianza de cada rendimiento.

Ejecútelo
npx craftquantities takeoff concrete-slab --length 6m --width 4m --thickness 100mm
Salida
Concrete slab takeoff  [metric]
Concrete, reinforcement and formwork for a ground slab from one set of
dimensions.

╭────────────────────────────────────────────────────────────╮
│ Result  11.6 person-hours likely  5.8–27.1 h, confidence C │
│ Labour for planning, never a price                         │
╰────────────────────────────────────────────────────────────╯

Bill of materials
┌───────────────┬───────────────┬────────────────┬────────┬────────────────┐
│ Item          │      Quantity │   Other system │ Labour │ Material id /  │
│               │               │                │        │ status         │
├───────────────┼───────────────┼────────────────┼────────┼────────────────┤
│ Materials (5)                                                            │
├───────────────┼───────────────┼────────────────┼────────┼────────────────┤
│ Ready-mix     │       2.64 m³ │       3.45 yd³ │  5.8 h │ ready-mix-conc │
│ concrete      │               │                │        │ rete           │
│ Compacted     │   5.28 metric │      5.93 tons │  2.4 h │ crushed-stone- │
│ sub-base      │          tons │                │        │ sub-base       │
│ stone         │               │                │        │                │
│ Vapor         │        1 roll │         1 roll │  1.4 h │ poly-vapor-ret │
│ retarder      │               │                │        │ arder-roll     │
│ (damp-proof   │               │                │        │                │
│ membrane)     │               │                │        │                │
│ under the     │               │                │        │                │
│ slab          │               │                │        │                │
│ Reinforcing   │     11 x 12 m │     21 x 20 ft │        │ rebar-stick    │
│ bar (rebar),  │        sticks │         sticks │        │                │
│ stock lengths │               │                │        │                │
│ Form boards   │    10 x 2.4 m │      10 x 8 ft │    2 h │ form-board     │
│               │        boards │         boards │        │                │
├───────────────┼───────────────┼────────────────┼────────┼────────────────┤
│ Accessories, fixings and consumables (5)                                 │
├───────────────┼───────────────┼────────────────┼────────┼────────────────┤
│ Curing        │         4.8 L │       1.29 gal │        │ curing-compoun │
│ compound      │               │                │        │ d              │
│ Tape for the  │          21 m │        68.9 ft │        │ under-slab-sea │
│ retarder's    │               │                │        │ m-tape         │
│ laps and      │               │                │        │                │
│ edges         │               │                │        │                │
│ Rebar chairs  │     30 chairs │      25 chairs │        │ rebar-chair    │
│ Rebar tie     │        1 coil │         1 coil │        │ rebar-tie-wire │
│ wire          │               │                │        │ -coil          │
│ Form release  │   1 container │    1 container │        │ form-release-a │
│ agent         │               │                │        │ gent           │
├───────────────┼───────────────┼────────────────┼────────┼────────────────┤
│ Add-ons (4)                                                              │
├───────────────┼───────────────┼────────────────┼────────┼────────────────┤
│ Isolation     │ 1 x 25 m roll │      7 x 10 ft │        │ left out       │
│ joint filler  │               │        lengths │        │                │
│ at walls and  │               │                │        │                │
│ columns       │               │                │        │                │
│ Perimeter     │      9 boards │       9 boards │        │ left out       │
│ insulation    │               │                │        │                │
│ boards        │               │                │        │                │
│ Welded wire   │      2 sheets │       2 sheets │        │ left out       │
│ mesh (instead │               │                │        │                │
│ of bars)      │               │                │        │                │
│ Skip          │          6 m³ │       7.85 yd³ │        │ left out       │
│ (dumpster)    │               │                │        │                │
│ for the       │               │                │        │                │
│ dig-out spoil │               │                │        │                │
└───────────────┴───────────────┴────────────────┴────────┴────────────────┘
Add-ons not turned on: isolation-joint-filler-strip-calculator (Isolation
joint filler at walls and columns), under-slab-perimeter-foam-calculator
(Perimeter insulation boards), welded-wire-mesh-calculator (Welded wire mesh
(instead of bars)), skip-and-dumpster-size-calculator (Skip (dumpster) for
the dig-out spoil) — add with --addons.

Labour: 11.6 h (5.8–27.1) person-hours, about 0.4 crew-days likely
┌──────────────────┬─────────────────┬──────────────────┬──────────────────┐
│ Row              │    Person-hours │ Operation        │ Confidence       │
├──────────────────┼─────────────────┼──────────────────┼──────────────────┤
│ Ready-mix        │  5.8 h (2.9–12) │ Placing and      │ B — trade        │
│ concrete         │                 │ finishing        │ reference        │
│                  │                 │ concrete         │                  │
│ Compacted        │   2.4 h (1–7.2) │ Laying and       │ B — trade        │
│ sub-base stone   │                 │ compacting a     │ reference        │
│                  │                 │ hardcore         │                  │
│                  │                 │ sub-base         │                  │
│ Vapor retarder   │ 1.4 h (0.7–2.9) │ Fixing a vapour  │ C — rule of      │
│ (damp-proof      │                 │ control layer    │ thumb            │
│ membrane) under  │                 │                  │                  │
│ the slab         │                 │                  │                  │
│ Form boards      │     2 h (1.2–5) │ Erecting and     │ A — published    │
│                  │                 │ striking         │ source           │
│                  │                 │ formwork         │                  │
└──────────────────┴─────────────────┴──────────────────┴──────────────────┘
Person-hours as a low, likely and high band from each operation's production
rate, for planning. Never a price: the hourly rate is the reader's own.

Not counted
• Any structural design. Thickness, mesh size, bar spacing and cover are
  an engineer's figures for your ground and your loading; this page takes
  them as given.
• Excavation and the depth of the sub-base, which the ground decides: the
  sub-base row orders stone at the depth you enter, and the spoil skip is an
  add-on.
• A radon barrier, and edge thickenings under walls.
• Saw-cut control joints: their spacing is a design figure (the control
  joint page gives the maximum), not an order line. Laps are in the rebar
  row, as a flat allowance on the bar length.
• The pour itself: pump hire, access, and cold or hot weather protection.

A professional must decide
! Any structural design. Thickness, mesh size, bar spacing and cover are
  an engineer's figures for your ground and your loading; this page takes
  them as given.
! Structure: sizes, thicknesses, spans, reinforcement and bearing are a
  structural engineer's or the building official's decision. This is a
  quantity, not a design.
! Electrics: circuit design, protection, cable sizing and the work itself
  are for a qualified or licensed electrician, under the rules where you
  build.

Sources
1. Standard formula: cubic yards = length (ft) x width (ft) x thickness
   (ft) / 27
2. An 80 lb bag of pre-mixed concrete yields approximately 0.6 cubic feet
   once mixed; 60 lb about 0.45 and 40 lb about 0.30 cubic feet — 0.0075
   cubic feet per pound of dry mix, which puts 20, 25 and 30 kg bags at
   about 9.4, 11.7 and 14.0 litres
3. Reinforcing bar mass from its nominal diameter, 7850 kg/m³ x π d² / 4:
   10 mm 0.617 kg/m, 12 mm 0.888 kg/m (BS 4449 tables); #4 0.668 lb/ft, #5
   1.043 lb/ft (ASTM A615 Table 1); bars counted as floor(clear span /
   spacing) + 1 each way
4. Sub-base stone weighed loose at 1,550 kg/m³ (97 lb/ft³), crushed stone
   in the site's bulk-density table (lib/materials/bulk-density.ts);
   compaction allowances of 15 to 25% are common supplier and specification
   practice for crushed stone and hardcore
5. Coverage rate is set by the specific curing compound product's
   technical data sheet — this calculator applies that rate to the slab's
   surface area
6. Mass = area x thickness x in-place compacted density
   … 26 more in --json (sources[]).

Craft Quantities. Concrete slab takeoff.
https://craftquantities.com/build/concrete-slab/ · CC BY 4.0

Edit the bill visually, open it in the Canvas, or export to Excel/CSV/PDF:
https://craftquantities.com/build/concrete-slab/?length=6&width=4&thickness=0.1&subBaseDepth=0.1&cq.u=metric

Encuentra calculadoras, cuantificaciones, ejemplos resueltos y diagnósticos con palabras de todos los días, y nombra el comando que ejecuta cada uno.

Ejecútelo
npx craftquantities search "how much tile for a floor" -n 4
Salida
Search: how much tile for a floor
4 results, best first.

┌───┬────────────┬────────────────────────────┬────────────────────────────┐
│ # │ Kind       │ Title                      │ Run it                     │
├───┼────────────┼────────────────────────────┼────────────────────────────┤
│ 1 │ calculator │ Floor & Wall Tile          │ calc floor-tile-calculator │
│   │            │ Calculator                 │                            │
│ 2 │ takeoff    │ Tile a floor takeoff       │ takeoff tile-floor         │
│ 3 │ calculator │ Tile & Grout Calculator    │ calc tile-grout-calculator │
│ 4 │ diagnosis  │ The tiles on my floor are  │ /diagnostics/cracked-floor │
│   │            │ cracking                   │ -tiles/                    │
└───┴────────────┴────────────────────────────┴────────────────────────────┘

See every match on the site's search page:
https://craftquantities.com/search/?q=how+much+tile+for+a+floor

info

Muestra lo que pide una calculadora o una cuantificación: el nombre de cada opción, sus unidades y su valor inicial en ambos sistemas, con la fórmula y las fuentes.

Ejecútelo
npx craftquantities info concrete-slab --takeoff
Salida
Concrete slab takeoff  [takeoff]
Concrete, reinforcement and formwork for a ground slab from one set of
dimensions.

Measurements (4)
┌──────────────────┬─────────────┬─────────────┬──────────────┬────────────┐
│ Option           │ Label       │ Units       │        Opens │ Opens (US) │
│                  │             │             │     (metric) │            │
├──────────────────┼─────────────┼─────────────┼──────────────┼────────────┤
│ --length         │ Slab length │ mm, cm, m,  │          6 m │    19.5 ft │
│                  │             │ in, ft, yd  │              │            │
│ --width          │ Slab width  │ mm, cm, m,  │          4 m │      13 ft │
│                  │             │ in, ft, yd  │              │            │
│ --thickness      │ Slab        │ mm, cm, m,  │       100 mm │       4 in │
│                  │ thickness   │ in, ft, yd  │              │            │
│ --sub-base-depth │ Compacted   │ mm, cm, m,  │       100 mm │       4 in │
│                  │ sub-base    │ in, ft, yd  │              │            │
│                  │ depth       │             │              │            │
└──────────────────┴─────────────┴─────────────┴──────────────┴────────────┘

Bill rows (14)
┌────────────────────┬────────────────────┬───────────┬────────────────────┐
│ Row key            │ Name               │ Part      │ Calculator         │
├────────────────────┼────────────────────┼───────────┼────────────────────┤
│ concrete-calculato │ Concrete           │ material  │ concrete-calculato │
│ r                  │ Calculator         │           │ r                  │
│ curing-compound-co │ Curing compound    │ accessory │ curing-compound-co │
│ verage-calculator  │                    │           │ verage-calculator  │
│ gravel-base-tonnag │ Compacted sub-base │ material  │ gravel-base-tonnag │
│ e-calculator       │ stone              │           │ e-calculator       │
│ vapor-barrier-calc │ Vapor retarder     │ material  │ vapor-barrier-calc │
│ ulator             │ (damp-proof        │           │ ulator             │
│                    │ membrane) under    │           │                    │
│                    │ the slab           │           │                    │
│ air-barrier-tape-c │ Tape for the       │ accessory │ air-barrier-tape-c │
│ alculator          │ retarder's laps    │           │ alculator          │
│                    │ and edges          │           │                    │
│ rebar-calculator   │ Rebar Calculator   │ material  │ rebar-calculator   │
│ rebar-chair-count- │ Rebar chairs       │ accessory │ rebar-chair-count- │
│ calculator         │                    │           │ calculator         │
│ rebar-tie-wire-cal │ Rebar tie wire     │ accessory │ rebar-tie-wire-cal │
│ culator            │                    │           │ culator            │
│ concrete-formwork- │ Concrete Formwork  │ material  │ concrete-formwork- │
│ calculator         │ Calculator         │           │ calculator         │
│ form-release-agent │ Form release agent │ accessory │ form-release-agent │
│                    │                    │           │ -calculator        │
│ isolation-joint-fi │ Isolation joint    │ add-on    │ isolation-joint-fi │
│ ller-strip-calcula │ filler at walls    │           │ ller-strip-calcula │
│ tor                │ and columns        │           │ tor                │
│ under-slab-perimet │ Perimeter          │ add-on    │ under-slab-perimet │
│ er-foam-calculator │ insulation boards  │           │ er-foam-calculator │
│ welded-wire-mesh-c │ Welded wire mesh   │ add-on    │ welded-wire-mesh-c │
│ alculator          │ (instead of bars)  │           │ alculator          │
│ skip-and-dumpster- │ Skip (dumpster)    │ add-on    │ skip-and-dumpster- │
│ size-calculator    │ for the dig-out    │           │ size-calculator    │
│                    │ spoil              │           │                    │
└────────────────────┴────────────────────┴───────────┴────────────────────┘

Not counted
• Any structural design. Thickness, mesh size, bar spacing and cover are
  an engineer's figures for your ground and your loading; this page takes
  them as given.
• Excavation and the depth of the sub-base, which the ground decides: the
  sub-base row orders stone at the depth you enter, and the spoil skip is an
  add-on.
• A radon barrier, and edge thickenings under walls.
• Saw-cut control joints: their spacing is a design figure (the control
  joint page gives the maximum), not an order line. Laps are in the rebar
  row, as a flat allowance on the bar length.
• The pour itself: pump hire, access, and cold or hot weather protection.

Craft Quantities. Concrete slab takeoff.
https://craftquantities.com/build/concrete-slab/ · CC BY 4.0

Open the takeoff page:
https://craftquantities.com/build/concrete-slab/

convert

Convierte un valor con el factor exacto que aplican las calculadoras.

Ejecútelo
npx craftquantities convert 6m3 yd3
Salida
6 m³ → Cubic yards
volume: × 1.307950619 (m³ → yd³)

╭─────────────────────────╮
│ Result  7.847703716 yd³ │
│ 6 m³ in yd³             │
╰─────────────────────────╯

┌──────┬─────────────────┬─────────────┬───────────┐
│ From │ To              │      Factor │ Dimension │
├──────┼─────────────────┼─────────────┼───────────┤
│ 6 m³ │ 7.847703716 yd³ │ 1.307950619 │ volume    │
└──────┴─────────────────┴─────────────┴───────────┘

Sources
1. Craft Quantities unit table
   https://craftquantities.com/api/v1/units.json

Craft Quantities unit table — https://craftquantities.com/api/v1/units.json
· CC BY 4.0

Open the Cubic Metres to Cubic Yards Calculator with 6 m³:
https://craftquantities.com/calculators/measurements-conversions/cubic-meters-to-cubic-yards-calculator/#cubicMetres=6&cq.u=metric

tape

Suma, resta, multiplica y divide lecturas de cinta: pies, pulgadas y fracciones mezclados con milímetros, redondeados a la marca de cinta que elija.

Ejecútelo
npx craftquantities tape "5' 3-7/8\" + 1200mm"
Salida
Tape: 5' 3-7/8" + 1200mm  [1/16 in]
2 terms: 5' 3-7/8" · 1200mm

╭─────────────────────────────────────╮
│ Result  9 ft 3 1/8 in  (2,822.4 mm) │
│ The length                          │
╰─────────────────────────────────────╯

┌───────────────────┬───────────────┬─────────────────┐
│ Form              │         Value │                 │
├───────────────────┼───────────────┼─────────────────┤
│ Tape reading      │ 9 ft 3 1/8 in │ nearest 1/16 in │
│ Millimetres       │    2,822.4 mm │                 │
│ Metres            │      2.8224 m │                 │
│ Decimal inches    │   111.1191 in │                 │
│ Decimal feet      │     9.2599 ft │                 │
│ Tape mark − exact │       0.15 mm │                 │
└───────────────────┴───────────────┴─────────────────┘

Notes
• The page link rounds 1,200 mm to the nearest 1/64 in (the calculator's
  finest fraction).

Craft Quantities. Feet and Inches Calculator.
https://craftquantities.com/calculators/measurements-conversions/feet-and-in
ches-calculator/ (1 in = 25.4 mm exactly) · CC BY 4.0

Open it in the Feet and Inches Calculator:
https://craftquantities.com/calculators/measurements-conversions/feet-and-inches-calculator/#firstFeet=5&firstInches=3&firstTop=7&firstBottom=8&secondValue=length&lengthOperation=add&secondFeet=3&secondInches=11&secondTop=1&secondBottom=4&numberOperation=multiply&factor=3&precision=16&cq.u=imperial

sketch

Mide una habitación a partir de sus esquinas en orden (cualquier forma), con sus puertas y ventanas, y da los materiales del planificador de habitaciones.

Ejecútelo
npx craftquantities sketch --corners "0,0 4,0 4,3 0,3" --door 1 --window 3
Salida
Sketched room: 12 m² (129.2 ft²)  [metric]
4 corners, 4 walls, 2 openings, square corners.

╭────────────────────────────╮
│ Result  12 m²  (129.2 ft²) │
│ Floor area                 │
╰────────────────────────────╯

Room
┌───────────────────┬──────────┬───────────┐
│ Figure            │   Metric │  Imperial │
├───────────────────┼──────────┼───────────┤
│ Floor area        │    12 m² │ 129.2 ft² │
│ Ceiling area      │    12 m² │ 129.2 ft² │
│ Perimeter         │     14 m │  45.93 ft │
│ Ceiling height    │    2.5 m │    8.2 ft │
│ Wall area, gross  │    35 m² │ 376.7 ft² │
│ Doors and windows │  3.29 m² │  35.4 ft² │
│ Wall area, net    │ 31.71 m² │ 341.4 ft² │
└───────────────────┴──────────┴───────────┘

Walls
┌──────┬─────────┬────────────────┬──────────┐
│ Wall │ Corners │         Length │ Openings │
├──────┼─────────┼────────────────┼──────────┤
│    1 │ 1 → 2   │ 4 m (13.12 ft) │        1 │
│    2 │ 2 → 3   │  3 m (9.84 ft) │        0 │
│    3 │ 3 → 4   │ 4 m (13.12 ft) │        1 │
│    4 │ 4 → 1   │  3 m (9.84 ft) │        0 │
└──────┴─────────┴────────────────┴──────────┘

Materials (room planner, 10 lines)
┌──────────────────────────────────────┬──────────────┬──────────┐
│ Line                                 │     Quantity │ Trade    │
├──────────────────────────────────────┼──────────────┼──────────┤
│ Primer for the walls                 │       7.57 L │ painting │
│ Wall paint                           │       6.34 L │ painting │
│ Primer for the ceiling               │       3.79 L │ painting │
│ Ceiling paint                        │        2.4 L │ painting │
│ Paint for doors, frames and skirting │       1.35 L │ painting │
│ Skirting boards                      │      14.41 m │ trim     │
│ Door casing                          │        5.5 m │ trim     │
│ Window casing                        │       5.28 m │ trim     │
│ Trim nails                           │        1 box │ trim     │
│ Decorator's caulk along the skirting │ 3 cartridges │ trim     │
└──────────────────────────────────────┴──────────────┴──────────┘

Craft Quantities. Sketch to takeoff.
https://craftquantities.com/plan/sketch/ · CC BY 4.0

Open the room on the sketch page — move corners, add openings, build the full bill:
https://craftquantities.com/plan/sketch/#s=AQDEEwQAAMA-AADwLr8-AAIAjgyEB4IQAAX4CrAJsAmEBwA

quote-check

Lee el presupuesto de un contratista, un archivo de texto o la entrada estándar, frente a la obra calculada con sus medidas. El dinero se quita antes de leer y nunca se juzga.

Ejecútelo
npx craftquantities quote-check quote.txt --job concrete-slab --length 6m --width 4m
Salida
$ cat quote.txt
Concrete C25 2.6 m3  $480
Rebar 11 x 12m sticks
Formwork boards 10 x 2.4m
Skip hire 1

Quote check: concrete slab  [metric]
4 quote rows read. Money in the quote was taken out before it was read: the
check compares quantities against your job, never prices, and judges no
price.

╭──────────────────────────────────────────────────────────────────────────╮
│ Result 1 of 3 lines within range 2 outside, 0 not in the quote, 1 extra  │
│ Lines within the job's range                                             │
╰──────────────────────────────────────────────────────────────────────────╯

Job lines against the quote
┌─────────────────┬──────────────────┬──────────────────┬──────────────────┐
│ Job line        │           Quoted │  The job's range │ Reading          │
├─────────────────┼──────────────────┼──────────────────┼──────────────────┤
│ Concrete        │           2.6 m³ │     2.52–2.76 m³ │ within the range │
│ Rebar           │  1 x 12 m sticks │ 11 x 12 m sticks │ below the range  │
│ Concrete        │ 1 x 2.4 m boards │     9–10 x 2.4 m │ below the range  │
│ Formwork        │                  │           boards │                  │
└─────────────────┴──────────────────┴──────────────────┴──────────────────┘

Extra in the quote
┌───────────┬──────────┬─────────┐
│ Quote row │ Quantity │ Read as │
├───────────┼──────────┼─────────┤
│ Skip hire │        1 │ removal │
└───────────┴──────────┴─────────┘

Reading
• A difference is a question to ask, not a verdict. Quantities only: no
  price is read or judged.

Questions to ask
• What lap-splice allowance is the Rebar on the concrete slab quote worked
  to?
• What cutting allowance does the concrete slab quote allow on the
  Concrete Formwork?
• Does the removal line cover the old material as well as the offcuts, and
  is it a fixed figure?

Outside the takeoff
• Any structural design. Thickness, mesh size, bar spacing and cover are
  an engineer's figures for your ground and your loading; this page takes
  them as given.
• Excavation, spoil removal and the sub-base — none of which is derived
  from the slab's own dimensions.
• Damp-proof membrane, radon barrier and under-slab insulation.
• Chairs, tying wire and edge thickenings. Laps are in the rebar row, as a
  flat allowance on the bar length.
• The pour itself: pump hire, access, curing compound, and cold or hot
  weather protection.

Open this check on the page, with your quote and measurements filled in:
https://craftquantities.com/check/concrete-slab-quote/#length=6&width=4&cq.u=metric&cq.quote=Concrete+C25+2.6+m3%0ARebar+11+12+m%0AFormwork+boards+10+2.4+m%0ASkip+hire+1

scope

Escribe el alcance de obra del trabajo en Markdown, y en PDF con --pdf, en la carpeta actual.

Ejecútelo
npx craftquantities scope concrete-slab --length 6m --width 4m --pdf
Salida
Scope of work: Project from Craft Quantities  [csi]
Three-part section format (North American). 3 lines from Concrete slab.

Part 2 — Products
┌───────────────┬──────────────────┬───────────────────┬───────────────────┐
│ Trade         │ Item             │          Quantity │ Cited for this    │
│               │                  │                   │ item              │
├───────────────┼──────────────────┼───────────────────┼───────────────────┤
│ 03 — Concrete │ Concrete slab ·  │           2.64 m³ │ ASTM A615         │
│               │ Concrete         │                   │                   │
│ 03 — Concrete │ Concrete slab ·  │  11 x 12 m sticks │ ACI 318; ASTM     │
│               │ Rebar            │                   │ A615; CSA G30.18  │
│ 03 — Concrete │ Concrete slab ·  │ 10 x 2.4 m boards │ —                 │
│               │ Concrete         │                   │                   │
│               │ Formwork         │                   │                   │
└───────────────┴──────────────────┴───────────────────┴───────────────────┘

Document
• Part 1 — General: Summary of work; Related work and work not included;
  Submittals; Quality assurance and governing documents; Site conditions
• Part 2 — Products: Materials
• Part 3 — Execution: Examination and preparation; Sequence and
  installation; Inspections and hold points; Tolerances; Cleaning and
  completion

Note
• Quantities for estimating, worked out by the calculator named here. Not
  a design, not a structural or code check, and not a certificate of
  anything. The site supplies no prices. Check the figures against the
  drawings, the manufacturer's data and the code in force where you build.

Written
Markdown:
~/garage-job/scope-of-work-concrete-slab.md
PDF:
~/garage-job/scope-of-work-concrete-slab.pdf

Open the shared project — every line, quantity and source; take a copy to edit and export (Excel/PDF):
https://craftquantities.com/project/shared/#s=v1ztVXNThsxEH4Vaw6cnNV6SUJkKYeSFhWVVrRBr…

share

Crea un enlace para compartir un proyecto completo a partir de un archivo de proyecto. El proyecto viaja en el fragmento del enlace; los precios, el nombre del cliente y la dirección de la obra nunca viajan.

Ejecútelo
npx craftquantities share project.json
Salida
Share link: Garage slab  [view]
3 lines, 1 takeoff. Opens read-only; 985 characters.

Travels in the link
• every line with its quantity, unit and calculator
• areas and chosen alternates
• the takeoffs' setups (the address that reopens each)
• the planner's rooms
• notes
• the units and market

Stays behind
• prices and rates (the engine adds none, and a file's own rates are taken
  out)
• the client's name and the site address
• job costs, diary, requests for quote, programme and proposal

Open the shared project — every line, quantity and source; take a copy to edit and export (Excel/PDF):
https://craftquantities.com/project/shared/#s=v1ztVXNThsxEH4Vaw6cnNV6SQKylENJS4tKq7ZBr…

mcp

Inicia el servidor MCP por stdio: el mismo programa que craftquantities-engine, con las mismas herramientas.

Ejecútelo
npx -y craftquantities mcp

init

Imprime la configuración MCP para Claude Desktop, Claude Code, Cursor, VS Code o Codex. No escribe nada a menos que agregue --write, y entonces guarda una copia de respaldo.

Ejecútelo
npx craftquantities init claude-code
Salida
MCP config for Claude Code  [npx]
Add this to ~/garage-job/.mcp.json (nothing was written; pass
--write to merge it in).

One command:  claude mcp add craftquantities -- npx -y craftquantities mcp

.mcp.json
  {
    "mcpServers": {
      "craftquantities": {
        "type": "stdio",
        "command": "npx",
        "args": [
          "-y",
          "craftquantities",
          "mcp"
        ]
      }
    }
  }

Then
• Or run the one-line command above; `claude mcp list` shows it.
• Ask, for example: how much concrete for a 6 by 4 m slab, 10 cm thick?
  The answer links to the page with the figures filled in.

Using the CLI and the MCP server from an AI agent:
https://craftquantities.com/developers/cli/#ai-agents

completion

Imprime el script de autocompletado para bash, zsh, fish o PowerShell.

Ejecútelo
eval "$(npx craftquantities completion bash)"

update

Consulta en el registro de npm la versión más reciente y dice cómo actualizar. Es el único comando que se conecta a internet, y solo cuando usted lo ejecuta.

Ejecútelo
npx craftquantities update

help

Ayuda sobre un comando, los códigos de salida, el esquema JSON o cómo escribir las unidades. Cada comando acepta también --help.

Ejecútelo
npx craftquantities help takeoff

Salida JSON

--json imprime un objeto con una forma estable y versionada, la misma para cada comando. El esquema está publicado en craftquantities.com/schemas/cli-output.v1.json y viene en el paquete.

Las claves de primer nivel de cada respuesta JSON
ClaveQué contiene
schema_version1. Dentro de una versión las claves solo se agregan.
oktrue, o false con un objeto error (kind, message, exit_code, suggestions).
cli_version, engine_versionEl paquete y el motor que respondieron.
resultLa cifra principal en unidades métricas e imperiales (el valor, la unidad y el texto impreso), o null.
breakdownLas líneas: el desglose de una calculadora, las filas de una lista por parte, los resultados de una búsqueda.
inputs, unitsLo que se usó, y el sistema de unidades y el mercado.
sourcesLas fuentes de la calculadora y las normas que nombran.
warningsLo que debe decidir un profesional, y las notas de la CLI (una unidad que supuso, un valor fuera del rango de una entrada).
interactive_urlLa página de craftquantities.com con las cifras ya cargadas.
citation, licenceCómo citar la respuesta (CC BY 4.0).
dataLo que solo devuelve este comando; --raw agrega la respuesta completa del motor.
Ejecútelo
npx craftquantities calc concrete --length 6m --width 4m --thickness 10cm --json
Salida, abreviada
{
  "$schema": "https://craftquantities.com/schemas/cli-output.v1.json",
  "schema_version": 1,
  "ok": true,
  "command": "calc",
  "cli_version": "1.9.1",
  "engine_version": "1.9.1",
  "title": "Concrete Calculator",
  "result": {
    "label": "Estimated concrete needed",
    "metric": {
      "value": 2.64,
      "unit": "m³",
      "printed": "2.64 m³"
    },
    "imperial": {
      "value": 3.45298963499,
      "unit": "yd³",
      "printed": "3.45 yd³"
    },
    "primary": "metric",
    "note": "+10% waste",
    "confidence": "high"
  },
  "breakdown": [
    {
      "label": "Volume (no waste)",
      "metric": {
        "value": 2.4,
        "unit": "m³",
        "printed": "2.4 m³"
      },
      "imperial": {
        "value": 3.13908148635,
        "unit": "yd³",
        "printed": "3.14 yd³"
      }
    },
    …
  ],
  "inputs": [
    {
      "id": "slabLength",
      "label": "Slab Length",
      "value": 6,
      "printed": "6 m (19.69 ft)",
      "source": "caller",
      "metric": {
        "value": 6,
        "unit": "m"
      },
      "imperial": {
        "value": 19.68503937007874,
        "unit": "ft"
      }
    },
    …
  ],
  "units": {
    "system": "metric",
    "market": null
  },
  "sources": [
    {
      "label": "Standard formula: cubic yards = length (ft) x width (ft) x thickness (ft) / 27"
    },
    …
  ],
  "warnings": [
    "This is a volume take-off, not a structural decision. It accepts whatever thickness you type without sizing it, and says nothing about mix strength, aggregate size, air entrainment or fibre.",
    …
  ],
  "interactive_url": "https://craftquantities.com/calculators/materials-quantities/concrete-calculator/#slabLength=6&slabWidth=4&slabThickness=0.1&wasteFactorPercent=10&subBaseDepth=0.1&subBaseCompaction=20&formBoardDepth=0.15&reinforcement=none&meshSheet=10x5ft&meshLap=0.2&barSize=0.0127&barSpacing=0.3&barCover=0.05&barLap=0.5&cq.u=metric",
  "interactive_label": "Edit visually, see the drawing, or add it to a project and export (Excel/PDF)",
  "page_url": "https://craftquantities.com/calculators/materials-quantities/concrete-calculator/",
  "citation": "Craft Quantities. Concrete Calculator. Version 1.2.0. Sources checked 2026-10-31. https://craftquantities.com/calculators/materials-quantities/concrete-calculator/",
  "licence": {
    "name": "CC BY 4.0",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "attribution": "Craft Quantities — craftquantities.com"
  },
  "data": {
    "calculator": {
      "slug": "concrete-calculator",
      "title": "Concrete Calculator",
      "version": "1.2.0",
      "category": "materials-quantities",
      "last_verified": "2026-10-31",
      "url": "https://craftquantities.com/calculators/materials-quantities/concrete-calculator/"
    },
    …
  }
}

CSV y Markdown

--csv imprime la tabla principal con los valores sin redondear y las unidades en columnas propias, lista para una hoja de cálculo; su última línea lleva el enlace. --md imprime un informe en Markdown para pegar en un ticket, una wiki o un chat. El color se apaga al canalizar la salida (pipe), en un archivo y cuando NO_COLOR está definida.

--csv, abreviada
item,metric_value,metric_unit,metric,imperial_value,imperial_unit,imperial
Estimated concrete needed,2.64,m³,2.64 m³,3.45298963499,yd³,3.45 yd³
Volume (no waste),2.4,m³,2.4 m³,3.13908148635,yd³,3.14 yd³
Volume with waste factor,2.64,m³,2.64 m³,3.45298963499,yd³,3.45 yd³
Cubic feet,93.2307201447,ft³,93.23 ft³,93.2307201447,ft³,93.23 ft³
…
# interactive_url,https://craftquantities.com/calculators/materials-quantities/concrete-calculator/#slabLength=6&slabWidth=4&slabThickness=0.1&wasteFactorPercent=10&subBaseDepth=0.1&subBaseCompaction=20&formBoardDepth=0.15&reinforcement=none&meshSheet=10x5ft&meshLap=0.2&barSize=0.0127&barSpacing=0.3&barCover=0.05&barLap=0.5&cq.u=metric
--md, abreviada
## Concrete Calculator

Estimate how much concrete a slab needs — in cubic yards or cubic metres, and as a count of premix bags.

**Estimated concrete needed: 2.64 m³ (3.45 yd³)** — +10% waste

### Breakdown

| Item | Metric | US customary |
|---|---:|---:|
| Estimated concrete needed | 2.64 m³ | 3.45 yd³ |
| Volume (no waste) | 2.4 m³ | 3.14 yd³ |
…

Códigos de salida

Qué significa cada código de salida
CódigoSignificado
0Terminado.
1Un fallo interno o del motor.
2Uso: un comando o una opción desconocidos, o un valor que no se puede leer.
3No encontrado: no existe esa calculadora, esa obra o ese archivo. Siguen sugerencias.
4Rechazado: una medida negativa, o el rechazo del propio motor (un valor fuera de rango, una pregunta que dimensiona o certifica).
5Red: update no pudo llegar al registro.
130Interrumpido.

Con --json, un fallo sigue siendo JSON: ok es false y error contiene el tipo, el mensaje y las sugerencias.

Una medida negativa
Error Slab Length -6 m is outside 0.01–50 m: a negative measurement.

See every input's range: craftquantities info concrete-calculator
exit 4

Para agentes de IA

Un agente con acceso a una terminal ejecuta un comando con --json, lee result y warnings, y le da a la persona el interactive_url con su respuesta. Nada que instalar, sin clave, y nada sale de la máquina.

Una llamada
npx -y craftquantities takeoff concrete-slab --length 6m --width 4m --json

Un agente que habla MCP obtiene el mismo motor como herramientas. init imprime la configuración para su cliente:

Configuración MCP
npx craftquantities init claude
npx craftquantities init cursor --write

El servidor remoto no necesita ninguna instalación: vea el servidor MCP remoto.

Autocompletado en la terminal

Los scripts completan comandos, opciones, slugs de calculadoras, ids de cuantificaciones, revisiones de presupuestos y valores de opciones mientras escribe.

Agréguelo a su terminal
# bash
eval "$(craftquantities completion bash)"
# zsh
eval "$(craftquantities completion zsh)"
# fish
craftquantities completion fish > ~/.config/fish/completions/craftquantities.fish
# PowerShell
craftquantities completion powershell | Out-String | Invoke-Expression

Lo que no hace

  • Sin precios. La mano de obra viene en horas-persona para planificar, nunca en dinero.
  • Nada se dimensiona ni se certifica. La estructura, los cables, los interruptores y la capacidad de los equipos los decide un profesional, y la respuesta lo dice.
  • Sin cuenta, sin clave y sin rastreo. Las respuestas citan su página bajo CC BY 4.0.