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

backlog-structurer-cli

v0.0.2

Published

CLI to consume the Backlog Structurer Agent API

Readme

Backlog Structurer CLI

npm version License Node.js Version

A professional command-line interface to interact with the Backlog Structurer Agent API. Generate structured backlogs from product discoveries powered by AI using an intuitive and colorful CLI experience.

✨ Features

  • 🌐 Internationalization: Support for Portuguese (pt-br) and English (en-us)
  • 🎨 Professional UX: Colorful output, interactive prompts, and loading spinners
  • 🏗️ Clean Architecture: Built with SOLID principles and layered architecture
  • 💾 Auto-save: Optional automatic JSON result saving
  • ⚙️ Configurable: CLI flags, config files, and environment variables
  • Well-tested: Comprehensive unit tests with 90%+ coverage
  • 📦 Easy to install: Available as a global npm package

📦 Installation

Global Installation (Recommended)

npm install -g backlog-structurer-cli

Local Installation

npm install backlog-structurer-cli

🚀 Quick Start

After global installation, simply run:

backlog-structurer

The CLI will guide you through an interactive flow to generate structured backlogs.

For a more detailed quick start, see QUICKSTART.md

📖 Usage

Basic Usage

# Run with default settings (Portuguese)
backlog-structurer

# Run in English
backlog-structurer --lang en-us

# Specify API URL
backlog-structurer --api-url http://localhost:3002/api/v1/backlog/structure

# Auto-save results without prompting
backlog-structurer --save --output ./results

# Pass input directly via JSON string
backlog-structurer --input '{"productName":"My App","features":["Login","Dashboard"]}'

# Pass input from a file
backlog-structurer --input ./example-input.json --save --output ./results

Input Options

The CLI accepts input data in three ways:

  1. Interactive Mode (default): The CLI prompts you to enter data

    backlog-structurer
  2. Direct JSON: Pass a JSON string via the --input option

    backlog-structurer -i '{"productName":"My Product"}'
  3. File Path: Provide a path to a JSON or text file

    backlog-structurer -i ./product-discovery.json

CLI Options

| Option | Alias | Description | Default | |--------|-------|-------------|---------| | --api-url <url> | -u | API endpoint URL | http://localhost:3002/api/v1/backlog/structure | | --lang <code> | -l | Language (pt-br, en-us) | pt-br | | --config <path> | -c | Path to JSON config file | - | | --input <data> | -i | Input data (JSON, text, or file path) | - | | --save | -s | Auto-save without prompting | false | | --output <dir> | -o | Default output directory | - | | --file <name> | -f | Default output filename | - | | --no-save | - | Disable saving prompt | - |

Configuration File

Create a JSON configuration file to set default options:

{
  "apiUrl": "http://localhost:3002/api/v1/backlog/structure",
  "lang": "en-us",
  "autoSave": true,
  "defaultOutputDir": "./backlogs",
  "defaultFileName": "backlog.json"
}

Use it with:

backlog-structurer --config ./config.json

Environment Variables

Set environment variables for configuration:

export BACKLOG_STRUCTURER_API_URL=http://localhost:3002/api/v1/backlog/structure
backlog-structurer

🏗️ Architecture

The CLI is built following clean architecture principles with the following layers:

  • Presentation Layer (src/presentation/): CLI interface and user interaction
  • Application Layer (src/application/): Use cases and business logic
  • Domain Layer (src/domain/): Core entities and business rules
  • Infrastructure Layer (src/infrastructure/): External services and persistence

For more details, see ARCHITECTURE.md

🧪 Testing

Run tests with coverage:

npm test
npm run test:coverage

📚 Documentation

For comprehensive documentation, please refer to:

📝 License

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

👥 Contributing

Contributions are welcome! Please refer to CONTRIBUTING.md for guidelines.

🙏 Acknowledgments

Built by the AuronForge team to empower product teams with AI-driven backlog structuring.