Back to plugins

fledge-plugin-stats

v0.1.0 Official rust โ˜… 0 Updated 5/5/2026 GitHub
Install with fledge
fledge plugins install CorvidLabs/fledge-plugin-stats

fledge-plugin-stats

Example plugin demonstrating the fledge-v1 protocol. Shows project statistics including file counts, lines of code, git history, and change tracking between runs.

Protocol features used

  • log โ€” status messages during analysis
  • progress โ€” 5-step progress bar
  • exec โ€” runs shell commands (find, git, wc)
  • metadata โ€” fetches git_status and git_tags
  • store / load โ€” persists stats between runs for delta tracking
  • output โ€” renders a formatted stats card

Install

# Install from GitHub:
fledge plugin install CorvidLabs/fledge-plugin-stats

# Or clone and install locally:
git clone https://github.com/CorvidLabs/fledge-plugin-stats.git
fledge plugin install ./fledge-plugin-stats

Usage

fledge stats

Example output

  โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
  โ”‚  fledge           stats                 โ”‚
  โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
  โ”‚  Language    rust                        โ”‚
  โ”‚  Files          142 (+3)                โ”‚
  โ”‚  LOC          12847 (+215)              โ”‚
  โ”‚  Commits        287                     โ”‚
  โ”‚  Test files      12 (8%)               โ”‚
  โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
  โ”‚  Rust               38                  โ”‚
  โ”‚  Markdown           22                  โ”‚
  โ”‚  TOML                8                  โ”‚
  โ”‚  Other              74                  โ”‚
  โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
  โ”‚  Top contributors                       โ”‚
  โ”‚    42  Corvid Agent                     โ”‚
  โ”‚    18  Leif                             โ”‚
  โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
  โ”‚  Recent commits                         โ”‚
  โ”‚    abc1234 fix: plugin protocol test    โ”‚
  โ”‚    def5678 feat: add lanes pipeline     โ”‚
  โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ

Development

cargo build --release
cargo clippy -- -D warnings
cargo fmt --check

CI runs on every push and PR via GitHub Actions (.github/workflows/ci.yml).

Zero dependencies

This plugin uses only the Rust standard library โ€” no external crates. JSON is handled via simple string helpers, making it a minimal reference implementation of the fledge-v1 protocol.

Metadata

License
โ€”
Default branch
main
Open issues
0
Topics
fledge, fledge-plugin, metrics, stats

Built something similar?

Submit your plugin