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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@aibetter/aib

v0.1.3

Published

AI Ecosystem CLI

Readme

aib

npm version License: MIT

AI Ecosystem CLI - Enhancing the AI ecosystem

Overview

aib is a command-line tool designed to enhance the AI development ecosystem by providing utilities to sync and manage AI development configurations and rules.

Installation

Global Installation (Recommended)

# Using npm
npm install -g @aibetter/aib

# Using pnpm
pnpm add -g @aibetter/aib

# Using yarn
yarn global add @aibetter/aib

Local Installation

# Using npm
npm install @aibetter/aib

# Using pnpm
pnpm add @aibetter/aib

# Using yarn
yarn add @aibetter/aib

Usage

Basic Commands

# Show help information
aib --help

# Show version information
aib version
aib --version

Sync Command

The sync command allows you to synchronize cursor rules to your local project.

Data Source

The sync command retrieves rules from the community-maintained repository: https://github.com/aibetter/context/tree/main/data

This repository contains curated cursor rules and configurations that help improve AI-assisted development workflows.

# Basic sync
aib sync

# Force overwrite existing files
aib sync --force

# Dry run (show what would be synced without actually doing it)
aib sync --dry-run

# Verbose output
aib sync --verbose

# Combine options
aib sync --force --verbose

Sync Options

  • -f, --force - Force overwrite existing files
  • -d, --dry-run - Show what would be synced without actually doing it
  • -v, --verbose - Enable verbose output

Note: When you run the sync command, it will display the data source URL at the beginning to show where the rules are being fetched from.

Configuration

The tool uses an aibetter.json configuration file to determine which rules to sync and where to place them. This file follows a JSON schema for validation and provides IntelliSense support in modern editors.

Configuration Schema

The configuration schema is available at: http://aib.aibetter.run/config-schema.json

To enable schema validation in your editor, add the $schema property to your aibetter.json file:

{
  "$schema": "http://aib.aibetter.run/config-schema.json",
  "cursor": {
    "rules": {
      "constitution": true
    }
  }
}

Configuration Structure

The configuration file supports the following structure:

cursor (required)

The main configuration object for Cursor-related synchronization.

cursor.rules (required)

Defines which rules to sync from the repository. Supports both flat and nested structures:

{
  "cursor": {
    "rules": {
      // Simple boolean values
      "constitution": true,
      "security": false,

      // Nested rules structure
      "languages": {
        "TypeScript": true,
        "Python": true,
        "JavaScript": false
      },

      // Rules with custom aliases
      "performance": {
        "alias": "perf-optimizations"
      },

      // Complex nested structure with aliases
      "frameworks": {
        "React": true,
        "Vue": {
          "alias": "vue-best-practices"
        }
      }
    }
  }
}
cursor.destination (optional)

Specifies the local destination path for synced files. Defaults to .cursor/rules.

{
  "cursor": {
    "destination": ".cursor/rules"
  }
}
cursor.overwrite (optional)

Determines whether to overwrite existing files. Defaults to true.

{
  "cursor": {
    "overwrite": false
  }
}

Example Configurations

Basic Configuration

{
  "$schema": "http://aib.aibetter.run/config-schema.json",
  "cursor": {
    "rules": {
      "constitution": true,
      "languages": {
        "TypeScript": true
      }
    }
  }
}

Advanced Configuration

{
  "$schema": "http://aib.aibetter.run/config-schema.json",
  "cursor": {
    "rules": {
      "constitution": true,
      "security": true,
      "languages": {
        "TypeScript": true,
        "Python": true,
        "JavaScript": false
      },
      "frameworks": {
        "React": true,
        "Vue": {
          "alias": "vue-best-practices"
        }
      },
      "performance": {
        "alias": "perf-rules"
      }
    },
    "destination": ".cursor/rules",
    "overwrite": false
  }
}

Custom Destination Configuration

{
  "$schema": "http://aib.aibetter.run/config-schema.json",
  "cursor": {
    "rules": {
      "constitution": true,
      "security": true
    },
    "destination": "ai-config/rules",
    "overwrite": false
  }
}

Schema Features

  • Validation: The JSON schema provides validation for your configuration file
  • IntelliSense: Modern editors will provide auto-completion and validation
  • Documentation: Hover over properties to see descriptions and examples
  • Error Detection: Invalid configurations will be highlighted in your editor

Development

Prerequisites

  • Node.js 18+
  • pnpm (recommended package manager)

Setup

# Clone the repository
git clone https://github.com/aibetter/aib.git
cd aib

# Install dependencies
pnpm install

# Build the project
pnpm build

# Run in development mode
pnpm dev

Scripts

  • pnpm dev - Run in development mode with watch
  • pnpm build - Build the project
  • pnpm lint - Lint the code
  • pnpm format - Format the code
  • pnpm release - Release a new version

Contributing

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

License

This project is licensed under the MIT License - see the LICENSE file for details.

Links