filepacks is artifact infrastructure for workflows that produce files. It takes a directory of generated output and turns it into one deterministicDocumentation Index
Fetch the complete documentation index at: https://filepacks.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
.fpk file with a canonical manifest. That gives you a stable unit you can:
- pack after a run completes
- inspect without unpacking to a working directory
- verify before you trust or share it
- compare against another run with predictable exit codes
What you get from a .fpk artifact
- One reviewable file instead of a loose directory tree
- A canonical
manifest.jsonthat records file paths, sizes, hashes, counts, and totals - Deterministic bytes for the same logical input, so the archive digest is meaningful
- Local verification that the payload still matches the manifest
- Manifest-driven comparison that reports added, removed, and changed files consistently
Default CLI workflow
npx filepacks ... so the examples work from a clean shell. If you install globally with npm install -g filepacks, drop the npx prefix.
compare exits 0 when the artifacts are structurally identical and 20 when any packaged file changed. That makes it directly usable in scripts, CI jobs, and agent harnesses.
CLI or library?
| If you want to… | Use |
|---|---|
| Package and review artifacts from the shell | filepacks CLI |
| Build artifact handling into a runner, harness, or tool | @filepacks/core |
| Understand the artifact contract itself | spec/FILEPACK_SPEC.md and the artifact reference pages |
@filepacks/core when you want structured results in code:
Public OSS surface
The public OSS surface is intentionally narrow:pack— create a deterministic.fpkartifact from a directoryinspect— read artifact metadata from a.fpkfileverify— validate the payload against the manifestcompare— structurally compare two artifacts
Why teams use it
filepacks is useful when you need output to be:- portable enough to hand to another person or another agent
- inspectable without recreating the original run environment
- verifiable before you review or compare it
- comparable across repeated runs, prompts, models, or commits
Start here
- Start with Quickstart.
- Read Why filepacks for the problem framing and boundaries.
- Use CLI workflows for practical command patterns.
- Read Programmatic API when you want
@filepacks/corefrom Node.js automation. - Read Use cases and Agent workflows for real review loops.
- Use Artifacts when you need format and manifest details.