Skip to content
/ h2life Public

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

License

Notifications You must be signed in to change notification settings

fortio/h2life

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 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)