add VHS-generated GIFs for all examples
Created tape files and GIFs demonstrating each example: - counter, timer, list, spinner, views, http - Updated README with GIF showcase Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -2,17 +2,7 @@
|
||||
|
||||
A terminal user interface framework for Clojure, inspired by [Bubbletea](https://github.com/charmbracelet/bubbletea) (Go). Build interactive CLI applications using the Elm Architecture with Hiccup-style views.
|
||||
|
||||
```
|
||||
╭──────────────────────────────────────╮
|
||||
│ │
|
||||
│ ╭────────────────────╮ │
|
||||
│ │ Counter: 42 │ │
|
||||
│ ╰────────────────────╯ │
|
||||
│ │
|
||||
│ j/k: change r: reset q: quit │
|
||||
│ │
|
||||
╰──────────────────────────────────────╯
|
||||
```
|
||||

|
||||
|
||||
## Features
|
||||
|
||||
@@ -93,18 +83,67 @@ Output:
|
||||
j/k: change r: reset q: quit
|
||||
```
|
||||
|
||||
## Running Examples
|
||||
## Examples
|
||||
|
||||
### Counter
|
||||
Simple counter demonstrating basic Elm Architecture.
|
||||
|
||||

|
||||
|
||||
```bash
|
||||
# With Babashka (simple sync runtime)
|
||||
bb counter
|
||||
bb timer
|
||||
bb list
|
||||
bb spinner
|
||||
bb views
|
||||
bb http
|
||||
```
|
||||
|
||||
# With Clojure (full async support)
|
||||
### Timer
|
||||
Countdown timer with pause/resume - demonstrates async commands.
|
||||
|
||||

|
||||
|
||||
```bash
|
||||
bb timer
|
||||
```
|
||||
|
||||
### List Selection
|
||||
Multi-select list with cursor navigation.
|
||||
|
||||

|
||||
|
||||
```bash
|
||||
bb list
|
||||
```
|
||||
|
||||
### Spinner
|
||||
Animated loading spinners with multiple styles.
|
||||
|
||||

|
||||
|
||||
```bash
|
||||
bb spinner
|
||||
```
|
||||
|
||||
### Views
|
||||
State machine pattern with multiple views and navigation.
|
||||
|
||||

|
||||
|
||||
```bash
|
||||
bb views
|
||||
```
|
||||
|
||||
### HTTP
|
||||
Async HTTP requests with loading states.
|
||||
|
||||

|
||||
|
||||
```bash
|
||||
bb http
|
||||
```
|
||||
|
||||
### Running with Full Clojure
|
||||
|
||||
For full async support (core.async), run with Clojure:
|
||||
|
||||
```bash
|
||||
clojure -A:dev -M -m examples.counter
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user