rich serve · a program in a browser tab

0.0 s

Screenshots

❯ rich serve -- todo | tee serve.log & sleep 1                                            
[1] 15933                                                                                 
Serving todo at http://127.0.0.1:8080/?token=e517626c2b8dce2af5844b4b6666862e             
❯                                                                                         
                                                                                          
                                                                                          
                                                                                          
                                                                                          
                                                                                          
                                                                                          
                                                                                          
                                                                                          
                                                                                          
                                                                                          
                                                                                          
                                                                                          
started
❯ rich serve -- todo | tee serve.log & sleep 1                                            
[1] 15933                                                                                 
Serving todo at http://127.0.0.1:8080/?token=e517626c2b8dce2af5844b4b6666862e             
❯ url=$(grep -o 'http://[^ ]*' serve.log)                                                 
❯ curl -s http://127.0.0.1:8080/                                                          
Open the address the server printed when it started, with its token.                      
❯ curl -s "$url" | grep -o '<title>.*</title>'                                            
<title>todo</title>                                                                       
❯ session http://127.0.0.1:8080                                                           
HTTP/1.1 101 Switching Protocols                                                          
❯ session https://elsewhere.example                                                       
HTTP/1.1 403 Forbidden                                                                    
❯                                                                                         
                                                                                          
                                                                                          
                                                                                          
sessions