{"id":50181728,"url":"https://github.com/vancityayush/tui","last_synced_at":"2026-05-25T07:03:18.830Z","repository":{"id":353054420,"uuid":"1217182405","full_name":"vancityAyush/tui","owner":"vancityAyush","description":"Rich React+Yoga terminal UI engine extracted from Claude Code: synchronized output, alt-screen, hyperlinks, focus manager, selection/copy, theming, keybindings, vim-mode input.","archived":false,"fork":false,"pushed_at":"2026-04-22T08:06:42.000Z","size":762,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-22T10:11:32.526Z","etag":null,"topics":["bun","cli","ink","react","terminal","tui","typescript","yoga"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vancityAyush.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":null,"dco":null,"cla":null}},"created_at":"2026-04-21T16:17:51.000Z","updated_at":"2026-04-22T06:36:43.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/vancityAyush/tui","commit_stats":null,"previous_names":["vancityayush/tui"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/vancityAyush/tui","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vancityAyush%2Ftui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vancityAyush%2Ftui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vancityAyush%2Ftui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vancityAyush%2Ftui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vancityAyush","download_url":"https://codeload.github.com/vancityAyush/tui/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vancityAyush%2Ftui/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33464012,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-25T06:32:55.349Z","status":"ssl_error","status_checked_at":"2026-05-25T06:32:35.322Z","response_time":57,"last_error":"SSL_read: 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":["bun","cli","ink","react","terminal","tui","typescript","yoga"],"created_at":"2026-05-25T07:02:54.818Z","updated_at":"2026-05-25T07:03:18.818Z","avatar_url":"https://github.com/vancityAyush.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @vancityayush/tui\n\nRich React + Yoga terminal UI engine for building interactive terminal applications.\n\nSuperset of the upstream `ink` package: synchronized output, alt-screen, hyperlink pooling, focus manager, selection/copy, terminal-focus events, tab-status, bidi support, FPS tracking, theming, keybinding engine, and vim-mode input.\n\n## Status\n\nv0.1 — lifted from the source tree and trimmed into a publishable package shape. Bun-only for now because the package scripts, examples, and build are Bun-based.\n\n## Install\n\n```sh\nbun add @vancityayush/tui react\n```\n\n## Quick start\n\n```tsx\nimport { render, Box, Text } from '@vancityayush/tui'\n\nawait render(\n  \u003cBox borderStyle=\"round\" paddingX={1}\u003e\n    \u003cText color=\"cyan\"\u003ehello tui\u003c/Text\u003e\n  \u003c/Box\u003e\n)\n```\n\n## Public API (core)\n\n`render`, `createRoot`, `Box`, `Text`, `Button`, `Link`, `Spacer`, `Newline`, `Ansi`, `RawAnsi`, `NoSelect`, `ThemeProvider`, `useTheme`, `useInput`, `useStdin`, `useApp`, `useInterval`, `useAnimationFrame`, `useSelection`, `useTerminalViewport`, `useTerminalFocus`, `useTerminalTitle`, `FocusManager`, `measureElement`, `wrapText`, `supportsTabStatus`.\n\nSee `examples/` for runnable demos.\n\n## Interactive Example\n\nRun the full showcase from `packages/tui`:\n\n```sh\nbun install\nbun run example:interactive\n```\n\nThat example exercises the main interactive surfaces in this package:\n\n- `Tabs` and `Pane` for layout\n- `Spinner`, `LoadingState`, and `ProgressBar` for feedback\n- `TextInput` and `VimTextInput` for editing\n- `CustomSelect` and `SelectMulti` for list selection\n- `Markdown`, `OrderedList`, `Dialog`, `Byline`, `KeyboardShortcutHint`, and `ListItem`\n\nCore controls inside the example:\n\n- `1-5` jump between tabs\n- `Tab`, `Left`, `Right` cycle tabs\n- `Enter` activates the focused surface\n- `Ctrl+G` returns from a focused editor/selector to shell navigation\n- `t` toggles light and dark theme preview\n- `q` exits\n\n## Host integration\n\nCall `configureHost({ getGlobalConfig, saveGlobalConfig, logger })` before `render()` to plug your app's config/log plumbing. Defaults: in-memory config with `{ theme: 'dark' }`, console logger.\n\n## Publish To npm\n\nFrom `packages/tui`, build and publish with your npm account:\n\n```sh\nbun run typecheck\nbun test\nbun run build\nnpm login\nnpm publish\n```\n\nNotes:\n\n- `publishConfig.access` is already set to `public`, which is required for the first publish of a scoped package like `@vancityayush/tui`.\n- If you want this package to be publicly reusable, replace `UNLICENSED` in `package.json` with a real license before publishing.\n\n## License\n\nUNLICENSED — internal/private.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvancityayush%2Ftui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvancityayush%2Ftui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvancityayush%2Ftui/lists"}