https://github.com/jasonuc/usermakertui
interactive bubble tea form
https://github.com/jasonuc/usermakertui
bubbletea charmbracelet form formvalidation interactive tui
Last synced: 10 months ago
JSON representation
interactive bubble tea form
- Host: GitHub
- URL: https://github.com/jasonuc/usermakertui
- Owner: jasonuc
- License: mit
- Created: 2024-10-23T23:22:50.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-10-24T00:44:31.000Z (over 1 year ago)
- Last Synced: 2025-02-14T02:30:59.709Z (12 months ago)
- Topics: bubbletea, charmbracelet, form, formvalidation, interactive, tui
- Language: Go
- Homepage:
- Size: 381 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# **usermakertui** π
**A dynamic, real-time form-based TUI built with [Bubble Tea](https://github.com/charmbracelet/bubbletea)!**
Showcases how to create responsive forms in the terminal, giving users instant feedback as they type.
## **Features**
- π₯οΈ **Interactive Real-Time Form** - Provide immediate, real-time feedback to users as they enter data.
- π **Customizable Input Fields** - Includes secure password input, and can be easily extended with more fields.
- π¨ **Responsive Design** - Built using [Bubble Tea](https://github.com/charmbracelet/bubbletea) and [Lip Gloss](https://github.com/charmbracelet/lipgloss) for modern, sleek UIs.
- βοΈ **Flexible Integration** - Easy to adapt and integrate into your own TUI projects.
## **Getting Started**
### **Installation & Usage**
`usermakertui` demonstrates how to build a real-time form in the terminal. It comes with a sample application that shows a user creation form, but you can modify it for other use cases.
1. Clone and build:
```bash
git clone https://github.com/jasonuc/usermakertui.git
cd usermakertui
go build -o usermaker
```
2. Run the example form:
```bash
./usermaker
```
### **How It Works**
`usermakertui` leverages the power of [Bubble Tea](https://github.com/charmbracelet/bubbletea) to create a form that **validates inputs in real-time**. Users get immediate feedback as they type, with errors highlighted and suggestions displayed dynamically. The example provided shows how you can create a form for user input (e.g., email, password), but the concept can be extended to any kind of terminal-based form.
### **Demo**

### **Customization**
Want to adapt the real-time form for your own needs? Hereβs how you can customize it:
- **Add or Modify Input Fields**: Add new `textinput.Model` components for different types of data.
- **Change Styles**: Easily tweak the styling using [Lip Gloss](https://github.com/charmbracelet/lipgloss) to match your brand or aesthetic.
- **Use for Different Applications**: Integrate this form concept into other Bubble Tea-based TUIs, like setup wizards, data entry tools, or interactive scripts.
### **Why Real-Time Feedback in TUIs?**
The real power of `usermakertui` is showing how **real-time feedback** can transform the user experience in terminal applications. By giving users immediate validation, error handling, and visual cues, you can make your TUIs as intuitive and user-friendly as modern graphical apps.
### **Open Source & Contributions**
`usermakertui` is open source and free to use. Feel free to explore, adapt, and share your modifications. Contributions are welcome β fork the repository, make your improvements, and open a pull request.