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

create-minitype

v0.1.2

Published

Create a minitype document project

Readme

create-minitype

minitype の文書プロジェクトをセットアップするツールです. コマンドラインまたは API 経由でテンプレートを選択して,必要なソースファイル一式を自動生成します.

create-minitype is a tool to set up the documentation project for minitype. Users can select a template via the command line or API to automatically generate all the necessary source files.

テンプレート開発ガイド

コマンドラインから使用する

コマンドラインインタフェース(CLI)から実行する場合,以下のコマンドを実行します.

# npm
npm create minitype@latest [project-name] -- [options]

# Yarn
yarn create minitype [project-name] [options]

オプション

| オプション | 短縮形 | 説明 | | --- | --- | --- | | --template <name> | -t | 使用するテンプレート(省略した場合プロンプトで選択) | | --yes | -y | プロンプトをスキップ(--template と併用) | | --json | -j | 結果を JSON で出力(AI エージェント向け) | | --markdown | | Markdown からドキュメントを生成 | | --yaml | | YAML からドキュメントを生成 | | --pm <npm\|yarn> | | 依存関係のインストールに使用するパッケージマネージャ | | --list-templates | | 使用可能なテンプレート一覧を表示 | | --help | -h | ヘルプを表示 |

--json を指定した場合には対話プロンプトが省略され,生成結果だけが JSON として標準出力に出力されます. 診断情報や git 等の外部コマンドの出力は,標準エラー出力へ送られます.

使用例

# プロジェクト名を指定して対話形式で実行
npm create minitype@latest my-report

# テンプレートを指定して非対話で実行
npm create minitype@latest my-report -- --template report --yes

# Markdown モードで report テンプレートを生成し,依存関係もインストール
npm create minitype@latest my-report -- --template report --markdown --pm npm

# JSON 出力(CI,AIエージェント向け)
npm create minitype@latest my-report -- --template report --json

API 経由で使用する

Node.js スクリプトや AI エージェントから API 経由で使用する場合,以下の手順で実行します.

npm install create-minitype
import { createProject } from "create-minitype";

const result = await createProject({
  projectName: "my-report",
  templateId: "report",
  templateOptions: { markdown: true },
  packageManager: "yarn",
});

console.log(result.files); // 生成されたファイル一覧

createProject(options)

| フィールド | 型 | 説明 | | --- | --- | --- | | projectName | string | プロジェクト名(サブディレクトリ名になる) | | templateId | string | テンプレート ID,git URL,またはローカルパス | | templateOptions? | TemplateOptions | テンプレート固有のオプション | | packageManager? | "npm" \| "yarn" | 依存関係インストールに使用するパッケージマネージャ(省略時はスキップ) | | outputDir? | string | プロジェクトを作成するディレクトリ(省略時はカレントディレクトリ) | | json? | boolean | 結果を JSON で stdout に出力するか |

戻り値は CreateProjectResultprojectNametemplateIdtargetDirfiles を持つオブジェクト)です.

生成されるプロジェクト構成

<project-name>/
├── src/
│   ├── index.ts       # スタイル,レイアウト定義
│   └── document.ts    # ドキュメントの内容(テンプレートによっては .md / .yaml)
├── fonts/             # 使用フォント(自動コピー)
├── vite.config.ts
├── tsconfig.json
├── package.json
└── README.md

生成されたプロジェクトに対しては,以下のコマンドで文書のビルドを実行できます.

cd <project-name>
npm install   # または yarn
npm run build # output.pdf が生成される

ライセンス・謝辞

Copyright (c) 2026 Yuto Wada. This software is released under the MIT License, see LICENSE.

本ソフトウェアは,2025 年度下期 未踏アドバンスト事業の支援を受けて開発されました.