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

@closedloop-ai/cli

v0.2.4

Published

ClosedLoop AI CLI - AI-powered customer product feedback analysis tool

Downloads

69

Readme

ClosedLoop AI CLI

Transform scattered customer product feedback into actionable strategic insights with AI-powered analysis

npm version License: MIT TypeScript Node.js

🎯 The Problem You're Solving

Product teams are drowning in scattered product feedback from multiple channels:

  • Support tickets scattered across Zendesk, Intercom, and email
  • Sales and customer success call insights buried in transcripts
  • User surveys and feedback forms in different tools
  • Social media mentions and app store reviews
  • Internal team discussions in Slack

The result? Critical customer product feedback get lost, patterns go unnoticed, and product decisions are made without data.

✨ How ClosedLoop AI CLI Solves This

Transform chaos into clarity with autonomous AI that:

  • 🔍 Discovers Hidden Patterns - AI finds insights humans would miss across all your feedback sources
  • Real-Time Analysis - Get instant insights as new customer product feedback comes in
  • 📊 Strategic Intelligence - Convert customer voice into actionable product decisions
  • 🎯 Revenue Impact - Quantify the business value of each customer feedback
  • 🔄 Source Agnostic - Works with any data source through flexible APIs

🚀 Quick Start

Installation

# Install globally for CLI usage
npm install -g @closedloop-ai/cli

Get Your API Key

  1. Visit https://closedloop.sh
  2. Sign up for a free account (100,000 credits every month included!)
  3. Generate your API key
  4. Configure the CLI:
cl config set --api-key your-api-key-here

Set Your Product Website (Important!)

Configure your product's website URL to help ClosedLoop understand your product context:

cl team website "https://yourproduct.com/feature"

Why this matters: ClosedLoop AI uses your product URL to learn about your product features, competitors, pricing, and positioning. This enables more accurate feedback attribution and product-specific insights. For example, if you're working on iPhone, use https://apple.com/iphone - this helps ClosedLoop AI understand that "camera quality" feedback is about iPhone cameras, not just any camera.

Ingest Your First Customer Feedback

# Ingest raw customer feedback for AI analysis
cl ingest "The new dashboard is confusing and hard to navigate. I can't find the settings menu and the layout is cluttered."

# Wait for AI to analyze and generate structured insights
cl ingest "Customer complaint about performance issues" --wait

# View all AI-generated customer product feedback
cl insight

# Get detailed analysis of a specific insight
cl insight 2ea8f556-052b-4f5c-bf86-833780b3d00d

🎯 Perfect For

Customer Success Teams

  • Stop losing critical insights buried in support tickets
  • Identify patterns across customer conversations
  • Proactive customer success with early warning signals
  • Data-driven customer health scoring

Product Managers

  • Prioritize features based on real customer needs
  • Quantify business impact of product decisions
  • Track feature adoption and customer satisfaction
  • Competitive intelligence from customer feedback

Business Analysts

  • Strategic insights from customer behavior patterns
  • Revenue impact analysis of customer feedback
  • Market intelligence and trend analysis
  • ROI calculations for product investments

📖 CLI Commands

Ingest Customer Feedback

# Basic ingestion
cl ingest "The app crashes when I try to upload large files"

# With metadata for better analysis
cl ingest "Great product, love the new features!" \
  --title "Positive Feedback" \
  --customer "customer-456" \
  --name "Jane Smith" \
  --email "[email protected]" \
  --url "https://support.example.com/ticket/789"

# Wait for AI analysis to complete
cl ingest "Customer complaint about performance" --wait

View AI-Generated Customer Product Feedback

# List all structured insights
cl insight

# View specific insight details
cl insight <insight-id>

# Get JSON output for scripting
cl insight --json | jq '.data[0].title'

Manage Your Data

# List all customer feedback ingested
cl ingest

# View specific feedback details
cl ingest <feedback-id>

# Check processing status
cl ingest <feedback-id> --status

🔧 Configuration

The CLI stores configuration in ~/.closedloop/config.json:

{
  "apiKey": "your-api-key-here"
}

Environment Variables (Advanced)

For developers and CI/CD systems, you can also set your API key as an environment variable instead of using the config file:

# Set the API key as an environment variable
export CLOSEDLOOP_API_KEY="your-api-key-here"

# Now you can use the CLI without running 'cl config set'
cl input "Customer feedback here"

When to use this:

  • CI/CD pipelines: Set the API key in your deployment environment
  • Docker containers: Pass the API key as an environment variable
  • Server scripts: When running automated scripts on servers
  • Multiple users: When different users need different API keys on the same machine

Note: The CLI will automatically use the environment variable if it's set, otherwise it falls back to the config file.

💡 Simple Workflow

Here's how to get started with ClosedLoop AI CLI:

# 1. Set your API key
cl config set --api-key your-api-key-here

# 2. Set your product website (helps AI understand your product)
cl team website "https://yourproduct.com/feature"

# 3. Ingest customer feedback
cl ingest "The new dashboard is confusing and hard to navigate"

# 4. Check what feedback you've ingested
cl ingest

# 5. View AI analysis of your feedback
cl insight

# 6. Get details on specific feedback
cl insight <insight-id>

That's it! ClosedLoop AI will automatically analyze your feedback and provide actionable insights.

📚 Documentation

🎯 Why This Matters

Before ClosedLoop AI CLI

  • Scattered feedback across 5+ different tools
  • Manual analysis taking 20+ hours per week
  • Missed patterns and critical insights
  • Reactive decisions based on incomplete data
  • Lost revenue from unaddressed customer needs

After ClosedLoop AI CLI

  • Unified intelligence from all feedback sources
  • Automated analysis with AI pattern recognition
  • Proactive insights delivered in real-time
  • Data-driven decisions with quantified business impact
  • Increased revenue from better customer understanding

📊 Business Impact

  • 80% faster analysis time (from 20 hours to 4 hours per week)
  • 40% faster feature prioritization decisions
  • 25% increase in customer satisfaction scores
  • 35% increase in feature adoption rates
  • 50% reduction in failed feature launches

🧪 Development

Prerequisites

  • Node.js 16+
  • npm or yarn
  • TypeScript 5+

Setup

# Clone the repository
git clone https://github.com/closed-loop-ai/mcp-client.git
cd mcp-client

# Install dependencies
npm install

# Build the CLI
npm run build:cli

# Run tests
npm test

🤝 Contributing

We welcome contributions! Please see our Contributing Guide for details.

📄 License

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

🔗 Links

🆘 Support


Made with ❤️ by ClosedLoop AI

Transform customer product feedback chaos into strategic product decisions with AI-powered insights.