# flatiron/prompt

a beautiful command-line prompt for node.js

Repository: https://github.com/flatiron/prompt
Canonical: https://ross.abutalabs.com/products/prompt
Homepage: http://github.com/flatiron/prompt
Language: JavaScript
License: MIT
License Family: permissive
Last push: 2024-05-27T08:18:29+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 5585, "days_push": 828, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1966, forks 178 (observed 2026-08-28T04:05:59.910422+00:00)

## What it is
A Node.js library for building interactive command-line prompts. It supports schema-based validation, default values, and hidden password input via prompt.get() and prompt.addProperties().

## Use cases
- prompt for user input in a node.js cli script
- ask for username and email on the command line
- validate cli input against a pattern
- hide password input in a terminal prompt
- collect multiple properties with defaults from the user

## When to choose
- you need simple, schema-driven interactive prompts in a Node.js CLI
- you want built-in validation, defaults, and hidden password fields
- you prefer a lightweight callback/promise-based prompt API

## When to avoid
- you need rich UI elements like lists, checkboxes, or spinners (use inquirer or prompts instead)
- you are not building a Node.js command-line tool
- you need actively developed features or modern async-first design

## Facets
- artifact type: library
- maturity: maintenance
- function: cli, developer-tools
- domain: developer-tools
- platform: cross-platform
- tags: command-line-prompt, input-validation, password-input, interactive-cli, command-line, nodejs

## Member repositories
- flatiron/prompt (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:59.910422+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:05:26.823071+00:00, confidence not recorded.
  - readme: https://github.com/flatiron/prompt (fetched 2026-08-28T04:05:59.910422+00:00, sha 7ac90f60137d)
  - homepage: http://github.com/flatiron/prompt (fetched 2026-08-29T10:45:27.705788+00:00, sha a7cf8f6d7d85)
  - registry_npm: https://registry.npmjs.org/prompt (fetched 2026-08-29T10:45:27.709143+00:00, sha 6251573e61d6)
- Data as of 2026-08-30T08:39:29.467469+00:00.
