npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

article-summarizer-jp

v1.5.31

Published

CLI tool for summarizing web articles in Japanese using Anthropic Claude API. Fetches content from URLs and generates both 3-line summaries and full translations in polite Japanese.

Readme

Article Summarizer JP

A CLI tool that fetches articles from URLs and summarizes them in Japanese using Anthropic Claude API.

Features

  • 🌐 Fetches content from any URL
  • 📦 Supports multiple URLs in single command
  • 🤖 Falls back to headless browser if regular fetch fails
  • 📝 Generates 3-line Japanese summary
  • 🈲 Provides full Japanese translation
  • 💾 Saves output as Markdown files
  • ⚙️ Configurable API key storage
  • 📊 Shows detailed progress and results summary

Prerequisites

  • Node.js 14 or higher
  • npm or yarn
  • Anthropic API key (get one at https://console.anthropic.com/)

Installation

From npm (Recommended)

npm install -g article-summarizer-jp

From source

# Clone the repository
git clone https://github.com/sKawashima/article-summarizer-jp.git
cd article-summarizer-jp

# Install dependencies
npm install

# Build the project
npm run build

Configuration

Before first use, configure your Anthropic API key:

article-summarizer-jp --config
# or use the short alias
asumjp --config

You'll be prompted to enter your API key, which will be securely stored.

Usage

Basic usage with URL argument

# Single URL
article-summarizer-jp https://example.com/article

# Multiple URLs (supports up to 5 concurrent processing)
article-summarizer-jp https://example.com/article1 https://example.com/article2 https://example.com/article3

# or use the short alias
asumjp https://example.com/article1 https://example.com/article2

Interactive mode (prompts for URL)

article-summarizer-jp
# or
asumjp

Watch mode (continuous URL input)

# Start watch mode for continuous URL input
article-summarizer-jp --watch
# or
asumjp -w

# Watch mode with date prefix
article-summarizer-jp --watch --date-prefix
# or
asumjp -w -d

Filename options

# Add date prefix to filename (YYYY-MM-DD_title.md format)
article-summarizer-jp --date-prefix https://example.com/article
# or
asumjp -d https://example.com/article

Development mode (if installed from source)

# Run in development mode with tsx
npm run dev https://example.com/article

# Run multiple URLs in development mode
npm run dev https://example.com/article1 https://example.com/article2

# Run with options in development mode
npm run dev -- --watch
npm run dev -- --date-prefix https://example.com/article

# Build and run production version
npm run build
npm run start https://example.com/article

# Type check without building
npm run lint

Command line options

| Option | Short | Description | |--------|-------|-------------| | --config | - | Configure or reconfigure API key | | --watch | -w | Start in watch mode for continuous URL input | | --date-prefix | -d | Add date prefix to filename (YYYY-MM-DD_title.md format) | | --version | -V | Display version number | | --help | -h | Display help information |

Output

The tool creates a Markdown file with the format:

  • Filename: 📰 [Article Title].md
  • Content includes:
    • Original article link
    • Scraping date
    • 3-line summary in Japanese
    • Full Japanese translation

Example Output

# [Article Title](https://example.com/article)
scrap at [[2024-01-06]]

## 3行まとめ
1. First key point in Japanese
2. Second key point in Japanese
3. Third key point in Japanese

## 全文和訳
[Full Japanese translation of the article]

Development

# Run in development mode
npm run dev

# Build TypeScript
npm run build

# Type check
npm run lint

Publishing to npm

If you want to publish this package to npm:

Prerequisites

  • npm account (create at https://www.npmjs.com/)
  • npm CLI logged in (npm login)

Steps

  1. Update version (choose one):

    # Patch version (1.1.0 → 1.1.1)
    npm version patch
       
    # Minor version (1.1.0 → 1.2.0)
    npm version minor
       
    # Major version (1.1.0 → 2.0.0)
    npm version major
  2. Build the project:

    npm run build
  3. Publish to npm:

    # Public package
    npm publish
       
    # Scoped package (if package name starts with @)
    npm publish --access public
  4. Verify publication:

    npm info article-summarizer-jp

Publishing checklist

  • [ ] Tests pass (npm test if available)
  • [ ] Build succeeds (npm run build)
  • [ ] README is up to date
  • [ ] Version is updated appropriately
  • [ ] All changes are committed to git
  • [ ] Package.json metadata is correct (description, keywords, etc.)

Troubleshooting

"API key not configured" error

Run article-summarizer-jp --config (or asumjp --config) to set up your API key.

Content extraction fails

The tool automatically falls back to a headless browser (Puppeteer) if the initial fetch fails. This handles JavaScript-rendered content and pages with anti-bot measures.

Rate limiting

If you encounter rate limiting from the Anthropic API, consider adding delays between requests or upgrading your API plan.

License

ISC