Skip to content

patterns to pipe HTML from the command line to a webpage

Notifications You must be signed in to change notification settings

cablehead/html-cat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 

Repository files navigation

This repository contains experiments to interactively pipe content while working at the command line to a web interface.

image

Available branches / experiments:

xs-with-deno.mp4
  • HTTP served with: deno2 + hono (perfect for using with smallweb)
  • Event bus: xs / content is edited directly on the event stream
  • aux tools: minijinja-cli
  • Client side: vanilla JS, SSE

basics: as lo-fi as can be?

html-cat.mp4
  • HTTP served with: http-sh + Bash
  • Event bus: cat >> bus; tail -F bus (srsly)
  • aux tools: jq, jo
  • Client side: htmx, SSE
html-cat-xs.mp4
  • HTTP served with: http-sh + Bash + Nushell
  • Event bus: xs / content is edited in files / watchexec -> xs
  • aux tools: minijinja-cli
  • Client side: htmx, SSE

About

patterns to pipe HTML from the command line to a webpage

Topics

Resources

Stars

Watchers

Forks