Metadata-Version: 2.5
Name: pacxio
Version: 0.0.15
Summary: Packaging prepress for coding agents: dielines, 3D, print-ready factory files
License-Expression: MIT
License-File: LICENSE
Requires-Python: >=3.11
Requires-Dist: ezdxf>=1.3
Requires-Dist: fonttools>=4.50
Requires-Dist: numpy>=1.26
Requires-Dist: packaging>=24
Requires-Dist: pikepdf>=9.0
Requires-Dist: pillow>=10.0
Requires-Dist: pydantic>=2.6
Requires-Dist: pyyaml>=6.0
Requires-Dist: reportlab>=4.0
Requires-Dist: shapely>=2.1
Requires-Dist: typer>=0.12
Description-Content-Type: text/markdown

# pacxio

**Packaging, from a prompt — parametric CAD dielines, 3D folding & print-ready factory files.**

[![PyPI version](https://img.shields.io/pypi/v/pacxio?color=2337FF)](https://pypi.org/project/pacxio/)
[![License: MIT](https://img.shields.io/badge/License-MIT-0B0B0D.svg)](LICENSE)
[![MCP Registry](https://img.shields.io/badge/MCP_Registry-dev.pacxio%2Fpacxio-2337FF)](https://pacxio.dev/install)
[![Glama MCP](https://glama.ai/mcp/servers/pacxio-dev/pacxio/badges/score.svg)](https://glama.ai/mcp/servers/pacxio-dev/pacxio)

Open-source Python parametric packaging engine and MCP server for **Claude Code, Codex, Antigravity, WorkBuddy** and any stdio MCP client. Generate editable dielines (DXF R12, CF2, vector PDF, SVG) and interactive 3D fold previews locally for **most FEFCO and ECMA box styles, flexible pouches and bottle/cup labels**, then use the pacxio cloud service (free during early access) for artwork layout, concept-to-vector restoration, specialty-paper white underlays, finish plates, preflight and factory delivery packs.

[Website](https://pacxio.dev/) · [Online Generator](https://pacxio.dev/generator) · [Structure Library](https://pacxio.dev/structures) · [Guides](https://pacxio.dev/guides) · [Install](https://pacxio.dev/install) · [Docs](https://pacxio.dev/docs) · [Examples](https://pacxio.dev/examples) · [PyPI](https://pypi.org/project/pacxio/)

---

## See it in action

A 51-second walkthrough: a brief in your coding agent, design choices, the dieline approval and the local packaging workbench.

https://github.com/user-attachments/assets/a0312f38-b2d6-444b-a0ae-4d56e6c51edf

[Watch on pacxio.dev](https://pacxio.dev/#demo) · [Try the free browser dieline generator (no install) →](https://pacxio.dev/generator)

## Try locally in 10 seconds (no account required)

Generate a parametric FEFCO 0427 mailer dieline and 3D fold preview right from your terminal with [uv](https://docs.astral.sh/uv/):

```bash
uvx pacxio structures preview 0427 --L 280 --W 210 --H 60 --out preview/
```

Or connect from any stdio MCP client via the Official MCP Registry (`dev.pacxio/pacxio`):

```bash
uvx pacxio mcp serve
```

## Made with pacxio

### pacxio Dieline Tee

**FEFCO 0427 mailer · 280 × 210 × 60 mm**

A mailer for pacxio's own T-shirt: a blue-to-coral gradient, a silver-foil mark, and a design carried across the back and base. The concept sets the direction; final artwork is rebuilt as vectors on the dieline and previewed on the folded 3D structure.

| Concept | Folded 3D preview |
|---|---|
| ![pacxio Dieline Tee concept](https://pacxio.dev/assets/gallery/tee-concept.webp) | ![pacxio Dieline Tee folded 3D preview](https://pacxio.dev/assets/gallery/tee-front.webp) |

| Open view | Dieline proof |
|---|---|
| ![Open FEFCO 0427 mailer showing the inside and closure](https://pacxio.dev/assets/gallery/tee-open.webp) | ![pacxio Dieline Tee artwork on its dieline](https://pacxio.dev/assets/gallery/tee-dieline.webp?v=3) |

[See the full gallery, including concepts, 3D views and dieline proofs →](https://pacxio.dev/examples)

## Install in your AI agent

Paste one line into **Claude Code, Codex, Antigravity or WorkBuddy** (inside a project folder):

```text
Read pacxio.dev/install to install pacxio
```

Or install manually with [uv](https://docs.astral.sh/uv/):

```bash
uv tool install pacxio
pacxio setup --agent claude-code --yes   # or --agent codex | --agent antigravity
pacxio mcp doctor
```

For **WorkBuddy** (run inside your project folder):

```bash
pacxio setup --agent workbuddy --scope user --yes
pacxio mcp doctor --client workbuddy
```

Restart your agent after setup, then try a brief:

```text
Make a T-shirt mailer, 280 × 210 × 60 mm.
Show me the dieline and folding 3D before we work on the artwork.
```

[Full installation guide →](https://pacxio.dev/install)

## Open-source core and cloud service

| On your machine · this repository · MIT | On the pacxio cloud service · free during early access |
|---|---|
| Parametric dielines for most FEFCO & ECMA box styles, flexible pouches and bottle/cup labels | Artwork composition, typography and one-command concept-to-vector restoration (`pacxio restore run`) |
| Lossless lines-and-arcs dieline export: DXF R12, CF2, vector PDF and SVG | Cloud neural background removal (`BiRefNet-lite`) and 300 ppi CMYK preparation |
| Interactive 3D folding preview (including metallic, holographic, pearl, black & textured stocks) | Layered CMYK print PDF, specialty-paper white ink underlays and named spot finish plates (foil, spot UV, emboss) |
| Local visual workbench (`127.0.0.1`), workflow Skill and stdio MCP server | 30+ prepress preflight checks, specification sheet and factory delivery pack |

The client routes cloud commands automatically. Run `pacxio login` to connect your account. Cloud commands send the required job files to the service and return previews, reports and delivery files to your local job folder.

[How the open-source core and cloud service work →](https://pacxio.dev/docs#open) · [Privacy](https://pacxio.dev/privacy)

## Command line

Find matching structures from a brief, build a job, and open the local workbench:

```bash
pacxio structures suggest --use ecommerce --no-tape --material corrugated --json
pacxio job init jobs/demo --fefco 0427 --L 280 --W 210 --H 60 --material flute_e
pacxio studio start jobs/demo --open
pacxio next jobs/demo
```

Every command accepts `--json` and returns `{ok, command, job, artifacts, data, errors, warnings}`. Errors include a suggested fix. Messages default to English; set `PACXIO_LANG=zh` for Chinese.

[Browse the command guide →](https://pacxio.dev/docs) · [Packaging & prepress guides →](https://pacxio.dev/guides)

## Production checks

- **Print text is typeset by the engine and outlined.** AI-generated print images must not contain text.
- **Concepts guide the design.** Final artwork is rebuilt from confirmed flats before it goes on the dieline.
- **You approve the proof.** Dieline approval is a user step; your agent must leave it to you.
- **Preflight errors block export.** Fix them before generating factory files.
- **Dielines use lines and arcs.** DXF R12 and CF2 do not contain Bézier curves.
- **Cut and crease lines use named spot colors and overprint.** They are never drawn in Registration.
- **Check each structure's verification status.** Structural allowances, seal widths and clearances are initial values unless calibrated — always order a physical proof before the first production run.

## Development

```bash
uv sync
uv run pytest
uv run ruff check .
uv run mypy
uv run pacxio env check
```

Tests that need the closed-source package are skipped in an open-source-only installation. Fonts and ICC profiles are not bundled in this repository.

<details>
<summary><strong>Automatic updates &amp; diagnostics</strong></summary>

Automatic updates apply only to a standard, unpinned `uv tool install pacxio` from PyPI. `pip`, pinned versions, editable/source installs and custom-source installations remain manual. Eligible installations check in the background when MCP starts. A verified update is used on a later startup; your current session keeps its version. Set `PACXIO_AUTO_UPDATE=0` to turn automatic updates off.

Check the running and prepared versions locally with `pacxio update status --json`, or ask your agent to call `pacxio_update_status`.

To migrate an older install:

```bash
uv tool upgrade pacxio
pacxio setup --yes
```

Restart your agent afterward. Setup updates every supported agent found on your machine; add `--agent codex`, `--agent claude-code`, `--agent antigravity` or `--agent workbuddy` to target one. To replace a running Workbench, run `pacxio studio stop <job>` and then `pacxio studio start <job> --open`.

</details>

## License and contact

The code in this repository is licensed under [MIT](LICENSE). Cloud features are provided as a separate service.

[Website](https://pacxio.dev/) · [Documentation](https://pacxio.dev/docs) · [Guides](https://pacxio.dev/guides) · [Terms](https://pacxio.dev/terms) · [support@pacxio.dev](mailto:support@pacxio.dev)

<!-- mcp-name: dev.pacxio/pacxio -->
