---
title: Building a TUI
url: "https://aaronfrancis.com/videos/building-a-tui"
path: "/videos/building-a-tui"
type: video
author: Aaron Francis
published: 2024-11-09
topic: "Laravel & PHP"
description: "A livestream working on Solo, my terminal UI for Laravel. I dig through Laravel's connection factory to register a libSQL resolver for Turso, then rework how hotkeys are handled so Vim keys can work. For someone who doesn't use Vim, I put in a lot of effort to make Vim work."
keywords: [solo, terminal ui, tui, laravel, turso, libsql, connection factory, vim keys, hotkeys, laravel database]
youtube_url: "https://www.youtube.com/watch?v=MWcLYCFFNv4"
chunked: true
full_bytes: 83241
section_count: 6
full_url: "/videos/building-a-tui/full.md"
site_index: "/llms.txt"
keyword_index: "/llms/keywords.txt"
---

# Building a TUI

A livestream working on Solo, my terminal UI for Laravel. I dig through Laravel's connection factory to register a libSQL resolver for Turso, then rework how hotkeys are handled so Vim keys can work. For someone who doesn't use Vim, I put in a lot of effort to make Vim work.

## Sections (81.3 KB full document — follow any link to read verbatim)

This page is long enough to hit agent truncation cliffs if fetched all at once. Pick the section matching your question below to read it 100% verbatim (< 35 KB each), or open the [full unsplit document (81.3 KB)](/videos/building-a-tui/full.md).

### 1. Part 1 (00:00–23:54 · 15.6 KB)
Aaron resolves technical streaming issues with Restream, then begins exploring a Laravel database connection factory for LibSQL and Turso integration.
Keywords: `libsql`, `andrew ehrman`, `linkedin`, `chatgpt`, `sdk`, `driver`, `connection factory`, `go`
[Read section 1 verbatim](/videos/building-a-tui/sections/1-part-1.md)

### 2. Part 2 (23:54–1:04:51 · 15.6 KB)
Aaron registers a LibSQL database connection resolver in a service provider, encountering challenges with extending the connection factory architecture.
Keywords: `sqlite`, `connection factory`, `lib sql`, `libsql`, `sqlite connection`, `connection`, `sqlite connector`, `schema builder`
[Read section 2 verbatim](/videos/building-a-tui/sections/2-part-2.md)

### 3. Part 3 (1:04:59–1:43:46 · 15.6 KB)
Aaron examines existing Laravel drivers (MySQL, SingleStore) and pivots to building Solo dashboard hotkeys functionality with handlers and closures.
Keywords: `libsql`, `sqlite`, `phpstorm`, `key bindings`, `go`, `service provider`, `global hotkeys`, `vim key`
[Read section 3 verbatim](/videos/building-a-tui/sections/3-part-3.md)

### 4. Part 4 (1:43:48–2:26:06 · 15.6 KB)
Aaron refactors hotkeys registration to use a default keys group, converting from loose registration to a structured key group pattern with closures and handlers.
Keywords: `keyhandler`, `keys`, `key`, `feels`, `command`, `default keys`, `hotkey`, `weak map`
[Read section 4 verbatim](/videos/building-a-tui/sections/4-part-4.md)

### 5. Part 5 (2:26:07–3:09:07 · 15.5 KB)
Aaron debugs hotkey handler instantiation and resolves issues with KeyHandler callback execution, then moves hotkeys configuration to a config file with string-based registry for ENV variable support.
Keywords: `keyhandler`, `vim keys`, `keys`, `default keys`, `hot keys`, `vim`, `hot key`, `key`
[Read section 5 verbatim](/videos/building-a-tui/sections/5-part-5.md)

### 6. Part 6 (3:09:08–3:15:36 · 3.2 KB)
Aaron finalizes Solo theme and hotkey configuration with ENV variable support and registry pattern, adding light/dark themes and VIM key bindings before wrapping up the stream.
Keywords: `key bindings`, `go`, `theme`, `register theme`, `go watch`, `default`, `key`, `bindings`
[Read section 6 verbatim](/videos/building-a-tui/sections/6-part-6.md)

---

## Related on aaronfrancis.com

- [Side Project Podcast: Aaron Francis](/podcast/side-project-podcast-aaron-francis-3721a94d) *(Podcast · 2024-12-23 · shared: solo, tui, laravel)*
- [Testing my TUI](/videos/testing-my-tui) *(Video · 2025-02-06 · shared: terminal ui, tui, solo)*
- [Building a new Laravel dev runner (as a TUI)](/videos/building-a-new-laravel-dev-runner-as-a-tui) *(Video · 2024-10-30 · shared: tui, laravel, terminal ui)*
- [About](/about) *(Page · 2026-11-25 · shared: laravel, solo)*
- [Now](/now) *(Page · 2026-11-25 · shared: laravel, solo)*

## Relevant Resources from Aaron Francis

- **[Solo](https://soloterm.com)** (overview on site: [/software](/software)): All-in-one agentic development platform and terminal workspace built by Aaron Francis for orchestrating processes and AI coding agents.
- **[High Performance SQLite](https://databaseschool.com)** (overview on site: [/courses](/courses)): Comprehensive video course on running SQLite in production: WAL mode, concurrency, FTS5, strict tables, backups, and performance tuning.

## Search aaronfrancis.com (2-Hop Static Keyword Index)

Pick the alphabetical shard matching any topic to find exact pages across all articles, newsletters, videos, talks, and podcast transcripts (every shard is < 40 KB):
[A-B](/llms/keywords/a-b.txt) · [C](/llms/keywords/c.txt) · [D-E](/llms/keywords/d-e.txt) · [F-G](/llms/keywords/f-g.txt) · [H-J](/llms/keywords/h-j.txt) · [K-L](/llms/keywords/k-l.txt) · [M-N](/llms/keywords/m-n.txt) · [O-P](/llms/keywords/o-p.txt) · [Q-R](/llms/keywords/q-r.txt) · [S](/llms/keywords/s.txt) · [T-Z](/llms/keywords/t-z.txt) · [Directory](/llms/keywords.txt) · [Site Map](/llms.txt)

Shards for this page's topics: `solo` ([S](/llms/keywords/s.txt)), `terminal ui` ([T-Z](/llms/keywords/t-z.txt)), `laravel` ([K-L](/llms/keywords/k-l.txt)), `connection factory` ([C](/llms/keywords/c.txt)).

## About Aaron Francis (Current Context)

Aaron Francis is VP of Marketing and Community at [Laravel](https://laravel.com), founder of [Try Hard Studios](https://tryhardstudios.com), creator of [Solo](https://soloterm.com), co-host of [Mostly Technical](/podcast), and author of [Mastering Postgres](/courses), [High Performance SQLite](/courses), [MySQL for Developers](/courses), and [Screencasting.com](/courses). Full bio: [/about](/about) · Current focus: [/now](/now).
