1.1.0 • Published 6 months ago

@yuiseki/devin-gyazo v1.1.0

Weekly downloads
-
License
WTFPL
Repository
-
Last release
6 months ago

devin-gyazo

A CLI tool for Devin to capture and upload screenshots to Gyazo.

The verbs "Gyazo it" and "Gyazo now" mean "to capture and upload a screenshot to Gyazo and share it".

Important: When your owner says "Please Gyazo it", you must share the resulting Gyazo link with them.

Features

  • Automated browser screenshot capture with metadata support
  • Preserves webpage titles and URLs automatically
  • Direct upload to Gyazo using API
  • Clean and simple CLI interface
  • Automatic cleanup of temporary files

Requirements

  • Gyazo account and access token (see Setup Guide)
  • Node.js and npm
  • textimg command for shell output capture (required for shell subcommand)

Installation

Install devin-gyazo

Install globally using npm:

npm install -g @yuiseki/devin-gyazo

Install textimg (required for shell command)

The shell subcommand requires textimg for capturing terminal output:

# For Debian/Ubuntu:
wget https://github.com/jiro4989/textimg/releases/download/v3.1.10/textimg_3.1.10_amd64.deb
sudo dpkg -i textimg_3.1.10_amd64.deb

# For RHEL/CentOS:
sudo yum install https://github.com/jiro4989/textimg/releases/download/v3.1.10/textimg-3.1.10-1.el7.x86_64.rpm

# If you have Go installed:
go get -u github.com/jiro4989/textimg/v3

If you run into trouble, see https://github.com/jiro4989/textimg

# Optional: For better Japanese (CJK) text rendering:
# Download and install Noto Sans CJK font
wget -O NotoSansCJK-Regular.ttc https://github.com/notofonts/noto-cjk/raw/main/Sans/OTC/NotoSansCJK-Regular.ttc
sudo mkdir -p /usr/share/fonts/truetype/noto
sudo mv NotoSansCJK-Regular.ttc /usr/share/fonts/truetype/noto/
sudo fc-cache -f -v

Note: Japanese text rendering requires the Noto Sans CJK font. Install it using the commands above if you need to capture Japanese terminal output.

Set up your Gyazo access token:

export GYAZO_ACCESS_TOKEN="your-access-token-here"

Usage

Browser Screenshots

# Auto-detect title and URL from current browser tab
devin-gyazo browser

# Same as above, explicitly using auto mode
devin-gyazo browser auto

# Manually specify title and URL
devin-gyazo browser "Page Title" "https://example.com"

The browser command will:

  1. Capture the current browser tab screenshot
  2. Upload it to Gyazo with metadata:
    • Title: webpage title
    • URL: webpage URL
  3. Output the Gyazo permalink URL
  4. Clean up temporary files

Shell Output Screenshots

# Capture and upload command output
devin-gyazo shell ls -la

# Works with any shell command
devin-gyazo shell "git status"

To verify textimg installation and shell command functionality:

# This should succeed and return a Gyazo URL if textimg is installed
devin-gyazo shell ls -alh

# If textimg is not installed, you'll see an error message directing you to the installation instructions

The shell command will:

  1. Capture the command output with ANSI colors
  2. Convert the output to an image
  3. Upload to Gyazo and return the permalink URL
  4. Clean up temporary files

License

WTFPL License

1.1.0

6 months ago

1.0.2

6 months ago

1.0.1

6 months ago

1.0.0

6 months ago