SkillAgentSearch skills...

Zbonsai

Inspired by cbonsai, zbonsai is a Zig-based terminal application that procedurally generates beautiful bonsai trees in your command line interface. zbonsai brings the zen of bonsai to your terminal, reimagined in the Zig programming language.

Install / Use

/learn @JustinBraben/Zbonsai
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Zig

zbonsai

zbonsai_capture.png

Inspired by cbonsai, zbonsai is a Zig-based terminal application that procedurally generates beautiful bonsai trees in your command line interface. zbonsai brings the zen of bonsai to your terminal, reimagined in the Zig programming language.

Features

  • Procedurally generated bonsai trees
  • Customizable tree parameters
  • Terminal-based user interface using libvaxis
  • Command-line argument parsing with zig-clap

Installation

To install zbonsai, you'll need to have Zig 0.15.1 on your system. Then, follow these steps:

  1. Clone the repository:

    git clone https://github.com/JustinBraben/zbonsai.git
    cd zbonsai
    
  2. Build the project:

    zig build
    
  3. Run zbonsai:

    zig build run
    

Usage

Basic usage:

zig build run

For more options, use the --help flag:

zig build run -- --help

To generate and view the tree live:

zig build run -- -l

Generate tree live with verbose output.

zig build run -- -l -v minimal

Print tree to terminal and give back control

zig build run -- -p

Generate tree with custom leaves

# ASCII leaves
zig build run -- -c "&,*,#,@,+"

# Unicode/emoji leaves  
zig build run -- -c "🌿,🍃,🌸,✿,🌺"

# Mixed
zig build run -- -c "&,🌿,*,🍃"

Custom colours (cherry blossom)

zbonsai -p -k "175,94,218,137"

Live mode looping infinitely

zig build run -- -l -i

Dependencies

  • libvaxis: A Zig library for creating terminal user interfaces
  • zig-clap: A command-line argument parser for Zig

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgements

TODO

  • [x] Generating Bonsai
  • [x] Three different plant bases
  • [x] Instantly view generated tree
  • [x] Live view of tree generating by optionally passing -l
  • [x] Implement message box
  • [x] Implement print to terminal on completion -p
  • [x] Implement file saving and loading
  • [x] Improve colour support
  • [ ] Add option to use different Random Number Generators
  • [ ] Add benchmarking/testing
  • [ ] Improve resizing
  • [ ] Improve documentation

Note: This project is a work in progress and is primarily for learning purposes.

Related Skills

View on GitHub
GitHub Stars12
CategoryDevelopment
Updated2mo ago
Forks0

Languages

Zig

Security Score

90/100

Audited on Jan 19, 2026

No findings