bananahub
v0.1.3
Published
Template manager for BananaHub Skill — installable Gemini workflow modules
Downloads
491
Maintainers
Readme
bananahub
Template manager for BananaHub Skill — the agent-native multi-provider image workflow.
Install, manage, and share prompt or workflow modules for the BananaHub Skill workflow. BananaHub keeps the runtime lean and lets reusable prompt structures and guided SOPs travel as installable units.
Model Strategy
BananaHub now treats provider/model choice as a first-class interaction:
- Prefer
gpt-image-2for new high-quality generation, launch visuals, README covers, information graphics, and premium first-pass outputs. - Prefer Gemini / Nano Banana (
gemini-3-pro-image-previewfirst) for edit-heavy, multi-reference, consistency-heavy, and previously validated template workflows. - Templates can declare provider/model support explicitly, so
bananahubcan surface the recommended model instead of treating all image models as interchangeable.
Installation
npm install -g bananahubOr run directly with npx:
npx bananahub <command>Requirements
- Node.js >= 18.0.0
Commands
add <user/repo[/path/to/template]>
Install template(s) from a GitHub repository, a specific template directory, or a known template collection.
bananahub add user/bananahub-infographics
bananahub add bananahub-ai/templates/cute-sticker
bananahub add user/multi-template-repo --template portraitOptions:
--template <name>— Install a specific template from a multi-template directory or known collection--all— Install all templates from a multi-template directory or known collection
remove <template-id>
Uninstall an installed template.
bananahub remove cyberpunklist [--by-model]
List all installed templates.
bananahub list
bananahub list --by-modelupdate [template-id]
Update one or all installed templates.
bananahub update cyberpunk # update a specific template
bananahub update # update all templatesinfo <template-id>
Show details about an installed template (metadata, version, source).
bananahub info cyberpunkinfo now shows provider/model support and suggests an explicit override when a template has a stronger recommended model, for example gpt-image-2.
models [--remote]
Show BananaHub's model support map from the local registry or the remote hub catalog.
bananahub models
bananahub models --remote
bananahub models --provider openaisearch <keyword>
Search the hub catalog for prompt or workflow templates.
bananahub search portrait
bananahub search logo --curated
bananahub search logo --model gpt-image-2
bananahub search diagram --provider openai --capability generationOptions:
--limit <n>— Limit the number of results (default: 8, max: 20)--curated— Search only curated templates--discovered— Search only discovered templates--provider <id>— Filter by provider, for exampleopenaiorgoogle-ai-studio--model <id>— Filter by canonical model id or alias, for examplegpt-image-2ornano-banana-pro--capability <name>— Filter by capability such asgeneration,edit, ormask_edit
trending
Show recent install trends from the BananaHub API.
bananahub trending
bananahub trending --period 24hOptions:
--period <24h|7d>— Trending window (default:7d)--limit <n>— Limit the number of results (default: 10, max: 20)
init
Scaffold a new prompt or workflow template project in the current directory.
bananahub init
bananahub init --type workflowvalidate [path]
Validate a template directory against the BananaHub template spec.
bananahub validate ./my-template
bananahub validate # validates current directoryregistry rebuild
Rebuild the local registry index from installed templates.
bananahub registry rebuildGlobal Options
| Flag | Description |
|------|-------------|
| --help, -h | Show help message |
| --version, -v | Show version |
Template Format
A valid BananaHub template directory must contain a template.md file with YAML frontmatter at its root. Published templates should declare a frontmatter license such as CC-BY-4.0 and include a repo LICENSE file. Templates may be type: prompt or type: workflow, and may live as:
- a single-template repository with
template.mdat repo root - a multi-template repository with
bananahub.jsonplus per-template subdirectories - a known collection layout such as
references/templates/<template-id>/template.md
Contributing
Code, docs, and tests contributed to this repo are accepted under the repo's MIT license.
Sign off each commit with the Developer Certificate of Origin:
git commit -s -m "feat: your change"Template repos created with bananahub init default to CC-BY-4.0 for template content. If you publish community templates, keep the template frontmatter license field and the repo LICENSE file in sync.
License
Code in this repo is licensed under MIT.
