# Cutting List Optimizer — Panel and Board Layouts with Kerf (`ponderable_hydrometer/cut-list`) Actor

Pack a list of parts onto stock sheets or boards, accounting for saw kerf and optional rotation. Returns the boards needed, every placement with coordinates and the material yield. No API key.

- **URL**: https://apify.com/ponderable_hydrometer/cut-list.md
- **Developed by:** [Ponderable Hydrometer](https://apify.com/ponderable_hydrometer) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Cutting List Optimizer — Panel and Board Layouts with Kerf

**Turn a parts list into a cutting plan.** Give the parts you need and your stock size, and get back how many boards it takes, where each part sits on each board (with coordinates), and how much material you actually use. Built for sheet goods (plywood, MDF, melamine) and boards. No API key.

### What you get

- One **board** row per stock sheet used, each with its parts and their placements (`x`, `y`, `width`, `length`, `rotated`) and the board's yield.
- One **summary** row: boards used, parts requested vs placed, overall yield, waste area and any parts too big to fit.

### Output sample

```json
{ "type": "board", "board": 1, "partCount": 8, "yieldPct": 96.7, "usedArea": 2880000,
  "parts": [ { "label": "side", "x": 0, "y": 0, "width": 400, "length": 1800, "rotated": false }, … ] }
{ "type": "summary", "boardsUsed": 2, "stockWidth": 1220, "stockLength": 2440, "kerf": 3,
  "allowRotation": true, "partsRequested": 14, "partsPlaced": 14, "overallYieldPct": 80,
  "wasteArea": 1193600, "unplaceable": [] }
```

### Input

| Field | Type | Default | Description |
|-------|------|---------|-------------|
| `parts` | array | — | Each item `{ label, length, width, quantity }`. Use consistent units (mm recommended). |
| `stockWidth` | integer | 1220 | Width of one stock sheet/board. |
| `stockLength` | integer | 2440 | Length of one stock sheet/board. |
| `kerf` | integer | 3 | Blade width removed per cut. |
| `allowRotation` | boolean | true | Allow parts to be turned 90°. Turn off to keep grain direction. |

### Good to know

- The layout is **guillotine**: every piece is freed by an edge-to-edge cut, which is how a table saw or panel saw actually works.
- Kerf is reserved on the cut side of each part, so the plan does not assume a zero-width blade.
- Parts larger than the stock (in both orientations when rotation is on) are listed under `unplaceable` instead of silently dropped.
- Each run tries 48 packing strategies (part order, fit rule, first-cut direction) and keeps the plan with the fewest boards, then the fullest boards first, so the leftover sits on the last board as one usable offcut. It is fast and good, not provably optimal.

### Pricing

Pay per result — **$10.00 per 1,000 results** (one run of a parts list produces a handful of rows), plus Apify's standard per-run start event ($0.00005 per GB of memory, so a fraction of a cent per run). No subscription.

# Actor input Schema

## `parts` (type: `array`):

The parts to cut. Each item: { label, length, width, quantity }. Use consistent units (mm recommended).

## `stockWidth` (type: `integer`):

Width of one stock sheet/board.

## `stockLength` (type: `integer`):

Length of one stock sheet/board.

## `kerf` (type: `integer`):

Blade width removed per cut, in the same units.

## `allowRotation` (type: `boolean`):

Allow parts to be rotated 90° (turn off for grain direction).

## Actor input object example

```json
{
  "parts": [
    {
      "label": "shelf",
      "length": 600,
      "width": 400,
      "quantity": 8
    },
    {
      "label": "side",
      "length": 1800,
      "width": 400,
      "quantity": 2
    },
    {
      "label": "door",
      "length": 700,
      "width": 500,
      "quantity": 4
    }
  ],
  "stockWidth": 1220,
  "stockLength": 2440,
  "kerf": 3,
  "allowRotation": true
}
```

# Actor output Schema

## `results` (type: `string`):

All rows produced by this run, as JSON.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "parts": [
        {
            "label": "shelf",
            "length": 600,
            "width": 400,
            "quantity": 8
        },
        {
            "label": "side",
            "length": 1800,
            "width": 400,
            "quantity": 2
        },
        {
            "label": "door",
            "length": 700,
            "width": 500,
            "quantity": 4
        }
    ],
    "stockWidth": 1220,
    "stockLength": 2440,
    "kerf": 3
};

// Run the Actor and wait for it to finish
const run = await client.actor("ponderable_hydrometer/cut-list").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "parts": [
        {
            "label": "shelf",
            "length": 600,
            "width": 400,
            "quantity": 8,
        },
        {
            "label": "side",
            "length": 1800,
            "width": 400,
            "quantity": 2,
        },
        {
            "label": "door",
            "length": 700,
            "width": 500,
            "quantity": 4,
        },
    ],
    "stockWidth": 1220,
    "stockLength": 2440,
    "kerf": 3,
}

# Run the Actor and wait for it to finish
run = client.actor("ponderable_hydrometer/cut-list").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "parts": [
    {
      "label": "shelf",
      "length": 600,
      "width": 400,
      "quantity": 8
    },
    {
      "label": "side",
      "length": 1800,
      "width": 400,
      "quantity": 2
    },
    {
      "label": "door",
      "length": 700,
      "width": 500,
      "quantity": 4
    }
  ],
  "stockWidth": 1220,
  "stockLength": 2440,
  "kerf": 3
}' |
apify call ponderable_hydrometer/cut-list --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,ponderable_hydrometer/cut-list"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/atZZWHVb8ADb8QXBu/builds/bvN1P0KgkL66L9Nq0/openapi.json
