Skip to content
pubscout

peanut

6.0.2, released 3 months ago by kevmoo.com

Update your GitHub gh-pages branch with compiled Dart web app output.

$ flutter pub add peanut
Source repository

What it does

Peanut builds your Dart or Flutter web app and automatically commits the compiled output to your local gh-pages branch. It handles running `flutter build web` or `build_runner` and supports custom build configurations, post-build scripts, and automatic version info injection.

AI-written summary of version 6.0.2, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You want to host a Dart or Flutter web app on GitHub Pages
  • You want an automated way to build and push web outputs to the gh-pages branch

Skip it when

  • You are deploying web apps to hosting providers other than GitHub Pages via git branches

Strengths

  • Simplifies GitHub Pages deployment for Dart and Flutter web
  • Supports custom configuration via peanut.yaml
  • Allows running custom post-build Dart scripts before committing

Weaknesses

  • Limited specifically to updating a git branch with web build output

Setup

Kind
Pure Dart
Effort
Low
Code generation
Yes (build_runner)
Direct dependencies
13

Activate globally using `dart pub global activate peanut` or `flutter pub global activate peanut`, then run `peanut` in your project root.

dart pub global activate peanut
peanut

Alternatives

Packages that do the same job and could replace peanut.

Works with

Packages commonly used together with peanut: ones it builds on, ones built on it, and its own family.