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

@sanarberkebayram/btw

v0.6.0

Published

Bring The Workflow - AI-aware agent, file, and workflow package manager

Downloads

12

Readme

BTW (Bring The Workflow)

AI-aware workflow package manager for developers

BTW lets you share and manage AI coding workflows across different tools (Claude, Cursor, Windsurf, Copilot) without vendor lock-in. Package your AI instructions, rules, and configurations in GitHub repositories and inject them into any project with a single command.

Why BTW?

  • No Vendor Lock-in: Your workflows are plain YAML and markdown in Git repos
  • Tool Agnostic: One workflow, multiple AI tools (Claude, Cursor, Windsurf, Copilot)
  • Shareable: Share workflows via GitHub - just btw add user/repo
  • Version Controlled: Track changes, roll back, collaborate on AI instructions
  • Zero Config in Projects: Keep AI config out of your project repos

Installation

npm install -g @sanarberkebayram/btw

Requirements:

  • Node.js 18.0.0 or higher
  • Git

Quick Start

# Add a workflow from GitHub
btw add sanarberkebayram/game-agent

# List installed workflows
btw list

# Inject into your project (for Claude)
btw inject game-agent

# Remove when done
btw remove game-agent

Commands

| Command | Description | |---------|-------------| | btw add <source> | Install a workflow from GitHub or local path | | btw list | List installed workflows | | btw inject <id> | Inject workflow into current project | | btw inject -i | Interactive mode - toggle inject/remove workflows | | btw update [id] | Update workflow(s) from source | | btw remove <id> | Remove an installed workflow | | btw uninstall | Uninstall BTW and remove all workflows |

Examples

# Add from GitHub (shorthand)
btw add user/repo

# Add from GitHub (full URL)
btw add https://github.com/user/repo

# Add from local directory
btw add ./my-workflow

# List with details
btw list --detailed

# Inject for specific AI tool
btw inject my-workflow --target cursor

# Interactive mode - browse and toggle workflows
btw inject --interactive

# Update a workflow from its source
btw update my-workflow

# Update all workflows
btw update --all

# Force overwrite existing config
btw inject my-workflow --force

Creating a Workflow

Create a btw.yaml in your repository with agents referencing external files:

version: "1.0"
id: my-workflow
name: My Workflow
description: A helpful AI workflow
author: your-name

targets:
  - claude
  - cursor

agents:
  - id: main-agent
    name: Main Agent
    description: Primary agent for this workflow
    file: agents/main-agent.md  # Path relative to btw.yaml
    tags:
      - general

Then create the agent file at agents/main-agent.md:

You are an expert assistant specialized in...

Your responsibilities:
1. Help with task A
2. Provide guidance on B
3. Review and improve C

Push to GitHub and share:

btw add your-username/your-workflow

Note: You can also use inline system_prompt instead of file for simple agents.

Supported AI Tools

| Tool | Status | Config Location | |------|--------|-----------------| | Claude | Supported | .claude/instructions.md | | Cursor | Planned | .cursorrules | | Windsurf | Planned | .windsurfrules | | Copilot | Planned | .github/copilot-instructions.md |

Documentation

How It Works

┌─────────────────┐     ┌─────────────────┐     ┌─────────────────┐
│  GitHub Repo    │────▶│      BTW        │────▶│  Your Project   │
│  (btw.yaml)     │     │  (CLI Manager)  │     │  (.claude/...)  │
└─────────────────┘     └─────────────────┘     └─────────────────┘
  1. Add: BTW clones the workflow repo to ~/.btw/workflows/
  2. Inject: BTW reads the manifest and writes config to your project
  3. Use: Your AI tool picks up the injected configuration
  4. Update: Pull latest changes with btw add --force

Directory Structure

BTW stores data in ~/.btw/:

~/.btw/
├── workflows/           # Installed workflows
│   └── owner/repo/
│       └── btw.yaml
├── cache/              # Temporary files
└── state.json          # Installation state

Environment Variables

| Variable | Description | Default | |----------|-------------|---------| | BTW_HOME | BTW home directory | ~/.btw | | BTW_DEBUG | Enable debug output | false | | BTW_NO_COLOR | Disable colors | false | | BTW_DEFAULT_TARGET | Default AI target | claude |

Contributing

Contributions are welcome! Please feel free to submit issues and pull requests.

# Clone the repo
git clone https://github.com/sanarberkebayram/btw.git
cd btw

# Install dependencies
npm install

# Build
npm run build

# Run tests
npm test

# Link for local development
npm link

License

MIT

Author

sanarberkebayram