awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
flatiron avatar

flatiron/prompt

0
View on GitHub↗
1,956 stars·180 forks·JavaScript·MIT·12 viewsgithub.com/flatiron/prompt↗

Prompt

Prompt is a terminal interface management library for Node.js applications that collects, validates, and styles interactive command-line user input. It handles user response collection and input stream controls, allowing developers to build command-line scripts and automation tools that require structured user input.

The library supports asynchronous event-driven prompt flows through both callback patterns and modern promises, alongside conditional prompt bypassing driven by command-line arguments, default values, preset overrides, and previous answers. Captured terminal responses can be appended directly onto existing target objects to streamline configuration workflows. Additional capabilities include ANSI-based terminal styling with custom delimiters and colored message strings, secure password masking for sensitive character input, and direct interception of standard input streams to manage lifecycle events and termination signals.

Input collection is governed by schema-driven validation rules that enforce data types, required fields, regular expressions, numeric and boolean formatting, and custom validation functions alongside default fallbacks.

Features

  • Terminal Prompt Libraries - Provides interactive command-line prompt collection, schema-driven validation, and stream controls for Node.js applications.
  • Command-Line Input Toolkits - Collects user input from the terminal using asynchronous methods with promise and callback support.
  • Interactive CLI Prompts - Builds command-line interfaces in Node.js that prompt users for input and configuration details.
  • Password Masking - Hides sensitive characters and passwords on the terminal screen as users type them.
  • Terminal - Applies schema-driven validation rules and default fallbacks to structure and verify terminal responses.
  • Input Validation Rules - Enforces validation rules, required fields, and regular expression patterns for data collection.
  • Terminal Input Validation - Enforces schema definitions, data types, regular expressions, and custom rules on user-provided terminal inputs.
  • Asynchronous Event Loop - Manages asynchronous event-driven prompt flows supporting callback patterns and modern promises.
  • Prompt Bypassing - Skips interactive prompts automatically using command-line arguments and preset overrides.
  • Terminal Prompt Customizers - Styles terminal prompts with custom messages, delimiters, and ANSI colors.
  • Command Line Utilities - Writes terminal scripts and automation tools in Node.js requiring user input and styling.
  • Input Event Interception - Controls standard input streams directly to manage lifecycle events and termination signals.
  • Sensitive Input Prompts - Masks sensitive characters securely on the terminal screen as users type passwords or secret tokens.
  • ANSI Style Composition - Formats command-line output dynamically using custom ANSI color codes and styled message strings.

Star history

Star history chart for flatiron/promptStar history chart for flatiron/prompt

How this analysis was created: This summary and feature list were written by an AI model that read the project's README and public documentation pages. Each feature links to the documentation it came from; stars, license and language come straight from the GitHub API. The model does not read the source code, and the analysis is refreshed when the project is re-analysed. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Frequently asked questions

What does flatiron/prompt do?

Prompt is a terminal interface management library for Node.js applications that collects, validates, and styles interactive command-line user input. It handles user response collection and input stream controls, allowing developers to build command-line scripts and automation tools that require structured user input.

What are the main features of flatiron/prompt?

The main features of flatiron/prompt are: Terminal Prompt Libraries, Command-Line Input Toolkits, Interactive CLI Prompts, Password Masking, Terminal, Input Validation Rules, Terminal Input Validation, Asynchronous Event Loop.

What are some open-source alternatives to flatiron/prompt?

Open-source alternatives to flatiron/prompt include: terkelg/prompts — This project is a Node.js CLI input library and toolkit for building interactive command-line user interfaces. It… enquirer/enquirer — Enquirer is a Node.js library for creating interactive command-line interfaces to gather structured user input. It… cliutils/cli11 — CLI11 is a header-only C++ library for parsing command line arguments and managing configuration files. It maps shell… chrisant996/clink — Clink is a command line enhancer and shell extension for the Windows CMD terminal. It functions as a readline-style… fastapi/typer — This project is a Python framework for building command-line interfaces by converting standard functions into… codeigniter4/codeigniter4 — CodeIgniter is a PHP web framework built on the Model-View-Controller pattern, designed for building full-stack web…

Open-source alternatives to Prompt

Similar open-source projects, ranked by how many features they share with Prompt.
  • terkelg/promptsterkelg avatar

    terkelg/prompts

    9,291View on GitHub↗

    This project is a Node.js CLI input library and toolkit for building interactive command-line user interfaces. It functions as a questionnaire framework and prompt orchestrator designed to capture structured user data through a variety of visual input controls. The system differentiates itself through a logic-driven engine that supports dynamic prompt chains, allowing the sequence and properties of questions to adapt at runtime based on previous user answers. The toolkit provides a wide range of specialized input types, including date pickers, searchable lists, masked passwords, and numeric

    JavaScript
    View on GitHub↗9,291
  • enquirer/enquirerenquirer avatar

    enquirer/enquirer

    7,946View on GitHub↗

    Enquirer is a Node.js library for creating interactive command-line interfaces to gather structured user input. It provides a set of terminal prompts, including menus, forms, and text fields, to collect data via autocomplete, multiselect, and boolean confirmations. The project serves as a customizable framework that allows for the creation of custom prompt types through a base class and the extension of functionality via a plugin architecture. The library covers a wide range of interaction patterns, such as capturing numerical and sensitive data, validating user input against custom rules, a

    JavaScript
    View on GitHub↗7,946
  • cliutils/cli11CLIUtils avatar

    CLIUtils/CLI11

    4,322View on GitHub↗

    CLI11 is a header-only C++ library for parsing command line arguments and managing configuration files. It maps shell input to typed variables and supports the creation of complex command hierarchies. The library is distinguished by its support for nested subcommands with infinite depth and prefix matching. It integrates configuration management by allowing application settings to be loaded from TOML or INI files, with the ability to fall back to environment variables. The project provides a comprehensive set of tools for argument parsing, including flags and positional arguments, alongside

    C++clicli-parsercpp11
    View on GitHub↗4,322
  • chrisant996/clinkchrisant996 avatar

    chrisant996/clink

    5,320View on GitHub↗

    Clink is a command line enhancer and shell extension for the Windows CMD terminal. It functions as a readline-style input library and completion engine, adding advanced line editing, persistent command history, and command argument prediction to the standard Windows command line environment. The project distinguishes itself through a scriptable architecture that allows for custom completion definitions, Lua keyboard mapping, and dynamic prompt customization. It enables the creation of context-sensitive prompts that can include asynchronous updates, environment-based formatting, and transient

    C++
    View on GitHub↗5,320
  • See all 30 alternatives to Prompt→

    Curated searches featuring Prompt

    Hand-picked collections where Prompt appears.
    • CLI framework