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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@auto-engineer/cli

v0.13.0

Published

CLI interface for Auto Engineer - a plugin-based command-line tool for building applications with AI assistance.

Readme

@auto-engineer/cli

CLI interface for Auto Engineer - a plugin-based command-line tool for building applications with AI assistance.

Features

  • Plugin-based architecture - Install only the functionality you need
  • POSIX-compliant command line arguments
  • Interactive prompts and error messages
  • Colored output with graceful degradation
  • Progress spinners and prompts
  • Structured output in JSON format
  • Cross-platform compatibility
  • Configuration precedence (CLI args > env vars > config files)
  • Analytics with opt-in
  • Error handling with error codes
  • Debug mode for troubleshooting

Installation

# Install globally
npm install -g @auto-engineer/cli

# Or use with npx
npx @auto-engineer/cli

# Or with pnpm
pnpm install -g @auto-engineer/cli

Plugin System

The CLI uses a plugin-based architecture. Install only the functionality you need:

Quick Start

  1. Install the CLI:
npm install -g @auto-engineer/cli
  1. Install plugins for your use case:
# For server development
npm install @auto-engineer/flow @auto-engineer/server-generator-apollo-emmett @auto-engineer/server-implementer

# For frontend development
npm install @auto-engineer/frontend-generator-react-graphql @auto-engineer/frontend-implementer

# For validation and testing
npm install @auto-engineer/server-checks @auto-engineer/frontend-checks
  1. Create configuration (auto.config.ts):
export default {
  plugins: [
    '@auto-engineer/flow',
    '@auto-engineer/server-generator-apollo-emmett',
    '@auto-engineer/server-implementer',
  ],

  // Optional: Handle command conflicts
  aliases: {
    // 'command:alias': '@auto-engineer/package-name'
  },
};
  1. Run commands:
auto create:example shopping-assistant
auto export:schema ./.context ./flows
auto generate:server .context/schema.json .

Available Plugins

| Plugin | Commands | Description | | ------------------------------------------------- | ------------------------------------------ | ----------------------------------- | | @auto-engineer/flow | create:example, export:schema | Flow modeling and schema export | | @auto-engineer/server-generator-apollo-emmett | generate:server | Server code generation | | @auto-engineer/server-implementer | implement:server, implement:slice | AI server implementation | | @auto-engineer/frontend-generator-react-graphql | generate:client, copy:example | React client scaffolding | | @auto-engineer/frontend-implementer | implement:client | AI client implementation | | @auto-engineer/information-architect | generate:ia | Information architecture generation | | @auto-engineer/design-system-importer | import:design-system | Figma design system import | | @auto-engineer/server-checks | check:types, check:lint, check:tests | Server validation | | @auto-engineer/frontend-checks | check:client | Frontend validation |

Configuration

Plugin Configuration

The CLI looks for an auto.config.ts file in your project root:

// auto.config.ts
export default {
  // List of npm packages to load as plugins
  plugins: [
    '@auto-engineer/flow',
    '@auto-engineer/server-generator-apollo-emmett',
    // ... more plugins
  ],

  // Optional: Override command aliases when conflicts occur
  aliases: {
    'create:example': '@auto-engineer/flow',
    // ... more overrides
  },
};

Handling Conflicts

When multiple plugins register the same command alias, you'll receive an error with instructions:

Command alias conflicts detected!

Multiple packages are trying to register the same command aliases.
Please add alias overrides to your auto.config.ts file:

export default {
  plugins: [
    '@auto-engineer/package-a',
    '@auto-engineer/package-b',
  ],
  aliases: {
    // Map the conflicting command to the package that should handle it
    'conflicting:command': '@auto-engineer/package-a',
  }
};

The alias resolution works per command, not per package. Each package can expose multiple commands, and you resolve conflicts for specific command aliases. For example, if both server-checks and another-package provide a check:types command, you specify which package handles that specific command.

Commands

Commands are provided by installed plugins. Run auto --help to see available commands based on your configuration.

Common Plugin Commands

Flow Development (requires @auto-engineer/flow)

  • create:example <name> - Create an example project
  • export:schema <context> <flows> - Export flow schemas

Server Generation (requires respective plugins)

  • generate:server <schema> <dest> - Generate server from schema
  • implement:server <server-dir> - AI implements server

Frontend Generation (requires respective plugins)

  • generate:ia <context> <flows...> - Generate Information Architecture
  • generate:client <starter> <client> <ia> <gql> [vars] - Generate React client
  • implement:client <client> <context> <principles> <design> - AI implements client

Validation & Testing (requires check plugins)

  • check:types <directory> - TypeScript type checking
  • check:tests <directory> - Run test suites
  • check:lint <directory> [--fix] - Linting with optional auto-fix
  • check:client <client-dir> - Full frontend validation

Global Options

  • -v, --version - Show version number
  • -d, --debug - Enable debug mode
  • --no-color - Disable colored output
  • --json - Output in JSON format
  • --api-token <token> - API token for external services
  • --project-path <path> - Project path to work with

Environment Variables

Set these in your .env file or environment:

# AI Provider Keys (need at least one)
ANTHROPIC_API_KEY=sk-ant-...
OPENAI_API_KEY=sk-...
GEMINI_API_KEY=...
XAI_API_KEY=...

# Debugging
DEBUG=cli:*              # Debug CLI operations
DEBUG=cli:plugin-loader  # Debug plugin loading

# Configuration
NO_COLOR=1               # Disable colored output
AUTO_ENGINEER_ANALYTICS=false  # Disable usage analytics

Creating a Plugin

Plugins are npm packages that export a CLI_MANIFEST:

// your-plugin/src/cli-manifest.ts
export const CLI_MANIFEST = {
  commands: {
    'your:command': {
      handler: () => import('./commands/your-command'),
      description: 'Description of your command',
    },
  },
};

// your-plugin/src/index.ts
export { CLI_MANIFEST } from './cli-manifest';
export * from './commands/your-command';

The command handler should export a function that handles the command:

// your-plugin/src/commands/your-command.ts
export async function handleYourCommand(command: { type: string; data: any; timestamp: Date; requestId: string }) {
  // Implementation
}

Built-in Commands

When no auto.config.ts is present, the CLI falls back to built-in commands that work with locally available packages.

Error Codes

Auto-engineer uses standardized error codes for easy troubleshooting:

  • E4001 - Validation error
  • E4002 - Configuration error
  • E4003 - Invalid API token
  • E4004 - Invalid project path
  • E5001 - Runtime error
  • E9999 - Unknown error

Analytics

Auto-engineer collects anonymous usage analytics to improve the tool:

  • Anonymous - No personal information is collected
  • Transparent - You can see what data is collected in debug mode
  • Controllable - You can disable anytime

To disable analytics:

export AUTO_ENGINEER_ANALYTICS=false

Debugging

Enable debug output to troubleshoot issues:

# Debug everything
DEBUG=* auto create:example test

# Debug plugin loading
DEBUG=cli:plugin-loader auto --help

# Debug specific plugins
DEBUG=flow:* auto export:schema ./context ./flows

License

Part of the Auto Engineer monorepo. Licensed under Elastic License 2.0.

Support