Back to directory
pacta-dev avatar
pacta-dev / pacta-cli

pacta-cli

Turn software architecture into versioned and queryable data

23

Stars

2

Forks

0

Watchers

Apache-2.0

License

Pacta

Architecture Insights, Governance & Versioned Design

PyPIDocsIssues

PyPI - Version PyPI - Python Version GitHub License


Warning: Experimental. Expect breaking changes until release 0.1.0

Pacta turns software architecture into versioned, queryable data — so teams can see, compare, and reason about architectural change over time, not just block violations.

pip install pacta

Pacta Demo

Supported languages:

  • Python
  • Java (coming soon)
  • Go (coming soon)
  • C# (coming soon)

Why?

Codebases rot. Architecture degrades through small changes no one tracks. Pacta turns architecture into something measurable, reviewable, and enforceable — catching drift early, not months later.

What it does

  • Architecture snapshots — version your architecture like code
  • History & trends — track how dependencies, coupling, and violations evolve over time
  • Diffs — compare architectural states like Git commits
  • Metrics & insights — nodes, edges, layers, instability, drift
  • Rules & governance — express architectural intent and enforce it incrementally
  • Baseline mode — govern change without being blocked by legacy debt

Think of Pacta like Git for architecture

Git Pacta
git add pacta snapshot save — capture an architectural snapshot
git commit --verify pacta check — evaluate rules against a snapshot
git commit pacta scan — snapshot + check in one step
git log pacta history — timeline and trends of architectural states
git diff pacta diff — compare two snapshots
branch protection rules.pacta.yml — governance that prevents drift

See the Getting Started guide for a full walkthrough.

Docs

Roadmap (short)

  • Open-source CLI and analysis engine
  • Content-addressed snapshots with history tracking
  • Trend analysis with chart export
  • Architecture visualization (Mermaid, D2)
  • Health metrics (drift score, instability)
  • Future: Architecture Intelligence Layer:
    • Cross-repository insights
    • Historical trend analysis
    • Team-level governance and reporting

License

Apache-2.0. See LICENSE.

Releases

Jan 29, 2026

Download .zip

0.0.7 - 2026-01-29 Documentation

Update GitHub Action and asset links to pacta-dev repository Update README asset links and CI action usage

Miscellaneous

Update changelog for v0.0.6 Update project...

Jan 29, 2026

Download .zip

0.0.6 - 2026-01-29 Added

reporting: Add GitHub PR markdown renderer with trends and diff detail names cli: Add GitHub report format with snapshot-based trends summary action: Add composite GitHub Act...

Jan 27, 2026

Download .zip

0.0.5 - 2026-01-27 Added

cli: Add check command to evaluate rules against saved snapshots cli: Document new pacta check command and two-step snapshot workflow

Changed

Format argparse argument and r...

Jan 26, 2026

Download .zip

What's Changed

chore(ci): create PR for changelog updates instead of pushing to main by @akhundMurad in #8 docs: refresh README and getting started with architecture snapshot/h… by @akhundMurad in #1...

Jan 25, 2026

Download .zip

🚀 Release v0.0.3 This release focuses on history tracking, trend visualization, documentation improvements, and release automation, along with several CLI and model enhancements. ✨ Features

Histor...