charmbracelet/huh
Build terminal forms and prompts π€·π»ββοΈ
Build with Backblaze B2
SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.
Loading star history...
Where it stands
Rank, growth pace and release cadence relative to everything GStars tracks.
No releases in the last 90 days; the most recent was 235 days ago, with 58 contributors on GitHub.
Gained 26% fewer stars in the last 90 days than in the 90 days before.
Use Cases & Benefits
- Build interactive terminal forms and prompts with support for multiple input types and dynamic behavior.
- Offers accessible mode for screen readers and seamless integration with Bubble Tea applications for enhanced terminal UI.
- Use for creating command-line order forms or surveys with validation and multi-step grouping.
- Use for embedding interactive forms within Bubble Tea-based terminal applications requiring flexible user input.
- Use for building accessible terminal prompts that provide better feedback for visually impaired users.
Should you depend on it?
License terms, project hygiene and risks, from GitHub metadata and GStars' snapshots.
License
MIT
Permissive: commercial use, modification and redistribution are allowed with attribution.
Community files
- README: present
- Contributing guide: present
Watch-outs
No watch-outs from GStars' checks.
General guidance from repository metadata, not legal advice. How we score
From the README
A simple, powerful library for building interactive forms and prompts in the terminal.
huh?is easy to use in a standalone fashion, can be integrated into a Bubble Tea application, and contains a first-class accessible mode for screen readers.The above example is running from a single Go program (source).
Letβs build a form for ordering burgers. To start, weβll import the library and define a few variables where we'll store answers.
huh?separates forms into groups (you can think of groups as pages). Groups are made of fields (e.g.Select,Input,Text). We will set up three groups for the customer to fill out.And thatβs it! For more info see the full source for this example as well as the docs.
If you need more dynamic forms that change based on input from previous fields, check out the dynamic forms example.
Daily snapshots
Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots
Forks
272+18
Open issues
109+22
Compared with peers in CLI
Fastest-growing repositories GStars tracks in this cohort for the week of Nov 1, by 7-day star growth
| Repository | Stars | +7d | Health | Last release |
|---|---|---|---|---|
| vercel-labs/agent-desktop | 17.0K | +13.3K | 33 | today |
| mattpocock/skills | 315.4K | +8.7K | 35 | 7 days ago |
| stablyai/orca | 116.8K | +6.6K | 40 | today |
| obra/superpowers | 313.1K | +4.5K | 53 | 2 days ago |
| Panniantong/Agent-Reach | 109.3K | +3.0K | 60 | 4 days ago |
| charmbracelet/huh | 7.2K | β | 47 | 235 days ago |
| Category median | 116.8K | +6.6K | 40 | β |
Also by charmbracelet
Other repositories from this maintainer that GStars tracks
Discover Repositories
Search across tracked repositories by name or description