Loading…
Script HTTP handlers in Nushell with zero boilerplate — closures become endpoints.
Built-in:
Written in Rust. 🐘💫🚀💜
A Rust HTTP server where Nushell closures are your request handlers. No framework, no config files — just pipe data through endpoints.
http-nu :3001 -c '{|req| "Hello world"}'
$in streams request bodies. Pipeline metadata sets status codes and headers.to sse, Datastar SDK for hypermedia, and streaming responses via generate.--store) for append-only state, content-addressed storage, and live-reload handlers from store topics..mj), HTML DSL, reverse proxy, static file serving, cookie management, syntax highlighting, Markdown rendering.--watch.# Install
brew install cablehead/tap/http-nu # macOS
cargo binstall http-nu # or via cargo
nix-shell -p http-nu # or Nix
# Run
http-nu :3001 ./serve.nu
# With embedded store + Datastar
http-nu --datastar --store ./store :3001 ./serve.nu
Developers who want to ship HTTP services in Nushell without reaching for a full web framework. Quickly expose shell scripts as HTTP endpoints, build real-time dashboards with SSE and Datastar, or ship internal tools and hypermedia UIs — all without leaving the shell.
No comments yet.
Sign in to be the first to comment.