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

@scottlz0310/renovate-config-init

v2.1.0

Published

CLI tool to initialize Renovate configuration with auto-detection

Readme

renovate-config

Renovateの設定を一元管理するためのリポジトリ

各言語・環境(Python, Node.js, TypeScript, Docker, C#, C++, Rust, Go)に対応した設定と、プロジェクト毎の部分的な調整設定(プリセット)を提供します。

クイックスタート

CLI ツールで自動設定(推奨)

# pnpm dlx で実行(推奨: グローバルに入れない)
# ※ npm で 404 になる場合: パッケージが未公開/非公開、または権限がありません
pnpm dlx @scottlz0310/renovate-config-init

# このリポジトリを clone して開発/動作確認する場合
pnpm install
pnpm run dev

# グローバルインストール(npm レジストリから)
pnpm add -g @scottlz0310/renovate-config-init

# GitHubから直接インストール
pnpm add -g git+https://github.com/scottlz0310/renovate-config.git

# プロジェクトディレクトリで実行
cd your-project
renovate-config-init

CLIがプロジェクト構成を自動検出し、最適な renovate.json を生成します。

◆ Renovate Config Initializer

● Detected structure:
  ./                        (project root)
  ├── package.json         → Node.js
  ├── tsconfig.json        → TypeScript
  └── Dockerfile           → Docker

◆ Select Languages:
  ☑ Node.js      (detected)
  ☑ TypeScript   (detected)
  ☑ Docker       (detected)

◆ Select Tools:
  ☑ Pre-commit   (detected)

◆ Select Options:
  ☑ Auto-merge

✓ Created ./renovate.json

手動設定

プロジェクトのルートディレクトリに renovate.json を作成:

{
  "$schema": "https://docs.renovatebot.com/renovate-schema.json",
  "extends": [
    "github>scottlz0310/renovate-config//presets/default",
    "github>scottlz0310/renovate-config//presets/languages/nodejs",
    "github>scottlz0310/renovate-config//presets/languages/typescript"
  ]
}

対応言語・環境

| 言語/環境 | プリセット | 説明 | |----------|-----------|------| | Node.js | languages/nodejs | npm/pnpm パッケージ | | TypeScript | languages/typescript | TypeScript 関連 | | Python | languages/python | uv/pyproject.toml | | Docker | languages/docker | Dockerfile, docker-compose | | Go | languages/go | Go modules | | Rust | languages/rust | Cargo | | C# | languages/csharp | NuGet, .NET | | C++ | languages/cpp | Conan, vcpkg, CMake |

ツール

| ツール | プリセット | 説明 | |-------|-----------|------| | Pre-commit | tools/precommit | Pre-commit hooks | | Lefthook | tools/lefthook | Lefthook (Git hooks manager) |

オプション

| オプション | プリセット | 説明 | |-----------|-----------|------| | Automerge | options/automerge | minor/patch の自動マージ | | Schedule | options/schedule | スケジュール更新 (月曜 3am JST) | | Security | options/security | セキュリティ更新を優先 | | Production | options/production | 本番環境向け保守的設定 | | Monorepo | options/monorepo | モノレポ対応設定 |

使用例

Python + Docker + セキュリティ重視

{
  "$schema": "https://docs.renovatebot.com/renovate-schema.json",
  "extends": [
    "github>scottlz0310/renovate-config//presets/default",
    "github>scottlz0310/renovate-config//presets/languages/python",
    "github>scottlz0310/renovate-config//presets/languages/docker",
    "github>scottlz0310/renovate-config//presets/options/security"
  ]
}

Node.js + 自動マージ + スケジュール

{
  "$schema": "https://docs.renovatebot.com/renovate-schema.json",
  "extends": [
    "github>scottlz0310/renovate-config//presets/default",
    "github>scottlz0310/renovate-config//presets/languages/nodejs",
    "github>scottlz0310/renovate-config//presets/languages/typescript",
    "github>scottlz0310/renovate-config//presets/options/automerge",
    "github>scottlz0310/renovate-config//presets/options/schedule"
  ]
}

CLI オプション

# インタラクティブモード(デフォルト)
renovate-config-init

# 検出されたプリセットを自動適用
renovate-config-init --yes

# ドライラン(ファイルを作成せずプレビュー)
renovate-config-init --dry-run

# プリセットを指定(例: nodejs,typescript,automerge)
renovate-config-init --presets nodejs,typescript,automerge

# 出力先を指定(ファイル or ディレクトリ)
renovate-config-init --output ./config/renovate.json

# ヘルプ
renovate-config-init --help

開発

ローカルパスからのインストール(未リリース時のテスト用)

別リポジトリで renovate-config-init を試したい場合は、ローカルの CLI をグローバルに入れて動作確認できます。

# renovate-config を clone したディレクトリで
pnpm install

# CLI をグローバルインストール(絶対パス推奨)
pnpm add -g "$(pwd)"

# 別リポジトリで動作確認
cd /path/to/your-project
renovate-config-init --help

デフォルト設定

presets/default.json には以下が含まれます:

  • セマンティックコミットの有効化
  • 依存関係ダッシュボードの有効化
  • マイナー・パッチ更新の分離
  • 脆弱性アラートの有効化
  • タイムゾーン: Asia/Tokyo

ライセンス

MIT License

貢献

Issues や Pull Requests を歓迎します。