@jcheesepkg/summarize
v1.0.5
Published
Lightweight summarizer for YouTube videos and URLs using GLM.
Downloads
35
Readme
glm-summarize
Lightweight summarizer for YouTube videos and URLs using GLM.
Install
cd /Users/jc/Desktop/playground/glm-summarize
npm install
npm run build
npm linkRequired env vars
export APIFY_API_TOKEN=...
export Z_AI_BASE_URL=...
export Z_AI_API_KEY=...Usage
# YouTube
glm-summarize "https://www.youtube.com/watch?v=fYO8JoXzMWw" --language ja --length medium
# URL
glm-summarize "https://example.com/article" --language en --length long
# Force summary even if content is short
glm-summarize "https://..." --force
# Skip cache
glm-summarize "https://..." --no-cacheOptions
| Flag | Default | Description |
|------|---------|-------------|
| --model | zai/glm-5 | Model to use |
| --language | auto | Output language (en, ja, zh, etc.) |
| --length | medium | short|medium|long|xl or char count |
| --timeout | 120000 | Timeout in ms |
| --no-cache | - | Disable extraction cache |
| --force | - | Force summary even if content is short |
Features
- Smart default: Returns content as-is if shorter than target length
- 7-day cache: Extracted content cached in
~/.glm-summarize/cache/ - Retry logic: Auto-retry on failure (1 retry by default)
- Structured output: Summary + key points + notable quotes
- Timing metrics: Shows extraction and summarization time
