hostthis

module
v0.41.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 8, 2026 License: MIT

README

HOSTTHIS(1)

Name

hostthis — host an HTML or Markdown paste at a URL for 7 days.

Synopsis

cat file | ssh hostthis.dev [slug] [--name label]
ssh hostthis.dev command [args]

Description

Reads HTML or Markdown from stdin, stores it, prints a URL. The URL serves the content for 7 days from the last update, then it's deleted.

Commands

cat file | ssh hostthis.dev [--name label]
upload
cat file | ssh hostthis.dev slug
replace slug's content; resets the 7-day clock
ssh hostthis.dev list
active pastes, soonest to expire first
ssh hostthis.dev show slug
print content to stdout
ssh hostthis.dev rename slug label
set label; empty string clears
ssh hostthis.dev versions slug
list versions within the 7-day window
ssh hostthis.dev pin slug ver
stick the URL to ver; survives future updates
ssh hostthis.dev unpin slug
clear the pin; URL serves the latest version
ssh hostthis.dev delete slug
permanent
ssh hostthis.dev whoami
print identity and active count

Examples

cat index.html | ssh hostthis.dev
cat README.md  | ssh hostthis.dev --name notes
cat v2.html    | ssh hostthis.dev abc12345
ssh hostthis.dev list
ssh hostthis.dev delete abc12345

Limits

1 MiB per identity, total across active pastes. 7-day retention. HTML and Markdown only.

License

MIT — see LICENSE.

Directories

Path Synopsis
cmd
hostthis-blob-migrate command
Command hostthis-blob-migrate copies every blob from the on-disk store to an S3-compatible bucket.
Command hostthis-blob-migrate copies every blob from the on-disk store to an S3-compatible bucket.
hostthis-blob-verify command
Command hostthis-blob-verify checks that every blob in the on-disk store is present in the S3-compatible bucket with identical bytes.
Command hostthis-blob-verify checks that every blob in the on-disk store is present in the S3-compatible bucket with identical bytes.
hostthisd command
Package main wires the hostthis daemon: SSH server + HTTP server + storage + the periodic expiry sweep.
Package main wires the hostthis daemon: SSH server + HTTP server + storage + the periodic expiry sweep.
render-md command
Tiny helper that pipes stdin -> render.Markdown -> stdout.
Tiny helper that pipes stdin -> render.Markdown -> stdout.
internal
cache
Package cache holds CachePurger implementations.
Package cache holds CachePurger implementations.
domain
Package domain holds pure types and rules — no I/O.
Package domain holds pure types and rules — no I/O.
http
Package http serves the apex landing + the paste read surface.
Package http serves the apex landing + the paste read surface.
render
Package render turns user-uploaded source into safe-to-serve HTML.
Package render turns user-uploaded source into safe-to-serve HTML.
service
Package service orchestrates use cases.
Package service orchestrates use cases.
ssh
Package ssh implements the SSH-pipe surface — the user's full CLI.
Package ssh implements the SSH-pipe surface — the user's full CLI.
storage
Package storage holds the infrastructure adapters that back the domain types — sqlite for paste metadata, content-addressed disk store for paste bytes.
Package storage holds the infrastructure adapters that back the domain types — sqlite for paste metadata, content-addressed disk store for paste bytes.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL