bubbletea/README.md

58 lines
1.9 KiB
Markdown
Raw Normal View History

# Bubble Tea
2020-01-15 16:58:41 -05:00
The fun, functional and stateful way to build terminal apps. A Go framework
based on [The Elm Architecture][elm].
2020-05-12 16:39:08 -04:00
Bubble Tea is well-suited for simple and complex terminal applications,
either inline, full-window, or a mix of both. It's been battle-tested in
several large projects and is production-ready.
2020-01-27 21:27:20 -05:00
To get started, see the [tutorials][tutorials] and [examples][examples].
2020-01-15 16:58:41 -05:00
[tutorials]: https://github.com/charmbracelet/tea/tree/master/tutorials
[examples]: https://github.com/charmbracelet/tea/tree/master/examples
2020-01-15 16:58:41 -05:00
## Bubble Tea in the Wild
2020-01-15 16:58:41 -05:00
For some Bubble Tea programs in production, see:
2020-01-15 16:58:41 -05:00
* [Glow](https://github.com/charmbracelet/glow): a markdown reader, browser and online markdown stash
* [The Charm Tool](https://github.com/charmbracelet/charm): the Charm user account manager
2020-01-15 16:58:41 -05:00
2020-05-12 16:39:08 -04:00
## Libraries we use with Bubble Tea
* [Bubbles][bubbles] various Bubble Tea components we've built
* [Termenv][termenv]: Advanced ANSI styling for terminal applications
* [Reflow][reflow]: ANSI-aware methods for reflowing blocks of text
* [go-runewidth][runewidth]: Get the physical width of strings in terms of terminal cells. Many runes, such as East Asian charcters and emojis, are two cells wide, so measuring a layout with `len()` often won't cut it!
2020-01-15 16:58:41 -05:00
[termenv]: https://github.com/muesli/termenv
[reflow]: https://github.com/muesli/reflow
[bubbles]: https://github.com/charmbracelet/bubbles
[runewidth]: https://github.com/mattn/go-runewidth
2020-04-27 11:43:11 -04:00
## Acknowledgments
2020-01-15 16:58:41 -05:00
Inspired by [The Elm Architecture][elm] by Evan Czaplicki et al. and
[go-tea][gotea] by TJ Holowaychuk.
2020-01-15 16:58:41 -05:00
2020-01-15 23:40:50 -05:00
[elm]: https://guide.elm-lang.org/architecture/
2020-01-15 16:58:41 -05:00
[gotea]: https://github.com/tj/go-tea
2020-05-12 16:39:08 -04:00
2020-01-24 15:05:25 -05:00
## License
2020-07-29 16:43:59 -04:00
[MIT](https://github.com/charmbracelet/bubbletea/raw/master/LICENSE)
***
A [Charm](https://charm.sh) project.
<img alt="the Charm logo" src="https://stuff.charm.sh/charm-badge.jpg" width="400">
Charm热爱开源!