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

@him0/ai-docs-sync

v0.3.1

Published

Sync AI documentation rules across GitHub Copilot, Cline, Cursor, and other AI tools.

Readme

AI Docs Sync

A fast CLI tool for synchronizing AI documentation rules across GitHub Copilot, Cline, Cursor, and other AI tools. Define rules once in Markdown files and sync them to different output formats.

Fast CLI built with Bun, compatible with Node.js and available via npx.

Note: This project was formerly known as ai-rule-forge. The repository has been renamed to ai-doc-sync to better reflect its purpose of synchronizing AI documentation across multiple tools.

Overview

AI Docs Sync is a fast CLI tool built with Bun for synchronizing rules and knowledge across AI tools (GitHub Copilot, Cline, Cursor, etc.). It allows you to generate configuration files for various AI tools from a single source with a modular generator architecture.

Installation

Quick Start (Recommended)

npx @him0/ai-docs-sync init

Development with Bun

# Clone and install
bun install

# Development commands
bun run init              # Initialize project
bun run sync              # Sync rules to output files

# Build for distribution
bun run build

Usage

Initialize a New Project

npx @him0/ai-docs-sync init

This command will:

  • Create the ai-docs/ directory
  • Create the ai-docs/rules/ directory with template files
  • Create the ai-docs/ignore file for defining ignore patterns

Edit Rules

Edit Markdown files in the ai-docs/rules/ directory to define rules for AI tools. You can use numeric prefixes (e.g., 01_security.md) to control the order.

Sync Rules

npx @him0/ai-docs-sync

This command reads rule files from the ai-docs/rules/ directory and generates:

  • .github/copilot-instructions.md (for GitHub Copilot - merged single file)
  • .clinerules/ directory with individual .md files (for Cline)
  • .cursor/rules/ directory with .mdc format files with frontmatter (for Cursor)

It also reads the ai-docs/ignore file and generates:

  • .copilotignore (for GitHub Copilot)
  • .clineignore (for Cline)
  • .cursor/ignore (for Cursor)

Preview Changes (Plan Mode)

npx @him0/ai-docs-sync plan

This command previews the content of the files that will be generated without writing them to disk.

Writing Rules

Rules are written in standard Markdown format. Each AI tool generator processes the rule files according to its own requirements:

File Structure

ai-docs/
├── rules/
│   ├── 00_ai-docs-base.md     # Base configuration
│   ├── 01_security.md         # Security guidelines
│   └── 02_communication.md    # Communication rules
└── ignore                     # Ignore patterns

Rule Content

Each rule file contains standard Markdown content:

# Security Guidelines

Always follow security best practices:

- Never expose API keys or secrets
- Validate all user inputs
- Use secure coding practices

## Code Review

- Review all code changes
- Test security implications
- Document security decisions

Generator Behavior

  • GitHub Copilot: Merges all rule files into a single .github/copilot-instructions.md
  • Cline: Creates individual .md files in .clinerules/ directory
  • Cursor: Converts each file to .mdc format with frontmatter in .cursor/rules/

Ignore Patterns

Edit the ai-docs/ignore file to define patterns that should be ignored by AI tools:

# Ignore patterns for AI assistants
node_modules/
dist/
.env
*.log

When you run @him0/ai-docs-sync, these patterns will be copied to:

  • .copilotignore (for GitHub Copilot)
  • .clineignore (for Cline)
  • .cursor/ignore (for Cursor)

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.