pentoolopen source Menu
All guides

Build a shared library

Pentool assets are normal, editable .pen documents with a small manifest. A document, page, layer, object list, or rectangular selection can become a library item.

Create assets

pentool asset create design.pen assets/card.pen \
  --id ui/card --name "Card" --layer card
pentool asset create design.pen assets/icons.pen \
  --id icons/navigation --name "Navigation icons" --rect 20 20 400 240

Register the local library

pentool library add ./assets --name project-assets
pentool library refresh project-assets
pentool explore card --category layout
pentool asset preview project-assets/ui/card --output card.png

Copy or instance

pentool add poster.pen project-assets/ui/card --mode copy --at 100 80
pentool add poster.pen project-assets/ui/card --mode instance --at 400 80

Instances keep materialized content, so documents still open and render when the library is offline. Updates are always previewed and explicitly accepted.