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

@drumnistnakano/ai-ocr-markdown-convertor

v0.1.2

Published

AI powered OCR and document conversion tool that converts various file formats to Markdown

Readme

AI OCR Markdown Convertor

AI を活用してさまざまな形式のドキュメントを Markdown に変換するツール。

特徴

  • 複数のファイル形式をサポート(PDF、Word、Excel、など)
  • OpenAI の GPT-4 Vision モデルを使用
  • ドキュメントの構造を保持した Markdown 変換
  • 日本語を含む多言語対応

インストール

必要条件

  • Node.js 20 以上
  • OpenAI API Key

インストール方法

# npmからグローバルにインストール
npm install -g ai-ocr-markdown-convertor

# または、スコープ付きパッケージの場合
npm install -g @drumnistnakano/ai-ocr-markdown-convertor

# または、リポジトリからクローンして使用する場合
git clone https://github.com/yourusername/ai-ocr-markdown-convertor.git
cd ai-ocr-markdown-convertor
npm install
npm run build
npm link

使用方法

API キーの設定

以下のいずれかの方法で OpenAI API キーを設定してください:

  1. 環境変数として設定
export OPENAI_API_KEY=your_api_key
  1. プロジェクトルートに.envファイルを作成
OPENAI_API_KEY=your_api_key

コマンド実行

# 指定したディレクトリ内のファイルを変換
ai-ocr-convert /path/to/input/directory

変換されたファイルは、入力ディレクトリと同じ階層に日付付きのディレクトリ(例:input_directory_20240317123456)として出力されます。元のディレクトリ構造が保持されるため、たとえば /path/to/input/directory/folder1/document.pdf は /path/to/input_directory_20240317123456/folder1/document.md として出力されます。

サポートされているファイル形式

  • PDF (.pdf)
  • Microsoft Word (.doc, .docx)
  • Microsoft Excel (.xls, .xlsx)
  • OpenDocument (.odt, .ott)
  • Rich Text Format (.rtf)
  • Plain Text (.txt)
  • HTML (.html, .htm)
  • XML (.xml)
  • CSV (.csv)
  • TSV (.tsv)
  • Microsoft PowerPoint (.ppt, .pptx)
  • OpenDocument Presentation (.odp, .otp)