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

@alisya.ai/ailib

v1.0.24

Published

Universal AI context-injection engine CLI

Downloads

177

Readme

ailib

ailib is a context-as-code CLI for AI tooling. It generates, validates, and keeps instruction files in sync across Claude Code, Cursor, Copilot, OpenAI, Gemini, and more from one shared configuration.

What you get

  • One source of truth for AI tooling behavior (ailib.config.json + generated outputs).
  • Managed .ailib/ context files from the built-in registry (core, modules, skills, and shared router context).
  • Target-specific instruction wrappers (for example CLAUDE.md, .github/copilot-instructions.md, .cursor/rules/ailib.mdc) that reference shared .ailib/context/* files.
  • Reusable built-in skills plus custom workspace-local skills.
  • Monorepo support with root and workspace-level operations.
  • Health checks with ailib doctor.

Managed target backups are written to .ailib/backups/ (only for files that existed before write).

Install

npm

npm install -g @alisya.ai/ailib

Homebrew

Direct install from this repository formula:

brew install --formula https://raw.githubusercontent.com/Alisya-AI/ai-lib/main/Formula/ailib.rb

Recommended install flow via tap:

brew tap Alisya-AI/ailib
brew update
brew install Alisya-AI/ailib/ailib

If you previously installed from a raw formula URL and are stuck on an older version, migrate to the tap formula:

brew uninstall ailib
brew install Alisya-AI/ailib/ailib

Local install from repository

bun run local:install

Guided quick start (single repo)

  1. Initialize your project:
ailib init --language=typescript --modules=eslint,vitest --targets=claude-code,copilot
  1. Generate/update outputs after config changes:
ailib update
  1. Validate generated files:
ailib doctor
  1. Check installed CLI version:
ailib --version
  1. Evolve your stack over time:
ailib add prettier
ailib remove prettier

Guided monorepo workflow

Initialize root with workspace patterns:

ailib init --language=typescript --modules=eslint --targets=claude-code,cursor --workspaces=apps/*,services/*

Run commands for a specific workspace:

ailib update --workspace=apps/web
ailib add prettier --workspace=apps/web
ailib doctor --workspace=apps/web

Discover modules and skills

Use discovery commands before changing config:

ailib modules list --language=typescript
ailib modules explain nextjs --language=typescript
ailib skills list
ailib skills explain release-readiness

Author and validate custom skills in a workspace:

ailib skills add release-manager --workspace=apps/web --description="Release orchestration workflow"
ailib skills validate --workspace=apps/web

Customize behavior with local overrides

Use ailib.local.json when specific workspaces need different modules, slots, targets, or skills than your default baseline.

See docs/local-override-model.md for the schema, precedence rules, and examples.

Target output modes

Control wrapper emission behavior with target_output_mode in ailib.config.json:

  • native (default): native output files only
  • compat: native outputs plus thin compatibility wrappers
  • strict: only explicitly selected native outputs

Uninstall

Remove generated files for the current workspace:

ailib uninstall

Remove generated files across all workspaces from monorepo root:

ailib uninstall --all

Documentation map

Getting started:

Extending ailib:

Quality and governance:

Release and security:

Supported languages

  • typescript
  • javascript
  • python
  • go
  • rust
  • java

Supported targets

  • claude-code
  • cursor
  • windsurf
  • copilot
  • jetbrains
  • openai
  • gemini

Repository layout

  • registry/: split registry sources (core.json and registry/languages/*.json).
  • registry.json: generated registry artifact consumed by the CLI.
  • schema/: JSON schemas used by registry/config data.
  • languages/: core language docs and module docs used for generated pointers.
  • targets/: output templates per IDE/tool target.
  • tools/: generation utilities for registry and docs catalogs.
  • Formula/ailib.rb: Homebrew formula used for installation.