MCPcopy Index your code
hub / github.com/bevacqua/hit-that

github.com/bevacqua/hit-that @v1.0.5

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.0.5 ↗ · + Follow
5 symbols 6 edges 2 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

hit-that

Render beautiful pixel perfect representations of websites in your terminal

Installation

npm install -g hit-that

API

Hit That comes with a simple API where it exports just a function hitThat(url, options?). The first argument is the url you intend to render. The second argument is an optional configuration object.

  • width=1024 is the viewport width in pixels that we'll use for the screenshot
  • height=768 is the viewport height in pixels that we'll use for the screenshot
  • cols=80 is the amount of columns we'll allocate to the terminal representation
  • dest=process.stdout is the destination stream you want to pipe the results to.
var hitThat = require('hit-that');

hitThat('http://ponyfoo.com');

CLI

There's a command-line interface as well.

ht ponyfoo.com
Usage:

ht <url> --width [width] --height [height] --cols [cols]

Options:

  --width   Viewport width in pixels
  --height  Viewport height in pixels
  --cols    Terminal columns to use
  --help    Render this information
  --version Render version information

Example

Pony Foo rendered as an image in terminal

Pony Foo rendered as an image in terminal

Use it as a CLI banner!

Google.com banner

You'll get the best results when reducing the viewport width

Reduced viewport width at emberjs.com

(That site better be responsive!)

License

MIT

Core symbols most depended-on inside this repo

hitThat
called by 1
index.js
ready
called by 0
index.js
read
called by 0
index.js
write
called by 0
index.js
remove
called by 0
index.js

Shape

Function 5

Languages

TypeScript100%

Modules by API surface

index.js5 symbols

For agents

$ claude mcp add hit-that \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page