Skip to content

Getting Started with Glyph

Create a new Glyph project:

Terminal window
bun create @semos-labs/glyph my-tui-app
cd my-tui-app

Or add Glyph to an existing project:

Terminal window
bun add @semos-labs/glyph

Create an index.tsx file:

import { render, Box, Text } from "@semos-labs/glyph";
function App() {
return (
<Box flexDirection="column" padding={1}>
<Text bold>✨ My First TUI</Text>
<Text>Built with Glyph</Text>
</Box>
);
}
render(<App />);

Run it:

Terminal window
bun index.tsx

That’s it — you should see your TUI app rendered in the terminal.

A typical Glyph project looks like:

my-tui-app/
├── src/
│ ├── components/ # Reusable UI components
│ ├── screens/ # Full-screen views
│ └── index.tsx # Entry point
├── package.json
└── tsconfig.json