Getting Started with Glyph
Installation
Section titled “Installation”Create a new Glyph project:
bun create @semos-labs/glyph my-tui-appcd my-tui-appOr add Glyph to an existing project:
bun add @semos-labs/glyphYour First App
Section titled “Your First App”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:
bun index.tsxThat’s it — you should see your TUI app rendered in the terminal.
Project Structure
Section titled “Project Structure”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.jsonNext Steps
Section titled “Next Steps”- Explore the API Reference
- Build a real app with Aion as an example