{"id":40178482,"url":"https://github.com/WilliamAGH/tui4j","last_synced_at":"2026-01-21T11:02:13.721Z","repository":{"id":329350245,"uuid":"1119217987","full_name":"WilliamAGH/tui4j","owner":"WilliamAGH","description":"TUI4J: Terminal User Interface library for Java that includes Bubble Tea ported from Go","archived":false,"fork":false,"pushed_at":"2026-01-01T21:31:29.000Z","size":11685,"stargazers_count":27,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-13T19:25:57.962Z","etag":null,"topics":["bubbletea","interface","java","maven-plugin","terminal","tui"],"latest_commit_sha":null,"homepage":"https://central.sonatype.com/artifact/com.williamcallahan/tui4j","language":"Java","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WilliamAGH.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2025-12-18T23:51:59.000Z","updated_at":"2026-01-12T12:47:38.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/WilliamAGH/tui4j","commit_stats":null,"previous_names":["williamagh/latte-v2"],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/WilliamAGH/tui4j","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WilliamAGH%2Ftui4j","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WilliamAGH%2Ftui4j/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WilliamAGH%2Ftui4j/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WilliamAGH%2Ftui4j/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WilliamAGH","download_url":"https://codeload.github.com/WilliamAGH/tui4j/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WilliamAGH%2Ftui4j/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28632253,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T04:47:28.174Z","status":"ssl_error","status_checked_at":"2026-01-21T04:47:22.943Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bubbletea","interface","java","maven-plugin","terminal","tui"],"created_at":"2026-01-19T18:01:27.162Z","updated_at":"2026-01-21T11:02:13.716Z","avatar_url":"https://github.com/WilliamAGH.png","language":"Java","funding_links":[],"categories":["Table of Contents"],"sub_categories":[],"readme":"# TUI4J\n\n[![Maven Central](https://img.shields.io/maven-central/v/com.williamcallahan/tui4j)](https://central.sonatype.com/artifact/com.williamcallahan/tui4j)\n\n**TUI4J** (Terminal User Interface for Java) is a Java TUI framework inspired by [Bubble Tea](https://github.com/charmbracelet/bubbletea). It includes a compatibility module that mirrors the original Go API for developers familiar with the Charm ecosystem.\n\nThis is a maintained fork of the original [Latte](https://github.com/flatscrew/latte) with bug fixes and improvements welcome and encouraged! Fork maintained by [William Callahan](https://williamcallahan.com).\n\n## Installation\n\n### Maven\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.williamcallahan\u003c/groupId\u003e\n    \u003cartifactId\u003etui4j\u003c/artifactId\u003e\n    \u003cversion\u003e0.2.5\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n### Gradle\n\n```groovy\nimplementation 'com.williamcallahan:tui4j:0.2.5'\n```\n\n## Quick Start\n\nTUI4J uses The Elm Architecture: define a model with `init()`, `update()`, and `view()` methods:\n\n```java\nimport com.williamcallahan.tui4j.compat.bubbletea.*;\n\npublic class Counter implements Model {\n    private int count = 0;\n\n    @Override\n    public Command init() {\n        return null;\n    }\n\n    @Override\n    public UpdateResult\u003c? extends Model\u003e update(Message msg) {\n        if (msg instanceof KeyPressMessage key) {\n            return switch (key.key()) {\n                case \"k\" -\u003e new UpdateResult\u003c\u003e(increment(), null);\n                case \"j\" -\u003e new UpdateResult\u003c\u003e(decrement(), null);\n                case \"q\" -\u003e new UpdateResult\u003c\u003e(this, QuitMessage::new);\n                default -\u003e new UpdateResult\u003c\u003e(this, null);\n            };\n        }\n        return new UpdateResult\u003c\u003e(this, null);\n    }\n\n    @Override\n    public String view() {\n        return \"Count: \" + count + \"\\n\\n(j/k to change, q to quit)\";\n    }\n\n    private Counter increment() { count++; return this; }\n    private Counter decrement() { count--; return this; }\n\n    public static void main(String[] args) {\n        new Program(new Counter()).run();\n    }\n}\n```\n\nSee the [Tutorial](docs/tutorial.md) for a complete walkthrough.\n\n## Examples\n\n![Demo](assets/demo-tape.gif)\n\nSee all the [examples](examples) including lists, text inputs, spinners, and more:\n\n![Conway's Game of Life](assets/conway-tape.gif)\n\n## Built with TUI4J\n\n### Brief\n\n[![Brief screenshot](assets/brief-screenshot.png)](https://github.com/WilliamAGH/brief)\n\n**[Brief](https://github.com/WilliamAGH/brief)** - Terminal AI chat client with slash-command palette and local tool execution. Available via Homebrew.\n\n---\n\n**Using TUI4J in your project?** We'd love to feature it! [Open an issue](https://github.com/WilliamAGH/tui4j/issues/new?title=Add%20project%20to%20Built%20with%20TUI4J\u0026labels=showcase) or submit a PR.\n\n## Compatibility with Bubble Tea\n\nTUI4J includes a compatibility layer for Bubble Tea, which is a trademark of Charmbracelet, Inc. The original Go implementation is licensed under MIT.\n\nTUI4J seeks to replicate [charmbracelet/bubbletea](https://github.com/charmbracelet/bubbletea) behavior as closely as possible, with a general 1:1 mapping for compatibility. When TUI4J adds functionality without a Bubble Tea equivalent, those APIs are treated as additive extensions.\n\nCheck [STATUS.md](STATUS.md) for current porting status.\n\n## Contributing\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines on reporting issues and submitting PRs.\n\n## Acknowledgments\n\nThis project began as a fork of the original Latte by [Lukasz Grabski](https://github.com/activey). The original work is an excellent Java port of Go's [Bubble Tea](https://github.com/charmbracelet/bubbletea) by [Charm](https://charm.sh/).\n\n## License\n\n[MIT License](LICENSE.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FWilliamAGH%2Ftui4j","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FWilliamAGH%2Ftui4j","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FWilliamAGH%2Ftui4j/lists"}