Documentation Index
Fetch the complete documentation index at: https://filepacks.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
@filepacks/core is the current programmatic API for filepacks artifact workflows.
Use it when a runner, harness, CI helper, or agent tool already runs inside Node.js and needs structured results without parsing CLI output.
Available today
The package exposes the same artifact primitives as the public CLI:pack()creates a deterministic.fpkartifact from a directoryinspect()reads artifact metadata and manifest entriesverify()checks the payload against the manifestcompare()structurally compares baseline and candidate artifacts
.fpk artifact format, the filepacks CLI, and @filepacks/core. The package is not a hosted API client.
Install
Minimal workflow
Return values
pack() returns the output path, input directory, manifest, and archive digest.
inspect() returns the manifest, payload file entries, and archive digest.
verify() returns ok, mismatch details, and checked file count.
compare() returns ok, summary counts, and per-file added, removed, and changed details.
Common use cases
Use@filepacks/core when you want to:
- package agent output at the end of a run
- verify a
.fpkbefore handing it to another tool - compare eval or regression outputs inside a test harness
- store structured artifact metadata in your own workflow
- build review automation without shelling out to the CLI
Example: fail on verification mismatch
Example: compare repeated runs
Planned platform direction
A future hosted API may coordinate team review state, agent handoff, policy checks, and workflow metadata around verified artifacts. That hosted coordination layer is not part of the current v0 OSS surface. The current public surface does not include hosted API routes, registry behavior, remote storage, auth, workspaces, sync, or billing. Start with the local artifact contract: create a.fpk, verify it, and compare it explicitly.