Skip to content

fortio/h2life

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

h2life

Streams game of life over http as ANSI codes

Demo:

Screen.Recording.2025-04-17.at.5.13.29.PM.mov

Deployment

Demo/deployed under/try it:

curl --compressed https://demo.fortio.org/life

Using the --compressed option saves bandwidth by enabling gzip compression.

or

curl https://demo.fortio.org/life

Try locally:

go install github.com/fortio/h2life@latest
h2life -iter 1000 -delay 10ms &
curl http://localhost:31337/life

Options

Main flags are:

h2life 0.1.0 usage:
	h2life [flags]
or 1 of the special arguments
	h2life {help|envhelp|version|buildinfo}
flags:
  -delay duration
    	Delay between frames (default 100ms)
  -iter int
    	Number of iterations per request (in addition to the initial) (default 79)

(see h2life help for full list)

About

Demo of ansipixel game of life (conway) over http streaming (or 1.1)

Topics

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •