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

@baton-dx/cli

v1.0.5

Published

CLI for Baton - the package manager for Developer Experience & AI configuration

Downloads

5,769

Readme

Baton DX /bəˈtɑːn/

npm version CI Status License: MIT

Baton is a CLI package manager for Developer Experience & AI configuration. Manage Skills, Rules, Agents, Memory Files, and file configs as versioned, composable profiles for 14 AI coding tools.

What's New in v1.0.0

v1.0.0 is the first stable release of Baton. Key changes from 0.x:

  • Convention over Configuration — Drop files into ai/rules/, ai/agents/, ai/skills/ and Baton discovers them. No manifest declarations needed.
  • baton preview — Inspect processed output for any AI tool before syncing. Supports --diff to compare two tools side by side.
  • Directivesbaton:if / baton:else / baton:endif with expression syntax, and baton:include with inline / link / reference modes.
  • MCP Server Distribution — Define MCP servers once in ai/mcp/*.yaml; Baton places them in each tool's native config format with per-tool env-var syntax transformations.
  • Profile Inheritanceextends: ../base in baton.profile.yaml for layered configuration.
  • baton self-update — Update Baton to the latest version from the CLI.
  • baton source validate — Validate a source repository's structure and manifests.
  • baton sync replaces baton update — The old baton update command has been removed.

See Migration Guide for upgrading from 0.x.

Why Baton?

| | Without Baton | With Baton | |---|---|---| | Setup | Manually copy and adapt config files for each AI tool | baton init + baton sync — done in seconds | | Team Consistency | Config drift — every dev diverges over time | One source of truth, version-locked with baton.lock | | Cross-Project | Each repo has its own ad-hoc AI configs, no shared standard | Same profiles across all your projects — consistent by default | | Multiple Tools | Even 2–3 AI tools mean 2–3 different formats to maintain | One manifest, automatically transformed per tool | | Onboarding | New devs spend hours recreating the "right" AI setup | baton sync — match the team instantly |

Without Baton — manual config per project, per tool:

graph TB
    D("Developer"):::person --> P1("Project A"):::project
    D --> P2("Project B"):::project
    D --> P3("Project C"):::project

    P1 --> T1A("Claude Code"):::config
    P1 --> T1B("Cursor"):::config
    P1 --> T1C("Copilot"):::config

    P2 --> T2A("Claude Code"):::config
    P2 --> T2B("Cursor"):::config
    P2 --> T2C("Copilot"):::config

    P3 --> T3A("Claude Code"):::config
    P3 --> T3B("Cursor"):::config
    P3 --> T3C("Copilot"):::config

    classDef person fill:#fee2e2,stroke:#fca5a5,color:#991b1b,stroke-width:2px
    classDef project fill:#fff7ed,stroke:#fdba74,color:#9a3412,stroke-width:2px
    classDef config fill:#fef2f2,stroke:#fca5a5,color:#b91c1c,stroke-width:1px

    linkStyle default stroke:#f87171,stroke-width:1.5px

With Baton — one source, every project in sync:

graph TB
    S("Source Repo"):::source -->|"baton sync"| P1("Project A"):::project
    S -->|"baton sync"| P2("Project B"):::project
    S -->|"baton sync"| P3("Project C"):::project

    P1 --> T1("All tools configured"):::done
    P2 --> T2("All tools configured"):::done
    P3 --> T3("All tools configured"):::done

    classDef source fill:#dcfce7,stroke:#86efac,color:#166534,stroke-width:2px
    classDef project fill:#f0fdf4,stroke:#86efac,color:#166534,stroke-width:2px
    classDef done fill:#bbf7d0,stroke:#4ade80,color:#14532d,stroke-width:2px

    linkStyle default stroke:#4ade80,stroke-width:1.5px

Baton currently supports 14 AI coding tools — see the full list below.

Quick Start

# Install
bun install -g @baton-dx/cli

# Connect your team's source repository
baton source connect github:your-org/dx-configs --name my-team

# Initialize in any project
baton init

# Sync all configurations
baton sync

Features

  • Convention over Configuration — Drop files into ai/rules/, ai/agents/, ai/skills/ and Baton discovers them automatically
  • Unified AI Configuration — One profile for 14 AI coding tools
  • MCP Server Distribution — Define MCP servers once in ai/mcp/*.yaml, placed into each tool's native config format
  • Profile Inheritance — Compose profiles with extends for layered configuration
  • Directives — Conditional content and file inclusion with baton:if and baton:include

Directives — Smart Composition

Baton profiles use directives to compose content dynamically based on the target project and tool:

<!-- baton:if has="typescript" -->
## TypeScript Standards
<!-- baton:include src="fragments/typescript.md" -->
<!-- baton:endif -->

<!-- baton:if tool="claude-code" -->
Use @file to reference project files.
<!-- baton:else -->
Reference files by relative path.
<!-- baton:endif -->

<!-- baton:if condition="(tool == 'claude-code' OR tool == 'cursor') AND has('typescript')" -->
TypeScript-aware AI tool detected.
<!-- baton:endif -->

<!-- baton:include src="@project/PROJECT.md" -->

Conditions: tool, ide, scope, type, file, var, has — with AND/OR composition and expression syntax. Include modes: inline, link, reference — with @project/ for project-relative resolution.

  • Smart Sync — Transform and place files in the correct format for each tool
  • Version Control — Lockfile-based reproducibility with SHA-256 integrity
  • Auto-Detection — Automatically detect installed AI tools and IDEs
  • Scaffold Templates — Bootstrap source repositories with baton source create

Supported AI Tools

| Tool | Key | Tool | Key | |------|-----|------|-----| | Claude Code | claude-code | OpenCode | opencode | | Cursor | cursor | Amp | amp | | Windsurf | windsurf | Kiro | kiro | | Antigravity | antigravity | Zed | zed | | Codex CLI | codex | Cline | cline | | GitHub Copilot | github-copilot | Roo | roo | | Junie | junie | Trae | trae |

Official Source Repository

Baton's own configurations are published as baton-dx-source — a real-world example of sources and profiles in action:

| Profile | Command | Audience | | ------- | ------- | -------- | | maintainer | baton init --profile github:baton-dx/baton-dx-source/maintainer | Contributors to this repo | | creator | baton init --profile github:baton-dx/baton-dx-source/creator | Developers building their own sources and profiles | | consumer | baton init --profile github:baton-dx/baton-dx-source/consumer | Developers using Baton in their projects |

Documentation

Built with AI, Verified by Humans

Baton is proudly built with the help of AI tools. We believe AI-assisted development is a powerful accelerator — and as a tool that manages AI coding configurations, we practice what we preach. At the same time, human review, testing, and judgment are essential for every contribution. We do not accept pull requests from fully autonomous bots (e.g., OpenClaw).

Contributing

See Contributing Guide for development setup, coding conventions, and PR workflow.

License

MIT © 2026 Baton Contributors